3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function action($i){ echo ""; } $loops= 100000; $test = Array(); $test['define']=false; $test['var']=true; if($test['define']){ define('DEBUG' , true); for($i=0; $i<$loops; $i++){ if(DEBUG){ action($i); } if(!DEBUG){ action($i); } } } if($test['var']){ $DEBUG = true; for($i=0; $i<$loops; $i++){ if($DEBUG){ action($i); } if(!$DEBUG){ action($i); } } }
based on EEKrU
Output for 4.3.0 - 7.1.0