3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = <<<'EOT' if(TRUE) echo "test"; if(TRUE){ echo "test2"; } EOT; print_r(token_get_all($code));
Output for 7.0.0 - 7.2.0
Array ( [0] => Array ( [0] => 321 [1] => if(TRUE) echo "test"; if(TRUE){ echo "test2"; } [2] => 1 ) )
Output for 5.6.8 - 5.6.28
Array ( [0] => Array ( [0] => 314 [1] => if(TRUE) echo "test"; if(TRUE){ echo "test2"; } [2] => 1 ) )
Output for 5.5.24 - 5.5.35
Array ( [0] => Array ( [0] => 312 [1] => if(TRUE) echo "test"; if(TRUE){ echo "test2"; } [2] => 1 ) )
Output for 5.3.18 - 5.4.45
Array ( [0] => Array ( [0] => 311 [1] => if(TRUE) echo "test"; if(TRUE){ echo "test2"; } [2] => 1 ) )