3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testing = 'foo'; $array = ['bar' => 'testing']; function test() { return 'testing'; } class Test { public function output() { echo 'called'; } } $string = 'test'; $test = new Test(); echo ${$array['bar']}; echo PHP_EOL; echo $$array['bar']; echo PHP_EOL; echo ${test()}; echo PHP_EOL; echo $test(); echo PHP_EOL; echo ($$string)->output();
Output for git.master, git.master_jit
foo Warning: Array to string conversion in /in/565cO on line 23 Warning: Undefined variable $Array in /in/565cO on line 23 Warning: Trying to access array offset on value of type null in /in/565cO on line 23 foo Fatal error: Uncaught Error: Object of type Test is not callable in /in/565cO:27 Stack trace: #0 {main} thrown in /in/565cO on line 27
Process exited with code 255.
Output for rfc.property-hooks
foo Warning: Array to string conversion in /in/565cO on line 23 Warning: Undefined variable $Array in /in/565cO on line 23 Warning: Trying to access array offset on null in /in/565cO on line 23 foo Fatal error: Uncaught Error: Object of type Test is not callable in /in/565cO:27 Stack trace: #0 {main} thrown in /in/565cO on line 27
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:
47.78 ms | 401 KiB | 8 Q