3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error[1000] = "You must provide a first_name"; $error[] = "You must provide a last_name"; $error[0] = "This will push the other two errors down one index"; 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.3.60.0180.00718.30
8.3.50.0110.00721.98
8.3.40.0110.00418.93
8.3.30.0100.00719.17
8.3.20.0040.00420.33
8.3.10.0050.00222.08
8.3.00.0050.00322.51
8.2.180.0120.00316.75
8.2.170.0070.00722.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0080.00626.16
8.2.120.0070.00019.23
8.2.110.0090.00022.29
8.2.100.0090.00317.84
8.2.90.0070.00019.23
8.2.80.0080.00017.97
8.2.70.0000.01117.50
8.2.60.0040.00417.68
8.2.50.0080.00018.07
8.2.40.0080.00018.22
8.2.30.0070.00018.12
8.2.20.0040.00417.65
8.2.10.0070.00017.73
8.2.00.0050.00317.66
8.1.280.0140.00725.92
8.1.270.0000.00822.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00024.02
8.1.230.0080.00319.23
8.1.220.0040.00417.74
8.1.210.0030.00718.77
8.1.200.0030.00717.35
8.1.190.0040.00417.53
8.1.180.0120.00018.10
8.1.170.0030.00518.57
8.1.160.0070.00021.94
8.1.150.0000.00818.57
8.1.140.0000.00717.37
8.1.130.0030.00317.75
8.1.120.0080.00017.40
8.1.110.0000.00817.37
8.1.100.0000.00717.44
8.1.90.0040.00417.39
8.1.80.0000.00817.29
8.1.70.0030.00317.29
8.1.60.0060.00317.40
8.1.50.0000.00817.45
8.1.40.0000.00817.27
8.1.30.0040.00417.55
8.1.20.0050.00317.41
8.1.10.0030.00517.50
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0000.00818.29
8.0.270.0000.00717.11
8.0.260.0000.00816.63
8.0.250.0030.00316.88
8.0.240.0000.00716.79
8.0.230.0030.00316.77
8.0.220.0000.00716.81
8.0.210.0030.00316.86
8.0.200.0030.00316.84
8.0.190.0050.00316.75
8.0.180.0100.00016.73
8.0.170.0050.00316.79
8.0.160.0080.00016.81
8.0.150.0030.00316.69
8.0.140.0000.00716.70
8.0.130.0000.00613.21
8.0.120.0050.00316.67
8.0.110.0050.00316.80
8.0.100.0000.00716.69
8.0.90.0070.00016.70
8.0.80.0060.01016.76
8.0.70.0000.00716.78
8.0.60.0000.00816.64
8.0.50.0050.00316.77
8.0.30.0100.00917.07
8.0.20.0110.00817.40
8.0.10.0000.00716.93
8.0.00.0070.01016.80
7.4.330.0060.00015.14
7.4.320.0030.00316.52
7.4.300.0000.00616.53
7.4.290.0030.00316.32
7.4.280.0030.00316.47
7.4.270.0070.00016.52
7.4.260.0070.00016.56
7.4.250.0000.00716.55
7.4.240.0020.00516.49
7.4.230.0000.00716.43
7.4.220.0070.01116.56
7.4.210.0060.01016.47
7.4.200.0000.00716.23
7.4.190.0040.00416.67
7.4.160.0100.00716.57
7.4.150.0070.01117.40
7.4.140.0090.01117.86
7.4.130.0020.02016.42
7.4.120.0070.01116.39
7.4.110.0070.01016.39
7.4.100.0100.00716.56
7.4.90.0080.00916.46
7.4.80.0100.00719.39
7.4.70.0000.01616.39
7.4.60.0070.01016.55
7.4.50.0060.00316.51
7.4.40.0070.01022.77
7.4.30.0060.01116.38
7.4.00.0090.00614.91
7.3.330.0060.00013.11
7.3.320.0020.00213.05
7.3.310.0000.00716.34
7.3.300.0030.00316.30
7.3.290.0100.00716.17
7.3.280.0110.00516.30
7.3.270.0090.01217.40
7.3.260.0180.00616.29
7.3.250.0130.00716.43
7.3.240.0060.01016.21
7.3.230.0080.00816.39
7.3.210.0060.01316.46
7.3.200.0070.01019.39
7.3.190.0110.00716.25
7.3.180.0090.00616.50
7.3.170.0120.00316.38
7.3.160.0060.00916.32
7.3.120.0000.01614.59
7.3.10.0110.00716.57
7.3.00.0000.01616.15
7.2.330.0090.00816.25
7.2.320.0150.00916.66
7.2.310.0110.00916.27
7.2.300.0110.01116.66
7.2.290.0060.01016.40
7.2.130.0080.00916.48
7.2.120.0120.00516.66
7.2.110.0110.00516.73
7.2.100.0110.00616.59
7.2.90.0100.00816.69
7.2.80.0050.00816.46
7.2.70.0000.01416.89
7.2.60.0060.00916.48
7.2.50.0070.00916.60
7.2.40.0070.00916.44
7.2.30.0100.00516.41
7.2.20.0060.00816.49
7.2.10.0050.01016.53
7.2.00.0050.01017.38
7.1.250.0100.00915.53
7.1.200.0060.00615.60
7.1.100.0030.00718.25
7.1.70.0050.00216.93
7.1.60.0150.00019.82
7.1.50.0140.01016.84
7.1.00.0000.09722.45
7.0.200.0040.00416.86
7.0.140.0130.06322.09
7.0.60.0030.04019.90
7.0.50.0000.04717.90
7.0.40.0170.08320.07
7.0.30.0300.07720.09
7.0.20.0270.08020.30
7.0.10.0230.05020.09
7.0.00.0170.07020.16
5.6.280.0130.06321.01
5.6.210.0100.05720.64
5.6.200.0070.04718.22
5.6.190.0070.09020.41
5.6.180.3830.03720.39
5.6.170.0300.06720.46
5.6.160.0130.07720.33
5.6.150.0030.07718.21
5.6.140.0030.08718.11
5.6.130.0170.07018.18
5.6.120.0000.09020.94
5.6.110.0000.04720.93
5.6.100.0070.08321.04
5.6.90.0030.07020.99
5.6.80.0070.05020.35
5.6.70.0330.04720.48
5.5.350.0100.05020.31
5.5.340.0000.09018.02
5.5.330.0170.03720.40
5.5.320.0300.06320.34
5.5.310.0300.05020.20
5.5.300.0070.07317.88
5.5.290.0170.07717.95
5.5.280.0030.07320.88
5.5.270.0130.07320.85
5.5.260.0000.08720.86
5.5.250.0100.07320.65
5.5.240.0130.07320.25
5.4.450.1170.07719.54
5.4.440.0600.06019.55
5.4.430.0170.04719.44
5.4.420.0130.05319.32
5.4.410.0000.06319.25
5.4.400.0800.00018.63
5.4.390.0870.00018.78
5.4.380.0270.05018.52
5.4.370.0230.04718.52
5.4.360.0170.05018.70
5.4.350.0200.05718.59
5.4.340.0200.05018.61
5.4.320.0120.03412.45
5.4.310.0070.04012.45
5.4.300.0060.03712.45
5.4.290.0040.04012.45
5.4.280.0060.03912.35
5.4.270.0070.06718.99
5.4.260.0130.06718.89
5.4.250.0070.06718.74
5.4.240.0170.06718.90
5.4.230.0200.07318.74
5.4.220.0100.05718.89
5.4.210.0130.07018.92
5.4.200.0230.04318.77
5.4.190.0170.06718.64
5.4.180.0100.07318.74
5.4.170.0200.06318.70
5.4.160.0170.06018.88
5.4.150.0270.06018.98
5.4.140.0130.05016.54
5.4.130.0100.07316.28
5.4.120.0070.06316.29
5.4.110.0130.04716.40
5.4.100.0170.05016.37
5.4.90.0130.05016.29
5.4.80.0030.06016.51
5.4.70.0070.05016.40
5.4.60.0130.06316.48
5.4.50.0200.05716.36
5.4.40.0200.04316.32
5.4.30.0130.05316.23
5.4.20.0200.05716.49
5.4.10.0170.06016.32
5.4.00.0000.05715.71
5.3.290.0090.03612.80
5.3.280.0170.04714.46
5.3.270.0100.06014.45
5.3.260.0030.06314.60
5.3.250.0130.05014.60
5.3.240.0070.05314.61
5.3.230.0070.05014.48
5.3.220.0170.04314.26
5.3.210.0100.05714.48
5.3.200.0130.06314.55
5.3.190.0030.05714.56
5.3.180.0100.07014.60
5.3.170.0070.07014.33
5.3.160.0130.04714.43
5.3.150.0070.05314.56
5.3.140.0070.05714.42
5.3.130.0000.06314.52
5.3.120.0200.06314.24
5.3.110.0130.05314.54
5.3.100.0030.06313.87
5.3.90.0170.05013.86
5.3.80.0170.06314.03
5.3.70.0100.05013.79
5.3.60.0100.05713.85
5.3.50.0170.04313.64
5.3.40.0070.06313.95
5.3.30.0030.07013.89
5.3.20.0100.04713.84
5.3.10.0000.05713.74
5.3.00.0100.07013.65
5.2.170.0070.05311.04
5.2.160.0170.04711.04
5.2.150.0030.05010.90
5.2.140.0130.04711.07
5.2.130.0070.05010.98
5.2.120.0100.06011.09
5.2.110.0030.04011.10
5.2.100.0100.03711.02
5.2.90.0100.04311.10
5.2.80.0100.05011.01
5.2.70.0000.04711.02
5.2.60.0130.05311.07
5.2.50.0070.04310.93
5.2.40.0000.05011.01
5.2.30.0070.04310.97
5.2.20.0100.04311.06
5.2.10.0070.03710.79
5.2.00.0070.04710.79
5.1.60.0030.03310.18
5.1.50.0030.04310.18
5.1.40.0100.05010.00
5.1.30.0000.04010.26
5.1.20.0100.03310.42
5.1.10.0100.03310.25
5.1.00.0030.04710.29
5.0.50.0070.0278.57
5.0.40.0130.0338.45
5.0.30.0100.0508.10
5.0.20.0030.0378.13
5.0.10.0100.0278.31
5.0.00.0130.0338.24
4.4.90.0070.0275.81
4.4.80.0100.0135.79
4.4.70.0070.0175.74
4.4.60.0000.0375.79
4.4.50.0030.0235.75
4.4.40.0000.0535.77
4.4.30.0100.0135.76
4.4.20.0070.0205.81
4.4.10.0100.0275.81
4.4.00.0030.0335.93
4.3.110.0100.0205.83
4.3.100.0070.0205.71
4.3.90.0000.0335.76
4.3.80.0000.0335.69
4.3.70.0200.0135.70
4.3.60.0170.0175.69
4.3.50.0100.0235.69
4.3.40.0000.0435.69
4.3.30.0030.0235.69
4.3.20.0000.0275.69
4.3.10.0000.0275.69
4.3.00.0070.0236.11

preferences:
40.39 ms | 401 KiB | 5 Q