3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = array(1,3,4,5); $d = array_map(function() { return (object)array('derp'=>rand()); }, $d); array_splice($d, 12, 0, 12); var_dump($d);

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)
7.3.10.0030.00916.61
7.3.00.0070.01016.59
7.2.130.0070.00716.99
7.2.120.0100.00316.99
7.2.110.0040.00717.00
7.2.100.0030.01216.59
7.2.90.0100.00316.91
7.2.80.0050.00516.79
7.2.70.0100.00016.95
7.2.60.0070.00716.99
7.2.50.0050.00516.88
7.2.40.0090.00617.03
7.2.30.0000.01416.91
7.2.20.0030.01316.92
7.2.10.0040.01116.99
7.2.00.0070.00617.97
7.1.250.0040.01115.84
7.1.70.0040.00416.84
7.1.60.0140.01019.40
7.1.50.0000.02216.86
7.1.00.0130.05722.31
7.0.200.0410.00614.43
7.0.140.0000.07322.12
7.0.120.0030.03722.06
7.0.60.0000.09319.84
7.0.50.0170.06717.93
7.0.40.0330.07319.98
7.0.30.0300.06320.15
7.0.20.0230.06320.15
7.0.10.0370.05020.16
7.0.00.0300.07020.12
5.6.280.0000.07320.99
5.6.210.0130.03320.46
5.6.200.0070.03718.20
5.6.190.0230.06320.52
5.6.180.0300.06320.55
5.6.170.0270.07320.64
5.6.160.0270.07320.41
5.6.150.0230.07320.41
5.6.140.0370.07020.40
5.6.130.0130.09320.37
5.6.120.0530.06720.43
5.6.110.0230.03720.51
5.6.100.0230.08020.36
5.6.90.0230.07020.42
5.6.80.0400.05319.91
5.6.70.0230.06019.61
5.6.60.0170.07019.55
5.6.50.0270.06019.62
5.6.40.0200.08019.54
5.6.30.0270.05319.69
5.6.20.0270.06719.80
5.6.10.0270.07719.73
5.6.00.0300.07319.67
5.5.350.0070.03720.35
5.5.340.0030.03717.98
5.5.330.0270.05320.57
5.5.320.0170.08320.28
5.5.310.0230.08020.31
5.5.300.0200.06320.18
5.5.290.0300.08020.30
5.5.280.0170.06320.14
5.5.270.0270.07020.32
5.5.260.0200.08020.30
5.5.250.0230.05019.94
5.5.240.0300.07319.42
5.5.230.0300.07319.35
5.5.220.0430.05019.60
5.5.210.0230.07719.49
5.5.200.0270.05719.32
5.5.190.0300.07319.49
5.5.180.0230.07319.56
5.5.160.0270.07019.44
5.5.150.0230.08019.32
5.5.140.0230.06719.65
5.5.130.0230.07719.49
5.5.120.0300.07319.48
5.5.110.0230.05319.31
5.5.100.0230.07719.23
5.5.90.0270.06319.49
5.5.80.0200.06319.54
5.5.70.0300.07719.21
5.5.60.0200.04719.56
5.5.50.0500.06019.48
5.5.40.0230.06719.32
5.5.30.0100.06019.50
5.5.20.0200.06319.52
5.5.10.0370.06719.31
5.5.00.0230.06319.36
5.4.450.0230.06019.48
5.4.440.0230.04019.48
5.4.430.0270.07319.39
5.4.420.0200.07019.53
5.4.410.0230.06319.06
5.4.400.0270.06719.15
5.4.390.0430.07319.15
5.4.380.0270.05018.98
5.4.370.0200.05719.25
5.4.360.0270.07318.88
5.4.350.0200.05019.00
5.4.340.0230.07719.15
5.4.320.0230.07018.86
5.4.310.0270.07319.15
5.4.300.0400.05319.15
5.4.290.0300.06318.92
5.4.280.0200.03719.15
5.4.270.0130.08718.96
5.4.260.0230.07318.92
5.4.250.0170.06019.15
5.4.240.0230.07319.14
5.4.230.0270.07019.14
5.4.220.0230.07319.14
5.4.210.0300.07019.00
5.4.200.0230.07319.15
5.4.190.0300.07019.19
5.4.180.0130.08019.14
5.4.170.0130.04718.84
5.4.160.0170.07719.13
5.4.150.0230.07719.15
5.4.140.0230.07716.41
5.4.130.0230.04016.36
5.4.120.0230.04016.34
5.4.110.0100.07016.45
5.4.100.0170.07316.30
5.4.90.0270.03016.43
5.4.80.0270.06716.34
5.4.70.0170.07316.63
5.4.60.0330.06016.37
5.4.50.0200.07716.38
5.4.40.0230.06716.58
5.4.30.0300.05316.28
5.4.20.0170.07316.25
5.4.10.0200.03716.42
5.4.00.0330.04015.69
5.3.290.0230.05314.72
5.3.280.0200.07314.59
5.3.270.0300.03714.49
5.3.260.0230.06014.52
5.3.250.0230.05314.76
5.3.240.0270.06014.61
5.3.230.0230.07314.63
5.3.220.0300.07014.57
5.3.210.0230.07014.71
5.3.200.0230.07014.62
5.3.190.0170.03714.56
5.3.180.0370.06014.61
5.3.170.0270.05714.50
5.3.160.0270.06714.71
5.3.150.0200.04014.60
5.3.140.0170.08014.59
5.3.130.0270.07014.57
5.3.120.0200.07314.58
5.3.110.0230.05014.62
5.3.100.0200.06014.08
5.3.90.0300.07314.03
5.3.80.0170.05014.16
5.3.70.0170.05314.05
5.3.60.0230.06014.03
5.3.50.0200.04013.96
5.3.40.0230.05713.83
5.3.30.0230.07013.96
5.3.20.0200.04313.68
5.3.10.0270.06313.82
5.3.00.0200.06313.53
5.2.170.0300.05312.50
5.2.160.0170.05712.50
5.2.150.0200.05712.50
5.2.140.0200.05712.50
5.2.130.0130.03012.50
5.2.120.0200.06012.50
5.2.110.0230.05712.50
5.2.100.0270.04712.50
5.2.90.0200.05312.50
5.2.80.0230.05012.50
5.2.70.0200.06012.50
5.2.60.0170.06312.50
5.2.50.0230.03712.50
5.2.40.0070.05012.50
5.2.30.0200.05312.50
5.2.20.0200.04012.50
5.2.10.0200.03312.50
5.2.00.0070.06012.50
5.1.60.0200.02312.50
5.1.50.0170.04012.50
5.1.40.0170.05312.50
5.1.30.0130.05712.50
5.1.20.0130.04312.50
5.1.10.0200.03012.50
5.1.00.0170.06012.50
5.0.50.0100.03012.50
5.0.40.0070.03012.50
5.0.30.0030.06712.50
5.0.20.0100.03712.50
5.0.10.0130.03012.50
5.0.00.0100.06312.50
4.4.90.0130.02012.50
4.4.80.0100.03312.50
4.4.70.0070.03012.50
4.4.60.0100.03012.50
4.4.50.0070.03012.50
4.4.40.0030.03012.50
4.4.30.0130.02712.50
4.4.20.0070.03012.50
4.4.10.0000.02312.50
4.4.00.0200.03012.50
4.3.110.0100.02012.50
4.3.100.0100.01712.50
4.3.90.0030.02712.50
4.3.80.0070.04312.50
4.3.70.0100.01712.50
4.3.60.0130.03312.50
4.3.50.0070.03712.50
4.3.40.0070.02312.50
4.3.30.0000.04012.50
4.3.20.0000.03012.50
4.3.10.0130.01712.50
4.3.00.0030.02712.50

preferences:
34.99 ms | 401 KiB | 5 Q