3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.4.1 - 8.4.5
array(11) { [0]=> array(3) { [0]=> int(393) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(266) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(396) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(396) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(266) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(389) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(262) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" } array(11) { [0]=> array(3) { [0]=> int(393) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(266) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(396) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(396) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(266) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(389) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(262) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" }
Output for 8.1.0 - 8.1.32, 8.2.0 - 8.2.28, 8.3.1, 8.3.3, 8.3.5 - 8.3.6, 8.3.8, 8.3.10, 8.3.12, 8.3.14, 8.3.16, 8.3.18 - 8.3.19
array(11) { [0]=> array(3) { [0]=> int(389) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(266) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(392) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(392) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(266) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(385) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(262) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" } array(11) { [0]=> array(3) { [0]=> int(389) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(266) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(392) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(392) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(266) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(385) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(262) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" }
Output for 8.3.0, 8.3.2, 8.3.4, 8.3.7, 8.3.9, 8.3.11, 8.3.13, 8.3.15, 8.3.17
array(11) { [0]=> array(3) { [0]=> int(394) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(317) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(397) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(397) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(317) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(391) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(313) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" } array(11) { [0]=> array(3) { [0]=> int(394) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(317) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(397) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(397) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(317) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(391) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(313) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" }
Output for 8.0.30
array(11) { [0]=> array(3) { [0]=> int(387) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(266) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(390) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(390) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(266) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(383) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(262) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" } array(11) { [0]=> array(3) { [0]=> int(387) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(266) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(390) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(390) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(266) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(383) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(262) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" }
Output for 8.0.1 - 8.0.29
array(11) { [0]=> array(3) { [0]=> int(390) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(315) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(393) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(393) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(315) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(387) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(311) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" } array(11) { [0]=> array(3) { [0]=> int(390) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(315) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(393) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(393) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(315) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(387) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(311) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" }
Output for 8.0.0
array(11) { [0]=> array(3) { [0]=> int(390) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(315) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(393) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(393) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(315) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(387) [1]=> string(3) "?->" [2]=> int(1) } [7]=> array(3) { [0]=> int(311) [1]=> string(1) "b" [2]=> int(1) } [8]=> string(1) "(" [9]=> string(1) ")" [10]=> string(1) ";" } array(10) { [0]=> array(3) { [0]=> int(390) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(315) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(393) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(393) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(315) [1]=> string(2) "$a" [2]=> int(1) } [6]=> array(3) { [0]=> int(311) [1]=> string(1) "b" [2]=> int(1) } [7]=> string(1) "(" [8]=> string(1) ")" [9]=> string(1) ";" }
Output for 7.4.0 - 7.4.33
array(12) { [0]=> array(3) { [0]=> int(382) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(312) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(385) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(385) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(312) [1]=> string(2) "$a" [2]=> int(1) } [6]=> string(1) "?" [7]=> array(3) { [0]=> int(369) [1]=> string(2) "->" [2]=> int(1) } [8]=> array(3) { [0]=> int(311) [1]=> string(1) "b" [2]=> int(1) } [9]=> string(1) "(" [10]=> string(1) ")" [11]=> string(1) ";" } Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in on line 1
Process exited with code 255.
Output for 7.3.0 - 7.3.33
array(12) { [0]=> array(3) { [0]=> int(379) [1]=> string(6) "<?php " [2]=> int(1) } [1]=> array(3) { [0]=> int(320) [1]=> string(4) "$foo" [2]=> int(1) } [2]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(1) } [3]=> string(1) "=" [4]=> array(3) { [0]=> int(382) [1]=> string(1) " " [2]=> int(1) } [5]=> array(3) { [0]=> int(320) [1]=> string(2) "$a" [2]=> int(1) } [6]=> string(1) "?" [7]=> array(3) { [0]=> int(366) [1]=> string(2) "->" [2]=> int(1) } [8]=> array(3) { [0]=> int(319) [1]=> string(1) "b" [2]=> int(1) } [9]=> string(1) "(" [10]=> string(1) ")" [11]=> string(1) ";" } Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in on line 1
Process exited with code 255.

preferences:
132.13 ms | 432 KiB | 5 Q