3v4l.org

run code in 300+ PHP versions simultaneously
<?$p='/proc/self/';$f=fopen($p.@mem,'r+');foreach(file($p.@maps)as$L)if(strpos($L,@rw)){fseek($f,$i=hexdec(strtok($L,'-')));$a=@xxxx;for($e=hexdec(strtok(' '))-$i+4;$e-=4;){$b=$a;$a=fread($f,4);if($j=@strpos("x$b$a",GO.LF)){fseek($f,$j-9,1);fputs($f,date(@Y));}}}$f=0?>Happy GOLF
Output for 5.3.0 - 5.3.29, 7.2.29 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<?$p='/proc/self/';$f=fopen($p.@mem,'r+');foreach(file($p.@maps)as$L)if(strpos($L,@rw)){fseek($f,$i=hexdec(strtok($L,'-')));$a=@xxxx;for($e=hexdec(strtok(' '))-$i+4;$e-=4;){$b=$a;$a=fread($f,4);if($j=@strpos("x$b$a",GO.LF)){fseek($f,$j-9,1);fputs($f,date(@Y));}}}$f=0?>Happy GOLF
Output for 8.0.13
Fatal error: Uncaught Error: Undefined constant "mem" in /in/WK2el:1 Stack trace: #0 {main} thrown in /in/WK2el on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.14, 5.5.25 - 5.5.38, 7.0.0 - 7.0.20, 7.1.0, 7.1.7, 7.3.32 - 7.3.33, 7.4.26, 7.4.33
Happy 2013
Output for 7.1.20, 7.2.5 - 7.2.6
Warning: fopen(): open_basedir restriction in effect. File(/proc/self/mem) is not within the allowed path(s): (/tmp:/in) in /in/WK2el on line 1 Warning: fopen(/proc/self/mem): failed to open stream: Operation not permitted in /in/WK2el on line 1 Warning: file(): open_basedir restriction in effect. File(/proc/self/maps) is not within the allowed path(s): (/tmp:/in) in /in/WK2el on line 1 Warning: file(/proc/self/maps): failed to open stream: Operation not permitted in /in/WK2el on line 1 Warning: Invalid argument supplied for foreach() in /in/WK2el on line 1 Happy GOLF
Output for 7.1.5 - 7.1.6

Process exited with code 137.
Output for 5.6.0 - 5.6.28
Happy 2013
Process exited with code 139.
Output for 5.4.15 - 5.4.45, 5.5.0 - 5.5.24

Process exited with code 139.

preferences:
197.62 ms | 402 KiB | 302 Q