3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('foo', 'bar'); $foo = array('yes'); $c = 'no'; echo "r1: $foo[0]\n"; echo "r2: ${foo[0]}\n"; echo "r3: ${ foo[0]}\n"; echo "r4: ${foo[0] }\n"; echo "r5: ${foo [0]}\n"; echo "r6: ${foo[0 ]}\n"; echo "r7: ${ foo [ 0 ] }\n";
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/FWFpZ on line 7 Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/FWFpZ on line 8 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/FWFpZ on line 9 Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/FWFpZ on line 10 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /in/FWFpZ on line 11 Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in /in/FWFpZ on line 12 r1: yes r2: yes Warning: Undefined variable $b in /in/FWFpZ on line 8 r3: r4: yes Warning: Undefined variable $b in /in/FWFpZ on line 10 r5: r6: yes Warning: Undefined variable $b in /in/FWFpZ on line 12 r7:

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:
49.51 ms | 403 KiB | 8 Q