3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(token_get_all('<?php abstract class A<$T1 isin B, $T2 isout C> '));
based on EnWBM
Output for 7.0.0 - 7.1.0, 7.2.0
array(22) { [0]=> array(3) { [0]=> int(379) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(382) [1]=> string(2) " " [2]=> int(1) } [2]=> array(3) { [0]=> int(312) [1]=> string(8) "abstract" [2]=> int(3) } [3]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [4]=> array(3) { [0]=> int(361) [1]=> string(5) "class" [2]=> int(3) } [5]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [6]=> array(3) { [0]=> int(319) [1]=> string(1) "A" [2]=> int(3) } [7]=> string(1) "<" [8]=> array(3) { [0]=> int(320) [1]=> string(3) "$T1" [2]=> int(3) } [9]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [10]=> array(3) { [0]=> int(319) [1]=> string(4) "isin" [2]=> int(3) } [11]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [12]=> array(3) { [0]=> int(319) [1]=> string(1) "B" [2]=> int(3) } [13]=> string(1) "," [14]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [15]=> array(3) { [0]=> int(320) [1]=> string(3) "$T2" [2]=> int(3) } [16]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [17]=> array(3) { [0]=> int(319) [1]=> string(5) "isout" [2]=> int(3) } [18]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [19]=> array(3) { [0]=> int(319) [1]=> string(1) "C" [2]=> int(3) } [20]=> string(1) ">" [21]=> array(3) { [0]=> int(382) [1]=> string(2) " " [2]=> int(3) } }
Output for 7.1.5 - 7.1.10
array(22) { [0]=> array(3) { [0]=> int(379) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(382) [1]=> string(2) " " [2]=> int(1) } [2]=> array(3) { [0]=> int(315) [1]=> string(8) "abstract" [2]=> int(3) } [3]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [4]=> array(3) { [0]=> int(361) [1]=> string(5) "class" [2]=> int(3) } [5]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [6]=> array(3) { [0]=> int(319) [1]=> string(1) "A" [2]=> int(3) } [7]=> string(1) "<" [8]=> array(3) { [0]=> int(320) [1]=> string(3) "$T1" [2]=> int(3) } [9]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [10]=> array(3) { [0]=> int(319) [1]=> string(4) "isin" [2]=> int(3) } [11]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [12]=> array(3) { [0]=> int(319) [1]=> string(1) "B" [2]=> int(3) } [13]=> string(1) "," [14]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [15]=> array(3) { [0]=> int(320) [1]=> string(3) "$T2" [2]=> int(3) } [16]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [17]=> array(3) { [0]=> int(319) [1]=> string(5) "isout" [2]=> int(3) } [18]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(3) } [19]=> array(3) { [0]=> int(319) [1]=> string(1) "C" [2]=> int(3) } [20]=> string(1) ">" [21]=> array(3) { [0]=> int(382) [1]=> string(2) " " [2]=> int(3) } }
Output for 5.6.8 - 5.6.28
array(22) { [0]=> array(3) { [0]=> int(376) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(379) [1]=> string(2) " " [2]=> int(1) } [2]=> array(3) { [0]=> int(351) [1]=> string(8) "abstract" [2]=> int(3) } [3]=> array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(3) } [4]=> array(3) { [0]=> int(358) [1]=> string(5) "class" [2]=> int(3) } [5]=> array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(3) } [6]=> array(3) { [0]=> int(310) [1]=> string(1) "A" [2]=> int(3) } [7]=> string(1) "<" [8]=> array(3) { [0]=> int(312) [1]=> string(3) "$T1" [2]=> int(3) } [9]=> array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(3) } [10]=> array(3) { [0]=> int(310) [1]=> string(4) "isin" [2]=> int(3) } [11]=> array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(3) } [12]=> array(3) { [0]=> int(310) [1]=> string(1) "B" [2]=> int(3) } [13]=> string(1) "," [14]=> array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(3) } [15]=> array(3) { [0]=> int(312) [1]=> string(3) "$T2" [2]=> int(3) } [16]=> array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(3) } [17]=> array(3) { [0]=> int(310) [1]=> string(5) "isout" [2]=> int(3) } [18]=> array(3) { [0]=> int(379) [1]=> string(1) " " [2]=> int(3) } [19]=> array(3) { [0]=> int(310) [1]=> string(1) "C" [2]=> int(3) } [20]=> string(1) ">" [21]=> array(3) { [0]=> int(379) [1]=> string(2) " " [2]=> int(3) } }
Output for 5.5.24 - 5.5.35
array(22) { [0]=> array(3) { [0]=> int(374) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(377) [1]=> string(2) " " [2]=> int(1) } [2]=> array(3) { [0]=> int(349) [1]=> string(8) "abstract" [2]=> int(3) } [3]=> array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(3) } [4]=> array(3) { [0]=> int(356) [1]=> string(5) "class" [2]=> int(3) } [5]=> array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(3) } [6]=> array(3) { [0]=> int(308) [1]=> string(1) "A" [2]=> int(3) } [7]=> string(1) "<" [8]=> array(3) { [0]=> int(310) [1]=> string(3) "$T1" [2]=> int(3) } [9]=> array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(3) } [10]=> array(3) { [0]=> int(308) [1]=> string(4) "isin" [2]=> int(3) } [11]=> array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(3) } [12]=> array(3) { [0]=> int(308) [1]=> string(1) "B" [2]=> int(3) } [13]=> string(1) "," [14]=> array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(3) } [15]=> array(3) { [0]=> int(310) [1]=> string(3) "$T2" [2]=> int(3) } [16]=> array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(3) } [17]=> array(3) { [0]=> int(308) [1]=> string(5) "isout" [2]=> int(3) } [18]=> array(3) { [0]=> int(377) [1]=> string(1) " " [2]=> int(3) } [19]=> array(3) { [0]=> int(308) [1]=> string(1) "C" [2]=> int(3) } [20]=> string(1) ">" [21]=> array(3) { [0]=> int(377) [1]=> string(2) " " [2]=> int(3) } }
Output for 5.4.9 - 5.4.45
array(22) { [0]=> array(3) { [0]=> int(372) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(375) [1]=> string(2) " " [2]=> int(1) } [2]=> array(3) { [0]=> int(347) [1]=> string(8) "abstract" [2]=> int(3) } [3]=> array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(3) } [4]=> array(3) { [0]=> int(354) [1]=> string(5) "class" [2]=> int(3) } [5]=> array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(3) } [6]=> array(3) { [0]=> int(307) [1]=> string(1) "A" [2]=> int(3) } [7]=> string(1) "<" [8]=> array(3) { [0]=> int(309) [1]=> string(3) "$T1" [2]=> int(3) } [9]=> array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(3) } [10]=> array(3) { [0]=> int(307) [1]=> string(4) "isin" [2]=> int(3) } [11]=> array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(3) } [12]=> array(3) { [0]=> int(307) [1]=> string(1) "B" [2]=> int(3) } [13]=> string(1) "," [14]=> array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(3) } [15]=> array(3) { [0]=> int(309) [1]=> string(3) "$T2" [2]=> int(3) } [16]=> array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(3) } [17]=> array(3) { [0]=> int(307) [1]=> string(5) "isout" [2]=> int(3) } [18]=> array(3) { [0]=> int(375) [1]=> string(1) " " [2]=> int(3) } [19]=> array(3) { [0]=> int(307) [1]=> string(1) "C" [2]=> int(3) } [20]=> string(1) ">" [21]=> array(3) { [0]=> int(375) [1]=> string(2) " " [2]=> int(3) } }
Output for 5.3.19 - 5.3.29
array(22) { [0]=> array(3) { [0]=> int(368) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(371) [1]=> string(2) " " [2]=> int(1) } [2]=> array(3) { [0]=> int(346) [1]=> string(8) "abstract" [2]=> int(3) } [3]=> array(3) { [0]=> int(371) [1]=> string(1) " " [2]=> int(3) } [4]=> array(3) { [0]=> int(353) [1]=> string(5) "class" [2]=> int(3) } [5]=> array(3) { [0]=> int(371) [1]=> string(1) " " [2]=> int(3) } [6]=> array(3) { [0]=> int(307) [1]=> string(1) "A" [2]=> int(3) } [7]=> string(1) "<" [8]=> array(3) { [0]=> int(309) [1]=> string(3) "$T1" [2]=> int(3) } [9]=> array(3) { [0]=> int(371) [1]=> string(1) " " [2]=> int(3) } [10]=> array(3) { [0]=> int(307) [1]=> string(4) "isin" [2]=> int(3) } [11]=> array(3) { [0]=> int(371) [1]=> string(1) " " [2]=> int(3) } [12]=> array(3) { [0]=> int(307) [1]=> string(1) "B" [2]=> int(3) } [13]=> string(1) "," [14]=> array(3) { [0]=> int(371) [1]=> string(1) " " [2]=> int(3) } [15]=> array(3) { [0]=> int(309) [1]=> string(3) "$T2" [2]=> int(3) } [16]=> array(3) { [0]=> int(371) [1]=> string(1) " " [2]=> int(3) } [17]=> array(3) { [0]=> int(307) [1]=> string(5) "isout" [2]=> int(3) } [18]=> array(3) { [0]=> int(371) [1]=> string(1) " " [2]=> int(3) } [19]=> array(3) { [0]=> int(307) [1]=> string(1) "C" [2]=> int(3) } [20]=> string(1) ">" [21]=> array(3) { [0]=> int(371) [1]=> string(2) " " [2]=> int(3) } }