3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo T_INSTEADOF; 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 vF4qq
Output for 7.0.0 - 7.1.0
354 Notice: Undefined variable: e in /in/3PQg6 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.12.0
391 Notice: Undefined variable: e in /in/3PQg6 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.7 - 5.6.28
345 Notice: Undefined variable: e in /in/3PQg6 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.24 - 5.5.35
343 Notice: Undefined variable: e in /in/3PQg6 on line 3 T_OPEN_TAG: <?php T_TRY: try {}T_CATCH: catch (T_STRING: Exception T_WHITESPACE: ){}T_FINALLY: finally {}
Output for 5.4.0 - 5.4.45
341 Notice: Undefined variable: e in /in/3PQg6 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.3.29
Notice: Use of undefined constant T_INSTEADOF - assumed 'T_INSTEADOF' in /in/3PQg6 on line 2 T_INSTEADOF Notice: Undefined variable: e in /in/3PQg6 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: Use of undefined constant T_INSTEADOF - assumed 'T_INSTEADOF' in /in/3PQg6 on line 2 T_INSTEADOF Notice: Undefined variable: e in /in/3PQg6 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_INSTEADOF - assumed 'T_INSTEADOF' in /in/3PQg6 on line 2 T_INSTEADOF Notice: Undefined variable: e in /in/3PQg6 on line 3 T_OPEN_TAG: <?php T_STRING: try {}T_STRING: catch (T_STRING: Exception T_WHITESPACE: ){}T_STRING: finally {}