3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_map(function($token) { $token[0] = token_name($token[0]); return $token; }, token_get_all("<?php if (0 === 1) {} elseif (1 === 2) {} else {}"))); var_dump(array_map(function($token) { $token[0] = token_name($token[0]); return $token; }, token_get_all("<?php if (0 === 1) {} else if (1 === 2) {} else {}")));

preferences:
33.64 ms | 406 KiB | 6 Q