3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo 'T_FINALY: '; var_dump(T_FINALLY); echo 'T_INSTEADOF: '; var_dump(T_INSTEADOF); echo 'T_TRAIT: '; var_dump(T_TRAIT); echo 'T_TRAIT_C: '; var_dump(T_TRAIT_C); echo 'T_YIELD: '; var_dump(T_YIELD);
Output for 7.0.0 - 7.1.0
T_FINALY: int(351) T_INSTEADOF: int(354) T_TRAIT: int(362) T_TRAIT_C: int(374) T_YIELD: int(267)
Output for hhvm-3.10.0 - 3.12.0
T_FINALY: int(395) T_INSTEADOF: int(391) T_TRAIT: int(390) T_TRAIT_C: int(392) T_YIELD: int(381)
Output for 5.6.0 - 5.6.28
T_FINALY: int(342) T_INSTEADOF: int(345) T_TRAIT: int(359) T_TRAIT_C: int(369) T_YIELD: int(267)
Output for 5.5.0 - 5.5.38
T_FINALY: int(340) T_INSTEADOF: int(343) T_TRAIT: int(357) T_TRAIT_C: int(367) T_YIELD: int(267)
Output for 5.4.0 - 5.4.45
T_FINALY: Notice: Use of undefined constant T_FINALLY - assumed 'T_FINALLY' in /in/dFdE8 on line 3 string(9) "T_FINALLY" T_INSTEADOF: int(341) T_TRAIT: int(355) T_TRAIT_C: int(365) T_YIELD: Notice: Use of undefined constant T_YIELD - assumed 'T_YIELD' in /in/dFdE8 on line 7 string(7) "T_YIELD"
Output for 4.3.0 - 5.3.29
T_FINALY: Notice: Use of undefined constant T_FINALLY - assumed 'T_FINALLY' in /in/dFdE8 on line 3 string(9) "T_FINALLY" T_INSTEADOF: Notice: Use of undefined constant T_INSTEADOF - assumed 'T_INSTEADOF' in /in/dFdE8 on line 4 string(11) "T_INSTEADOF" T_TRAIT: Notice: Use of undefined constant T_TRAIT - assumed 'T_TRAIT' in /in/dFdE8 on line 5 string(7) "T_TRAIT" T_TRAIT_C: Notice: Use of undefined constant T_TRAIT_C - assumed 'T_TRAIT_C' in /in/dFdE8 on line 6 string(9) "T_TRAIT_C" T_YIELD: Notice: Use of undefined constant T_YIELD - assumed 'T_YIELD' in /in/dFdE8 on line 7 string(7) "T_YIELD"