3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo T_CATCH; 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 MWbG2
Output for 7.0.0 - 7.1.0
350 Notice: Undefined variable: e in /in/gBjBf on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_FINALLY: finally {}
Output for hhvm-3.10.0 - 3.13.2
338 Notice: Undefined variable: e in /in/gBjBf on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_FINALLY: finally {}
Output for 5.6.0 - 5.6.28
341 Notice: Undefined variable: e in /in/gBjBf on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_FINALLY: finally {}
Output for 5.5.0 - 5.5.38
339 Notice: Undefined variable: e in /in/gBjBf on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_FINALLY: finally {}
Output for 5.3.0 - 5.4.45
338 Notice: Undefined variable: e in /in/gBjBf on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_STRING: finally {}
Output for 5.1.0 - 5.2.17
337 Notice: Undefined variable: e in /in/gBjBf 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.4 - 5.0.5
336 Notice: Undefined variable: e in /in/gBjBf 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
336 Notice: Undefined variable: e in /in/gBjBf 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: Use of undefined constant T_CATCH - assumed 'T_CATCH' in /in/gBjBf on line 2 T_CATCH Notice: Undefined variable: e in /in/gBjBf on line 3 T_OPEN_TAG: <?php T_STRING: try {}T_STRING: catch (T_STRING: Exception T_WHITESPACE: ){}T_STRING: finally {}