3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); # /\ # > _< # //``. # .' '@. \ $___;/*)'. .-' /*-'-;#\ * /*.'*/($____=[]); # // @ o . /* ) $____="$____";/*'` * .' Q */$__=$___;$__++;/* *.' o . * '-. / @ */$__++;$_=$__;$_--;# `\ //( () * Q'.__Q *.' * * # '-.-' `--._ @ ``-. $_____=[$___,$___,$___,$___, /*_.-' @ __.-'~'-. @ `-.*/ $___,' ',$___,$___,$___,$___, $___,$___,$___,$___,$___,',',' ',/* .' * ..-' o 0 */ # $___,$___,$___,$___,$___,$___,'!']; $_____[($__+$_)*($__+$__)+$_]=$____[$_+$__]; $___=$____[$_+$__];$___++;$___++;/* '.*/ $_____[($__+$__+$__)*($__+$_)+$_]=++$___;/* ;--' Q */ $_____[$_]=++$___;$___++;$___++; /* 0.-~-*/$_____[$__+$__+$__+$_]=++$___;/*8*/ # $_____[($__+$_)*($__+$_)]=++$___;$___++; # # ;--' Q * * o @ '-. /*'.___ ..~ - .*/$___++;$___++;/* () Q '.*/ // @ o * */ #_.''~.._____.--'`-. /*'-*/$_____[($__+$__)*($__+$_)]=++$___;$___++;$___++; /*.':. /# |\ \\ |*/$___++;$___++;$_____[$__]=++$___; /*. ':. /. .\ */ $_____[$__+$_]=$___;$_____[$__*$__*$__]=$___; /* ':. ':.\_T_/: */ $_____[($__+$__+$_)*$__]=++$___; /*. ':. /` `\ */ $_____[($__+$__)*($__+$_)+$__]=$___; /* :. ':(/ \)*/ $_____[($__+$_)*($__+$_)+$__]=++$___; /* '::.__'/';-;'\ */ $___++;$___++;$___++;$___++;$_____[$__+$__]=++$___; /* ()/ \()*/ $_____[($__+$__)*($__+$__)+$__]=$___;$_--; /* __.----.(\-''#####---...___...-----._*/ $___=$____[$_]; /* '` \)_`"""""`*/ $___++;$_____[$__+$__+$__]=++$___; /* .--' ') */ $___++;$___++;$___++;$___++;$_++; /* o( )_-\ */ $_____[($__+$__+$_)*($__+$__)+$_]=++$___; /* `"""` ` */ $___++;$___++;$___++;$___++;$_--; /* */ $_____[$_]=++$___;$___++;$___++;$_++; /* Christmas greetings! */ $_____[($__+$__+$_)*($__+$__)]=++$___; /* */ $_____[($__+$__+$_)*($__+$__)+$__]=$___; /* @ This code is actually @ */ $___++;$___++; /* @ valid PHP code. @ */ $_____[($__+$__)*($__+$__)+$_]=++$___; /* @ Requires PHP5.4 @ */ echo implode($_____); // This software is licensed under the New BSD License. // Copyright (c) 2012, Romanko. All rights reserved.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Merry Christmas, SydPHP!
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/khhKO on line 9
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
<br /> <b>Parse error</b>: syntax error, unexpected '[' in <b>/in/khhKO</b> on line <b>9</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
<br /> <b>Parse error</b>: parse error, unexpected '[' in <b>/in/khhKO</b> on line <b>9</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error in <b>/in/khhKO</b> on line <b>9</b><br />
Process exited with code 255.

preferences:
218.51 ms | 401 KiB | 343 Q