3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 0 => array( 'BatchId' => 2 ), 1 => array( 'BatchId' => 3 ), ); $a2 = array_shift(array_shift($a)); print_r($a2);

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)
8.3.40.0070.00718.67
8.3.30.0110.00318.46
8.3.20.0040.00420.21
8.3.10.0050.00323.67
8.3.00.0040.00421.66
8.2.170.0070.00722.96
8.2.160.0070.01020.23
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0040.00420.94
8.2.120.0040.00426.35
8.2.110.0060.01219.36
8.2.100.0040.00718.04
8.2.90.0090.00019.23
8.2.80.0050.00317.97
8.2.70.0070.00317.50
8.2.60.0050.00217.80
8.2.50.0140.00018.09
8.2.40.0040.00422.16
8.2.30.0070.00019.41
8.2.20.0070.00017.52
8.2.10.0000.00718.16
8.2.00.0000.00718.03
8.1.270.0070.00722.06
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0100.00022.30
8.1.230.0090.00317.70
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00717.00
8.1.180.0080.00018.10
8.1.170.0040.00418.46
8.1.160.0050.00220.70
8.1.150.0000.00718.86
8.1.140.0040.00419.38
8.1.130.0000.00717.53
8.1.120.0030.00317.36
8.1.110.0030.00617.40
8.1.100.0000.00817.45
8.1.90.0000.00717.41
8.1.80.0030.00517.39
8.1.70.0000.00717.44
8.1.60.0030.00617.52
8.1.50.0030.00517.50
8.1.40.0050.00317.32
8.1.30.0000.00817.55
8.1.20.0040.00417.50
8.1.10.0000.00817.51
8.1.00.0030.00517.41
8.0.300.0100.00518.77
8.0.290.0000.00716.61
8.0.280.0030.00318.36
8.0.270.0000.00717.22
8.0.260.0000.00717.08
8.0.250.0070.00016.93
8.0.240.0050.00516.92
8.0.230.0000.00816.82
8.0.220.0030.00316.77
8.0.210.0070.00016.88
8.0.200.0000.00616.93
8.0.190.0000.00716.84
8.0.180.0000.00816.74
8.0.170.0040.00416.93
8.0.160.0040.00416.72
8.0.150.0050.00316.78
8.0.140.0000.00716.74
8.0.130.0050.00013.24
8.0.120.0000.00816.77
8.0.110.0080.00016.77
8.0.100.0000.00816.86
8.0.90.0050.00316.91
8.0.80.0120.00916.88
8.0.70.0030.00516.88
8.0.60.0040.00416.82
8.0.50.0040.00416.94
8.0.30.0080.00617.07
8.0.20.0060.01317.40
8.0.10.0040.00417.11
8.0.00.0100.00916.81
7.4.330.0000.00516.79
7.4.320.0060.00016.34
7.4.300.0000.00716.49
7.4.290.0040.00416.35
7.4.280.0040.00416.43
7.4.270.0050.00316.43
7.4.260.0060.00016.45
7.4.250.0070.00016.36
7.4.240.0030.00316.52
7.4.230.0000.00716.62
7.4.220.0120.01216.48
7.4.210.0090.00716.43
7.4.200.0030.00616.33
7.4.160.0030.01216.67
7.4.150.0140.00517.40
7.4.140.0130.01017.86
7.4.130.0080.01316.47
7.4.120.0160.00316.39
7.4.110.0120.00616.40
7.4.100.0170.00016.39
7.4.90.0130.00316.46
7.4.80.0090.00619.39
7.4.70.0160.00916.52
7.4.60.0080.01616.47
7.4.50.0090.00616.19
7.4.40.0130.00316.58
7.4.30.0110.00816.59
7.4.00.0080.00414.66
7.3.330.0000.00513.01
7.3.320.0030.00313.05
7.3.310.0070.00016.32
7.3.300.0030.00316.28
7.3.290.0000.00716.16
7.3.280.0080.01016.25
7.3.270.0170.00017.40
7.3.260.0070.01016.24
7.3.250.0080.01316.33
7.3.240.0110.01216.48
7.3.230.0070.01116.39
7.3.210.0070.01016.37
7.3.200.0180.00419.39
7.3.190.0090.00916.25
7.3.180.0110.01116.20
7.3.170.0090.00916.52
7.3.160.0040.01216.25
7.3.10.0050.01016.54
7.3.00.0090.00516.58
7.2.330.0130.01016.47
7.2.320.0130.01016.64
7.2.310.0130.00316.59
7.2.300.0080.00816.20
7.2.290.0030.01316.58
7.2.130.0030.00816.70
7.2.120.0030.01016.68
7.2.110.0050.00716.83
7.2.100.0020.01116.74
7.2.90.0040.01116.86
7.2.80.0070.00716.63
7.2.70.0050.00916.71
7.2.60.0030.01016.78
7.2.50.0030.00716.83
7.2.40.0050.00916.93
7.2.30.0030.01116.75
7.2.20.0070.00516.85
7.2.10.0070.00516.78
7.2.00.0020.01117.58
7.1.250.0070.00615.63
7.1.200.0080.00415.55
7.1.100.0000.01118.02
7.1.70.0000.00816.86
7.1.60.0110.01419.40
7.1.50.0090.01216.90
7.1.00.0070.07022.25
7.0.200.0490.00714.73
7.0.60.0170.05020.07
7.0.50.0070.04017.80
7.0.40.0130.07720.03
7.0.30.0270.06320.15
7.0.20.0300.06320.16
7.0.10.0100.08020.16
7.0.00.0030.09320.15
5.6.280.0000.06020.85
5.6.210.0200.07020.68
5.6.200.0000.08718.12
5.6.190.0070.08720.61
5.6.180.0200.04020.63
5.6.170.0270.07720.47
5.6.160.0100.04720.70
5.6.150.0100.06318.18
5.6.140.0030.06018.15
5.6.130.0070.06018.12
5.6.120.0070.05020.97
5.6.110.0000.05020.99
5.6.100.0130.08020.95
5.6.90.0100.08020.96
5.6.80.0130.07320.32
5.5.350.0370.06320.37
5.5.340.0130.07718.01
5.5.330.0100.08320.25
5.5.320.0230.04020.28
5.5.310.0200.03720.30
5.5.300.0030.03717.88
5.5.290.0070.04717.98
5.5.280.0130.08320.95
5.5.270.0100.05020.73
5.5.260.0130.07320.80
5.5.250.0070.07320.46
5.5.240.0200.07720.25

preferences:
48.06 ms | 400 KiB | 5 Q