3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error = array( 'qwerty1' => 1, 'qwerty3' => 3 ); $error = array_slice($error, 0, 1, true) + array('qwerty2' => 2) + array_slice($error, 1, NULL, true); var_dump($error);

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.4.140.0150.00517.55
8.4.130.0130.00717.64
8.4.120.0040.00421.85
8.4.110.0130.00718.66
8.4.100.0120.00817.71
8.4.90.0120.00817.40
8.4.80.0090.01122.51
8.4.70.0080.00817.82
8.4.60.0100.01018.84
8.4.50.0140.00618.76
8.4.40.0040.00717.43
8.4.30.0070.01119.73
8.4.20.0140.00719.06
8.4.10.0060.00317.86
8.3.270.0130.00816.57
8.3.260.0100.01016.55
8.3.250.0100.00919.02
8.3.240.0100.00916.54
8.3.230.0060.00516.57
8.3.220.0090.00919.13
8.3.210.0120.00716.43
8.3.200.0050.00416.58
8.3.190.0140.00517.05
8.3.180.0110.00916.59
8.3.170.0070.01118.46
8.3.160.0120.00617.27
8.3.150.0120.00916.88
8.3.140.0120.00316.31
8.3.130.0070.01016.58
8.3.120.0060.00320.62
8.3.110.0090.00020.94
8.3.100.0040.00824.06
8.3.90.0030.00526.77
8.3.80.0060.00318.31
8.3.70.0070.00716.50
8.3.60.0100.01016.38
8.3.50.0070.01216.42
8.3.40.0130.01018.71
8.3.30.0140.00318.68
8.3.20.0000.00821.90
8.3.10.0000.00823.69
8.3.00.0000.00819.44
8.2.290.0070.01120.44
8.2.280.0120.00418.03
8.2.270.0140.00017.24
8.2.260.0030.01416.23
8.2.250.0000.00816.47
8.2.240.0030.00616.95
8.2.230.0000.00922.58
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0210.00016.58
8.2.180.0090.00618.04
8.2.170.0040.01122.96
8.2.160.0030.01022.05
8.2.150.0000.00724.18
8.2.140.0090.00024.66
8.2.130.0040.00420.56
8.2.120.0000.00726.35
8.2.110.0040.00421.11
8.2.100.0110.00017.72
8.2.90.0090.00317.90
8.2.80.0030.00618.09
8.2.70.0000.00817.91
8.2.60.0080.00017.50
8.2.50.0000.00718.10
8.2.40.0050.00322.32
8.2.30.0040.00419.29
8.2.20.0000.00817.89
8.2.10.0040.00417.66
8.2.00.0000.00718.05
8.1.330.0100.00816.48
8.1.320.0110.00816.31
8.1.310.0150.00316.79
8.1.300.0030.00618.45
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0030.00523.99
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0050.00522.48
8.1.230.0090.00320.91
8.1.220.0000.00817.74
8.1.210.0130.00018.77
8.1.200.0030.00517.22
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0000.00718.88
8.1.150.0040.00420.16
8.1.140.0040.00417.58
8.1.130.0030.00319.00
8.1.120.0050.00217.41
8.1.110.0060.00317.40
8.1.100.0030.00717.27
8.1.90.0040.00417.38
8.1.80.0040.00417.35
8.1.70.0000.00717.40
8.1.60.0040.00417.42
8.1.50.0040.00717.43
8.1.40.0080.00017.52
8.1.30.0080.00317.51
8.1.20.0030.00617.47
8.1.10.0050.00317.50
8.1.00.0040.00417.39
8.0.300.0050.00219.89
8.0.290.0060.00316.75
8.0.280.0030.00318.33
8.0.270.0040.00417.23
8.0.260.0060.00316.68
8.0.250.0060.00316.95
8.0.240.0030.00316.83
8.0.230.0070.00016.84
8.0.220.0050.00316.86
8.0.210.0000.00716.93
8.0.200.0090.00016.91
8.0.190.0070.00316.82
8.0.180.0040.00416.93
8.0.170.0030.00616.79
8.0.160.0000.00716.95
8.0.150.0030.00516.87
8.0.140.0040.00416.81
8.0.130.0030.00313.27
8.0.120.0000.00716.85
8.0.110.0040.00416.70
8.0.100.0040.00416.83
8.0.90.0000.00716.87
8.0.80.0110.00416.88
8.0.70.0030.00616.77
8.0.60.0000.00716.88
8.0.50.0040.00416.91
8.0.30.0130.00617.13
8.0.20.0160.00817.40
8.0.10.0040.00417.06
8.0.00.0050.01216.80
7.4.330.0020.00215.55
7.4.320.0030.00316.57
7.4.300.0060.00016.53
7.4.290.0030.00316.39
7.4.280.0040.00416.50
7.4.270.0070.00016.35
7.4.260.0070.00016.43
7.4.250.0050.00216.40
7.4.240.0000.00716.46
7.4.230.0030.00316.42
7.4.220.0030.00516.29
7.4.210.0070.00716.49
7.4.200.0030.00316.41
7.4.160.0130.00916.47
7.4.140.0090.00917.86
7.4.130.0120.00616.36
7.4.120.0100.00716.41
7.4.110.0160.00316.36
7.4.100.0110.00716.20
7.4.90.0080.00816.48
7.4.80.0130.01019.39
7.4.70.0110.00716.24
7.4.60.0040.01116.32
7.4.50.0110.00316.42
7.4.40.0170.00016.32
7.4.00.0080.00414.84
7.3.330.0060.00013.03
7.3.320.0040.00312.94
7.3.310.0070.00016.16
7.3.300.0030.00316.07
7.3.290.0030.00315.98
7.3.280.0090.00816.15
7.3.260.0100.01116.21
7.3.240.0100.00916.32
7.3.230.0150.00316.15
7.3.210.0030.01416.13
7.3.200.0070.01016.36
7.3.190.0100.00716.25
7.3.180.0060.00916.04
7.3.170.0040.01216.32
7.3.160.0130.00316.27
7.3.120.0070.00714.77
7.3.110.0150.00314.76
7.3.100.0130.00014.65
7.3.90.0060.00914.76
7.3.80.0060.00914.57
7.3.70.0030.01014.69
7.3.60.0000.01214.69
7.3.50.0150.00014.64
7.3.40.0030.01414.76
7.3.30.0040.00714.56
7.3.20.0060.00916.19
7.3.10.0060.00816.61
7.3.00.0040.00416.53
7.2.330.0110.00916.35
7.2.320.0090.01216.49
7.2.310.0080.00816.37
7.2.300.0130.00316.54
7.2.290.0130.00316.56
7.2.240.0120.00614.68
7.2.230.0060.01214.79
7.2.220.0000.01514.93
7.2.210.0000.01314.88
7.2.200.0030.01214.94
7.2.190.0140.00014.90
7.2.180.0060.00915.11
7.2.170.0040.01115.01
7.2.160.0060.00814.86
7.2.150.0000.01616.71
7.2.140.0030.01316.70
7.2.130.0110.00416.73
7.2.120.0000.00916.88
7.2.110.0030.01016.59
7.2.100.0090.00616.66
7.2.90.0130.00316.95
7.2.80.0030.01316.55
7.2.70.0030.00616.77
7.2.60.0030.01216.73
7.2.50.0060.00916.61
7.2.40.0090.00616.91
7.2.30.0050.01117.33
7.2.20.0090.00717.12
7.2.10.0060.01316.98
7.2.00.0040.01017.18
7.1.330.0030.00715.92
7.1.320.0060.00615.61
7.1.310.0070.00715.75
7.1.300.0030.01215.72
7.1.290.0040.00815.86
7.1.280.0070.00415.89
7.1.270.0070.00415.39
7.1.260.0090.00615.64
7.1.250.0060.01015.74
7.1.200.0080.00415.81
7.1.150.0090.01716.23
7.1.140.0080.01516.47
7.1.130.0100.00916.09
7.1.120.0100.01016.46
7.1.110.0080.01015.91
7.1.100.0150.00815.63
7.1.90.0100.00715.78
7.1.80.0080.00916.15
7.1.70.0170.00715.36
7.1.60.0220.01733.12
7.1.50.0380.01332.83
7.1.40.0260.01332.50
7.1.30.0250.01332.72
7.1.20.0310.02232.65
7.1.10.0090.01014.76
7.1.00.0110.01014.91

preferences:
157.08 ms | 403 KiB | 5 Q