3v4l.org

run code in 300+ PHP versions simultaneously
<?php function filter() { return array_filter(array('foo' => 42, 'bar' => 50), function ($val) { return $val == 50; }); } function map() { return array_map(function ($val) { return $val*2; }, array('foo' => 84, 'bar' => 25)); } for ($i = 0; $i < 100; $i++) { filter(); map(); } var_dump(filter(), bar());
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function bar() in /in/7NQMs:15 Stack trace: #0 {main} thrown in /in/7NQMs 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:
38.44 ms | 401 KiB | 8 Q