3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new class { public $a; public $b = null; public $c = ""; public function execute($name) { var_dump($a[$name] = $name); var_dump($b[$name] = $name); var_dump($c[$name] = $name); } }; $test->write([1,2,3]); $test->write("test"); $test->write(123456);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined method class@anonymous::write() in /in/a4T3V:15 Stack trace: #0 {main} thrown in /in/a4T3V on line 15
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:
56.12 ms | 401 KiB | 8 Q