3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myClass { static function baz($var) { echo "Oh the $var of it!\n"; } } (new class { public $arr = ["baz"]; function test( $arg ){ if( is_callable( $this->arr[0],true ) ){ (myClass::$this->arr[0])( $arg ); } } })->test("joy");
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Access to undeclared static property myClass::$this in /in/VB1H8:18 Stack trace: #0 /in/VB1H8(22): class@anonymous->test('joy') #1 {main} thrown in /in/VB1H8 on line 18
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.85 ms | 401 KiB | 8 Q