3v4l.org

run code in 300+ PHP versions simultaneously
<?php $l=[]; $l[]=1; $l[]=2; $l[]=3; var_dump($l);
Output for 5.6.38, 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.20, 8.1.0 - 8.1.7
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) }

preferences:
64.11 ms | 416 KiB | 13 Q