3v4l.org

run code in 500+ PHP versions simultaneously
<?php $code = 'return $arg;'; echo "Test 1: "; $fn = create_function('$arg', $code); echo $fn('foo'); echo "\n\n"; echo "Test 2: "; $fn = function($arg) use($code) { eval($code); }; echo $fn('bar'); echo "\n\n"; echo "Test 3: "; $fn = function($arg) use($code) { return eval($code); }; echo $fn('baz');
Output for git.master, git.master_jit, rfc.property-hooks
Test 1: Fatal error: Uncaught Error: Call to undefined function create_function() in /in/689VZ:6 Stack trace: #0 {main} thrown in /in/689VZ on line 6
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:
119.72 ms | 2001 KiB | 4 Q