3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(token_get_all('<?php `ls "-1"`'));
Output for 7.0.0 - 7.1.0
array(4) { [0]=> array(3) { [0]=> int(379) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> string(1) "`" [2]=> array(3) { [0]=> int(322) [1]=> string(7) "ls "-1"" [2]=> int(1) } [3]=> string(1) "`" }
Output for 5.3.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
array(4) { [0]=> array(3) { [0]=> int(368) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> string(1) "`" [2]=> array(3) { [0]=> int(314) [1]=> string(7) "ls "-1"" [2]=> int(1) } [3]=> string(1) "`" }
Output for 5.6.7 - 5.6.28
array(4) { [0]=> array(3) { [0]=> int(376) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> string(1) "`" [2]=> array(3) { [0]=> int(317) [1]=> string(7) "ls "-1"" [2]=> int(1) } [3]=> string(1) "`" }
Output for 5.5.24 - 5.5.35
array(4) { [0]=> array(3) { [0]=> int(374) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> string(1) "`" [2]=> array(3) { [0]=> int(315) [1]=> string(7) "ls "-1"" [2]=> int(1) } [3]=> string(1) "`" }
Output for 5.4.0 - 5.4.45
array(4) { [0]=> array(3) { [0]=> int(372) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> string(1) "`" [2]=> array(3) { [0]=> int(314) [1]=> string(7) "ls "-1"" [2]=> int(1) } [3]=> string(1) "`" }
Output for 5.2.3 - 5.2.17
array(4) { [0]=> array(3) { [0]=> int(367) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> string(1) "`" [2]=> array(3) { [0]=> int(314) [1]=> string(7) "ls "-1"" [2]=> int(1) } [3]=> string(1) "`" }
Output for 5.2.2
array(9) { [0]=> array(3) { [0]=> int(367) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> string(1) "`" [2]=> array(3) { [0]=> int(307) [1]=> string(2) "ls" [2]=> int(1) } [3]=> array(3) { [0]=> int(314) [1]=> string(1) " " [2]=> int(1) } [4]=> array(3) { [0]=> int(314) [1]=> string(1) """ [2]=> int(1) } [5]=> array(3) { [0]=> int(314) [1]=> string(1) "-" [2]=> int(1) } [6]=> array(3) { [0]=> int(310) [1]=> string(1) "1" [2]=> int(1) } [7]=> array(3) { [0]=> int(314) [1]=> string(1) """ [2]=> int(1) } [8]=> string(1) "`" }
Output for 5.1.0 - 5.2.1
array(9) { [0]=> array(2) { [0]=> int(367) [1]=> string(6) "<?php " } [1]=> string(1) "`" [2]=> array(2) { [0]=> int(307) [1]=> string(2) "ls" } [3]=> array(2) { [0]=> int(314) [1]=> string(1) " " } [4]=> array(2) { [0]=> int(314) [1]=> string(1) """ } [5]=> array(2) { [0]=> int(314) [1]=> string(1) "-" } [6]=> array(2) { [0]=> int(310) [1]=> string(1) "1" } [7]=> array(2) { [0]=> int(314) [1]=> string(1) """ } [8]=> string(1) "`" }
Output for 5.0.0 - 5.0.5
array(9) { [0]=> array(2) { [0]=> int(365) [1]=> string(6) "<?php " } [1]=> string(1) "`" [2]=> array(2) { [0]=> int(306) [1]=> string(2) "ls" } [3]=> array(2) { [0]=> int(313) [1]=> string(1) " " } [4]=> array(2) { [0]=> int(313) [1]=> string(1) """ } [5]=> array(2) { [0]=> int(313) [1]=> string(1) "-" } [6]=> array(2) { [0]=> int(309) [1]=> string(1) "1" } [7]=> array(2) { [0]=> int(313) [1]=> string(1) """ } [8]=> string(1) "`" }
Output for 4.4.2 - 4.4.9
array(9) { [0]=> array(2) { [0]=> int(354) [1]=> string(6) "<?php " } [1]=> string(1) "`" [2]=> array(2) { [0]=> int(305) [1]=> string(2) "ls" } [3]=> array(2) { [0]=> int(312) [1]=> string(1) " " } [4]=> array(2) { [0]=> int(312) [1]=> string(1) """ } [5]=> array(2) { [0]=> int(312) [1]=> string(1) "-" } [6]=> array(2) { [0]=> int(308) [1]=> string(1) "1" } [7]=> array(2) { [0]=> int(312) [1]=> string(1) """ } [8]=> string(1) "`" }
Output for 4.3.2 - 4.4.1
array(9) { [0]=> array(2) { [0]=> int(353) [1]=> string(6) "<?php " } [1]=> string(1) "`" [2]=> array(2) { [0]=> int(304) [1]=> string(2) "ls" } [3]=> array(2) { [0]=> int(311) [1]=> string(1) " " } [4]=> array(2) { [0]=> int(311) [1]=> string(1) """ } [5]=> array(2) { [0]=> int(311) [1]=> string(1) "-" } [6]=> array(2) { [0]=> int(307) [1]=> string(1) "1" } [7]=> array(2) { [0]=> int(311) [1]=> string(1) """ } [8]=> string(1) "`" }
Output for 4.3.0 - 4.3.1
array(7) { [0]=> array(2) { [0]=> int(353) [1]=> string(6) "<?php " } [1]=> string(1) "`" [2]=> array(2) { [0]=> int(304) [1]=> string(3) "ls " } [3]=> array(2) { [0]=> int(311) [1]=> string(1) """ } [4]=> array(2) { [0]=> int(304) [1]=> string(2) "-1" } [5]=> array(2) { [0]=> int(311) [1]=> string(1) """ } [6]=> string(1) "`" }