<?php
foreach(array('T_FINALLY', 'T_INSTEADOF', 'T_TRAIT', 'T_TRAIT_C', 'T_YIELD') as $c) {
echo $c, ': ';
if(defined($c))
var_dump(constant($c));
else
var_dump(-1);
}
- Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.1, 8.3.3, 8.3.5 - 8.3.6
- T_FINALLY: int(316)
T_INSTEADOF: int(319)
T_TRAIT: int(334)
T_TRAIT_C: int(347)
T_YIELD: int(281)
- Output for 8.3.0, 8.3.2, 8.3.4
- T_FINALLY: int(353)
T_INSTEADOF: int(355)
T_TRAIT: int(370)
T_TRAIT_C: int(383)
T_YIELD: int(268)
- Output for 8.0.30
- T_FINALLY: int(316)
T_INSTEADOF: int(319)
T_TRAIT: int(333)
T_TRAIT_C: int(345)
T_YIELD: int(281)
- Output for 8.0.0 - 8.0.29
- T_FINALLY: int(351)
T_INSTEADOF: int(353)
T_TRAIT: int(367)
T_TRAIT_C: int(379)
T_YIELD: int(268)
- Output for 7.4.0 - 7.4.33
- T_FINALLY: int(348)
T_INSTEADOF: int(351)
T_TRAIT: int(365)
T_TRAIT_C: int(377)
T_YIELD: int(267)
- Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
- T_FINALLY: int(351)
T_INSTEADOF: int(354)
T_TRAIT: int(362)
T_TRAIT_C: int(374)
T_YIELD: int(267)
- Output for 5.6.0 - 5.6.40
- T_FINALLY: 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_FINALLY: 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_FINALLY: int(-1)
T_INSTEADOF: int(341)
T_TRAIT: int(355)
T_TRAIT_C: int(365)
T_YIELD: int(-1)
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- T_FINALLY: int(-1)
T_INSTEADOF: int(-1)
T_TRAIT: int(-1)
T_TRAIT_C: int(-1)
T_YIELD: int(-1)
preferences:
294.84 ms | 403 KiB | 457 Q