3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('hhvm.enable_zend_sorting', 0); define("thisIsVeryBigKeyName0",0); define("thisIsVeryBigKeyName1",1); $a=array(); for ($n=0;$n<100000;$n++){ $a[]=array("thisIsVeryBigKeyName0"=>0,"thisIsVeryBigKeyName1"=>1); } for ($n=0;$n<10;$n++){ foreach ($a as $a2){ $test=$a2["thisIsVeryBigKeyName0"].$a2["thisIsVeryBigKeyName1"]; } }
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.24, 5.6.26 - 5.6.40, 7.0.0 - 7.0.29, 7.0.32 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.3, 7.2.6, 7.2.8 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1, 8.1.28, 8.2.16 - 8.2.18, 8.3.3 - 8.3.6
Output for 5.6.25, 7.0.30 - 7.0.31, 7.2.4 - 7.2.5, 7.2.7

Process exited with code 137.

preferences:
205.15 ms | 402 KiB | 250 Q