3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p=$argv[1]; preg_match("/c([ao]+)/i",$p,$e); $l=strlen($e[1]); $s=($k=strcmp($e[0][1],o))?eo:oo; echo $p,' go M',str_repeat($s[0],$l),str_repeat($s[1],$l),$k?w:'';
Output for git.master, git.master_jit
Warning: Undefined array key 1 in /in/MdbB2 on line 3 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/MdbB2 on line 4 Warning: Undefined array key 1 in /in/MdbB2 on line 5 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/MdbB2 on line 5 Warning: Undefined array key 0 in /in/MdbB2 on line 6 Warning: Trying to access array offset on value of type null in /in/MdbB2 on line 6 Fatal error: Uncaught Error: Undefined constant "o" in /in/MdbB2:6 Stack trace: #0 {main} thrown in /in/MdbB2 on line 6
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined array key 1 in /in/MdbB2 on line 3 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/MdbB2 on line 4 Warning: Undefined array key 1 in /in/MdbB2 on line 5 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/MdbB2 on line 5 Warning: Undefined array key 0 in /in/MdbB2 on line 6 Warning: Trying to access array offset on null in /in/MdbB2 on line 6 Fatal error: Uncaught Error: Undefined constant "o" in /in/MdbB2:6 Stack trace: #0 {main} thrown in /in/MdbB2 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:
60.74 ms | 401 KiB | 8 Q