3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(token_get_all("<?php try{}catch(Exception $e){}finally{}") as $tok) { if(is_array($tok)) { echo token_name($tok[0]) . ": "; echo $tok[1] . "\n"; } else { echo $tok; } }
based on agjsv
Output for 5.5.24 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: e in /in/MWbG2 on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_FINALLY: finally {}
Output for 5.0.4 - 5.4.45
Notice: Undefined variable: e in /in/MWbG2 on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_STRING: finally {}
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: e in /in/MWbG2 on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_STRING: finally {}
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: e in /in/MWbG2 on line 3 T_OPEN_TAG: <?php T_STRING: try {}T_STRING: catch (T_STRING: Exception T_WHITESPACE: ){}T_STRING: finally {}