3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(token_get_all("<?php \1"));
Output for 7.0.0 - 7.1.0
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/96vvh on line 2 array(1) { [0]=> array(3) { [0]=> int(379) [1]=> string(6) "<?php " [2]=> int(1) } }
Output for hhvm-3.10.0 - 3.12.0
array(1) { [0]=> array(3) { [0]=> int(368) [1]=> string(6) "<?php " [2]=> int(1) } }
Output for 5.6.0 - 5.6.28
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/96vvh on line 2 array(1) { [0]=> array(3) { [0]=> int(376) [1]=> string(6) "<?php " [2]=> int(1) } }
Output for 5.5.0 - 5.5.36
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/96vvh on line 2 array(1) { [0]=> array(3) { [0]=> int(374) [1]=> string(6) "<?php " [2]=> int(1) } }
Output for 5.4.0 - 5.4.45
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/96vvh on line 2 array(1) { [0]=> array(3) { [0]=> int(372) [1]=> string(6) "<?php " [2]=> int(1) } }
Output for 5.3.0 - 5.3.29
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/96vvh on line 2 array(1) { [0]=> array(3) { [0]=> int(368) [1]=> string(6) "<?php " [2]=> int(1) } }
Output for 5.2.2 - 5.2.17
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/96vvh on line 2 array(1) { [0]=> array(3) { [0]=> int(367) [1]=> string(6) "<?php " [2]=> int(1) } }
Output for 5.1.0 - 5.2.1
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/96vvh on line 2 array(1) { [0]=> array(2) { [0]=> int(367) [1]=> string(6) "<?php " } }
Output for 5.0.0 - 5.0.5
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/96vvh on line 2 array(1) { [0]=> array(2) { [0]=> int(365) [1]=> string(6) "<?php " } }
Output for 4.4.2 - 4.4.9
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/96vvh on line 2 array(1) { [0]=> array(2) { [0]=> int(354) [1]=> string(6) "<?php " } }
Output for 4.3.0 - 4.4.1
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/96vvh on line 2 array(1) { [0]=> array(2) { [0]=> int(353) [1]=> string(6) "<?php " } }