3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class SomeClass extends PHPUnit_Framework_TestCase { function f2member($a,$b) { return $a + $b; } /** * @test */ public function trace2member() { $g = array($this,'f2member'); $this->assertEquals(2, $g(1,1)); // squiggle line under $g } }
based on uu4km
Output for 7.0.0 - 7.2.0
Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /in/Vn68v on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /in/Vn68v on line 4
Process exited with code 255.