3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php !php $pad=8;$e=PHP_EOL;echo 'Current PHP version: ' . phpversion() .$e. 'Strict comparisons with ==='.str_repeat($e,2);$values=array("true"=>true,"false"=>false,"1"=>1,"0"=>0,"-1"=>-1,"'1'"=>"1",'"0"'=>"0",'"-1"'=>"-1","null"=>null,"array()"=>array(),"'php'"=>"php","''" =>"");echo str_pad('', $pad);foreach ($values as $key => $value){echo str_pad($key, $pad);}echo str_repeat($e, 2);foreach ($values as $k1 => $v1){echo str_pad($k1, $pad);foreach($values as $k2 => $v2) {$varExport = var_export($v1 === $v2, true);echo str_pad(strtoupper($varExport), $pad);}echo $e;}
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '$pad' (T_VARIABLE) in /in/DMpPX on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/DMpPX on line 2
Process exited with code 255.