3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array ( [nested] => array ( [orig] => 1 [numarr] => array( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) ) ); // array2 $array2 = array ( [nested] => Array ( [numarr] => Array ( [0] => 6 [1] => 7 ) ) ); print_r($array1);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.270.0270.05718.65
5.4.260.0130.05318.96
5.4.250.0100.05718.90
5.4.240.0130.07318.96
5.4.230.0170.06018.79
5.4.220.0100.05318.96
5.4.210.0070.05318.79
5.4.200.0170.06718.91
5.4.190.0100.06019.00
5.4.180.0330.03718.99
5.4.170.0170.06318.94
5.4.160.0170.04718.95
5.4.150.0070.06718.89
5.4.140.0170.05316.43
5.4.130.0100.06716.38
5.4.120.0130.06716.30
5.4.110.0000.06316.49
5.4.100.0070.05016.41
5.4.90.0000.08016.48
5.4.80.0170.05016.40
5.4.70.0130.06316.47
5.4.60.0100.05316.49
5.4.50.0100.05016.59
5.4.40.0100.05716.55
5.4.30.0070.06016.52
5.4.20.0200.06016.46
5.4.10.0000.07716.30
5.4.00.0130.04716.10
5.3.280.0070.07314.60
5.3.270.0030.05714.65
5.3.260.0070.06714.65
5.3.250.0100.05014.61
5.3.240.0070.06014.61
5.3.230.0030.07714.61
5.3.220.0100.07014.58
5.3.210.0030.06014.45
5.3.200.0000.06714.58
5.3.190.0200.04314.41
5.3.180.0100.04714.34
5.3.170.0170.06314.57
5.3.160.0070.05314.44
5.3.150.0130.06314.42
5.3.140.0070.05314.44
5.3.130.0200.06014.32
5.3.120.0030.06714.57
5.3.110.0100.07314.46
5.3.100.0070.07013.88
5.3.90.0100.06014.02
5.3.80.0100.07013.86
5.3.70.0130.07013.88
5.3.60.0130.05013.70
5.3.50.0100.05013.95
5.3.40.0130.06313.79
5.3.30.0200.04313.94
5.3.20.0100.06013.63
5.3.10.0000.08013.67
5.3.00.0030.06013.51
5.2.170.0130.05011.14
5.2.160.0070.04311.16
5.2.150.0030.04311.05
5.2.140.0070.05711.02
5.2.130.0070.04011.19
5.2.120.0070.06010.88
5.2.110.0070.04310.93
5.2.100.0070.05311.11
5.2.90.0070.04010.85
5.2.80.0070.05010.99
5.2.70.0070.06011.08
5.2.60.0070.04311.06
5.2.50.0200.04710.95
5.2.40.0030.04711.01
5.2.30.0000.05011.08
5.2.20.0030.04310.96
5.2.10.0170.04310.84
5.2.00.0030.04710.78
5.1.60.0070.04710.18
5.1.50.0030.0339.92
5.1.40.0100.0379.89
5.1.30.0130.04310.51
5.1.20.0130.03010.43
5.1.10.0030.03710.29
5.1.00.0070.04010.09
5.0.50.0030.0308.40
5.0.40.0070.0378.49
5.0.30.0100.0538.14
5.0.20.0100.0378.28
5.0.10.0070.0378.00
5.0.00.0100.0338.21
4.4.90.0030.0236.23
4.4.80.0100.0236.23
4.4.70.0000.0236.23
4.4.60.0100.0206.23
4.4.50.0070.0276.23
4.4.40.0030.0476.23
4.4.30.0070.0206.23
4.4.20.0070.0276.23
4.4.10.0100.0176.23
4.4.00.0000.0376.23
4.3.110.0000.0236.23
4.3.100.0100.0236.23
4.3.90.0070.0276.23
4.3.80.0070.0436.23
4.3.70.0030.0276.23
4.3.60.0070.0206.23
4.3.50.0070.0276.23
4.3.40.0070.0376.23
4.3.30.0070.0236.23
4.3.20.0000.0276.23
4.3.10.0030.0276.23
4.3.00.0130.0276.72

preferences:
141.18 ms | 1394 KiB | 7 Q