3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tokens = token_get_all('<?php $a = 1 + 2; echo $a ?>'); foreach($tokens => $token) { echo token_name($tokne[0]); }
Output for 5.4.13
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/GT3LZ on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in ndkbi on line 5
Process exited with code 255.
Output for 5.3.23
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/GT3LZ on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected T_DOUBLE_ARROW in ndkbi on line 5
Process exited with code 255.

preferences:
178.6 ms | 1395 KiB | 45 Q