PHP online IDE & code editor for technical interviews

Running Zend PHP 8.0 – IntelliSense is not available

Experience the PHP IDE yourself

See just how easy and intuitive CoderPad Interview is to use below.

Launch the environment

Guidelines to use PHP in this online IDE

You must wrap your code in <?php and ?> tags. Text outside of those tags will output to stdout without processing as PHP.

PHP’s mcrypt library is also installed.

PHPUnit can be used to write tests. To use it, just run your tests inline after adding the line use PHPUnit\Framework\TestCase; like so:

<?php
class Greeter
{
    public function sayHello($name)
    {
        return "hi, " . $name;
    }

}

use PHPUnit\Framework\TestCase;

class Solution extends TestCase
{
    private $greeter;

    protected function setUp(): void
    {
        parent::setUp();
        $this->greeter = new Greeter();
    }

    protected function tearDown(): void
    {
        parent::tearDown();
        $this->greeter = NULL;
    }

    public function testSayHello()
    {
        $result = $this->greeter->sayHello("friend");
        $this->assertEquals("hi, friend", $result);
    }
}  Code language: PHP (php)

Need a better way to interview candidates? Give CoderPad a try.