3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php eval(strtr(file_get_contents(__FILE__, false, null, __COMPILER_HALT_OFFSET__), [ '__HERLT_CERMPERLER' => '__halt_compiler', 'ERBSTRERCT' => 'abstract', 'ERND' => 'and', 'ERER' => 'array', 'ERS' => 'as', 'BRERK' => 'break', 'CERLERBL' => 'callable', 'CERS' => 'case', 'CERTCH' => 'catch', 'CLERS' => 'class', 'CLERN' => 'clone', 'CERNST' => 'const', 'CERNTERNER' => 'continue', 'DERCLER' => 'declare', 'DERFERLT' => 'default', 'DER' => 'die', 'DER' => 'do', 'ERCH' => 'echo', 'ERLS' => 'else', 'ERLSERF' => 'elseif', 'ERMPTER' => 'empty', 'ERNDERCLER' => 'enddeclare', 'ERNDFER' => 'endfor', 'ERNDFERERCH' => 'endforeach', 'ERNDERF' => 'endif', 'ERNDSWERTCH' => 'endswitch', 'ERNDWHERL' => 'endwhile', 'ERVERL' => 'eval', 'ERXERT' => 'exit', 'ERXTERNDS' => 'extends', 'FERNERL' => 'final', 'FERNERLER' => 'finally', 'FER' => 'for', 'FERERCH' => 'foreach', 'FERNCTERN' => 'function', 'GLERBERL' => 'global', 'GERT' => 'goto', 'ERF' => 'if', 'ERMPLERMAHNTS' => 'implements', 'ERNCLERD' => 'include', 'ERNCLERDER_ERNC' => 'include_once', 'ERNSTERNCERF' => 'instanceof', 'ERNSTERDERF' => 'insteadof', 'ERNTERFERC' => 'interface', 'ERSERT' => 'isset', 'LERST' => 'list', 'NERMAHSPERC' => 'namespace', 'NERW' => 'new', 'ER' => 'or', 'PRERNT' => 'print', 'PRERVERT' => 'private', 'PRERTERCTERD' => 'protected', 'PERBLERC' => 'public', 'RERQER' => 'require', 'RERQERER_ERNC' => 'require_once', 'RERTERN' => 'return', 'STERTERC' => 'static', 'SWERTCH' => 'switch', 'THERS' => 'this', 'THRER' => 'throw', 'TRERT' => 'trait', 'TRER' => 'try', 'ERNSERT' => 'unset', 'ERS' => 'use', 'VER' => 'var', 'VER_DERMP' => 'var_dump', 'WHERL' => 'while', 'XER' => 'xor', 'YERLD' => 'yield', '__CERNSTRERCT' => '__construct', '__CLERS__' => '__CLASS__', '__DER__' => '__DIR__', '__FERLER__' => '__FILE__', '__FERNCTERN__' => '__FUNCTION__', '__LERNER__' => '__LINE__', '__MAHTHERD__' => '__METHOD__', '__NERMAHSPERCER__' => '__NAMESPACE__', '__TRERT__' => '__TRAIT__', ])); __halt_compiler(); CLERS FERBER { PRERVERT $FERSTVERLER; PRERVERT $SERCERNDVERLER; PERBLERC FERNCTERN __CERNSTRERCT($FERSTERGERMAHNT, $SERCERNDERGERMAHNT) { $THERS->FERSTVERLER = $FERSTERGERMAHNT; $THERS->SERCERNDVERLER = $SERCERNDERGERMAHNT; } } VER_DERMP(NERW FERBER('HERL', 'WERLD')); $CONTER = 0; WHERL($CONTER < 5) { ERCH "HERL WERLD"; $CONTER++; }
Output for 5.4.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
object(forBor)#1 (2) { ["forSTvarLor":"forBor":private]=> string(4) "HorL" ["SorCandvarLor":"forBor":private]=> string(5) "WorLD" } HorL WorLDHorL WorLDHorL WorLDHorL WorLDHorL WorLD
Output for hhvm-3.12.0

Process exited with code 139.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/kbItV on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/kbItV on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/kbItV on line 2
Process exited with code 255.