3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(token_get_all("<?php \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
array(2) { [0]=> array(3) { [0]=> int(389) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(405) [1]=> string(1) "" [2]=> int(1) } }
Output for 8.3.0, 8.3.2, 8.3.4
array(2) { [0]=> array(3) { [0]=> int(394) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(405) [1]=> string(1) "" [2]=> int(1) } }
Output for 8.0.30
array(2) { [0]=> array(3) { [0]=> int(387) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(401) [1]=> string(1) "" [2]=> int(1) } }
Output for 8.0.0 - 8.0.29
array(2) { [0]=> array(3) { [0]=> int(390) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(401) [1]=> string(1) "" [2]=> int(1) } }
Output for 7.4.0 - 7.4.33
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/96vvh on line 2 array(2) { [0]=> array(3) { [0]=> int(382) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(395) [1]=> string(1) "" [2]=> int(1) } }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
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 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.1.6, 5.2.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.3.11, 4.4.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 " } }

preferences:
290.52 ms | 402 KiB | 377 Q