3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(token_get_all('<? `ls "-1"`'));
Output for 7.0.0 - 7.3.0alpha1
array(5) { [0]=> array(3) { [0]=> int(379) [1]=> string(2) "<?" [2]=> int(1) } [1]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(1) } [2]=> string(1) "`" [3]=> array(3) { [0]=> int(322) [1]=> string(7) "ls "-1"" [2]=> int(1) } [4]=> string(1) "`" }
Output for 5.6.7 - 5.6.28
array(5) { [0]=> array(3) { [0]=> int(376) [1]=> string(2) "<?" [2]=> int(1) } [1]=> array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(1) } [2]=> string(1) "`" [3]=> array(3) { [0]=> int(317) [1]=> string(7) "ls "-1"" [2]=> int(1) } [4]=> string(1) "`" }
Output for 5.5.24 - 5.5.35
array(5) { [0]=> array(3) { [0]=> int(374) [1]=> string(2) "<?" [2]=> int(1) } [1]=> array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(1) } [2]=> string(1) "`" [3]=> array(3) { [0]=> int(315) [1]=> string(7) "ls "-1"" [2]=> int(1) } [4]=> string(1) "`" }
Output for 5.4.0 - 5.4.24, 5.4.34 - 5.4.45
array(5) { [0]=> array(3) { [0]=> int(372) [1]=> string(2) "<?" [2]=> int(1) } [1]=> array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(1) } [2]=> string(1) "`" [3]=> array(3) { [0]=> int(314) [1]=> string(7) "ls "-1"" [2]=> int(1) } [4]=> string(1) "`" }
Output for 5.3.0 - 5.3.29, 5.4.25 - 5.4.32
array(1) { [0]=> array(3) { [0]=> int(311) [1]=> string(12) "<? `ls "-1"`" [2]=> int(1) } }
Output for 5.2.2 - 5.2.17
array(2) { [0]=> array(3) { [0]=> int(311) [1]=> string(2) "<?" [2]=> int(1) } [1]=> array(3) { [0]=> int(311) [1]=> string(10) " `ls "-1"`" [2]=> int(1) } }
Output for 5.1.0 - 5.2.1
array(2) { [0]=> array(2) { [0]=> int(311) [1]=> string(2) "<?" } [1]=> array(2) { [0]=> int(311) [1]=> string(10) " `ls "-1"`" } }
Output for 5.0.0 - 5.0.5
array(2) { [0]=> array(2) { [0]=> int(310) [1]=> string(2) "<?" } [1]=> array(2) { [0]=> int(310) [1]=> string(10) " `ls "-1"`" } }
Output for 4.4.2 - 4.4.9
array(2) { [0]=> array(2) { [0]=> int(309) [1]=> string(2) "<?" } [1]=> array(2) { [0]=> int(309) [1]=> string(10) " `ls "-1"`" } }
Output for 4.3.0 - 4.4.1
array(2) { [0]=> array(2) { [0]=> int(308) [1]=> string(2) "<?" } [1]=> array(2) { [0]=> int(308) [1]=> string(10) " `ls "-1"`" } }