3v4l.org

run code in 300+ PHP versions simultaneously
<?php // All questions including their correct answers $questions = array(); // first Q $questions[] = ["blue", "red", "green", "brown"]; // second Q $questions[] = ["blue", "red", "green", "brown"]; // third Q $questions[] = ["blue", "red", "green", "brown"];

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.0110.00418.31
8.3.50.0090.00821.15
8.3.40.0110.00418.46
8.3.30.0030.01019.09
8.3.20.0000.00720.34
8.3.10.0070.00022.09
8.3.00.0050.00222.34
8.2.180.0030.01216.50
8.2.170.0070.00722.96
8.2.160.0070.01118.89
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.24
8.2.110.0070.00322.25
8.2.100.0060.00619.45
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0050.00517.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0060.00318.16
8.2.30.0030.00517.95
8.2.20.0070.00017.59
8.2.10.0040.00417.68
8.2.00.0080.00019.46
8.1.280.0130.00725.92
8.1.270.0080.00022.14
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00023.88
8.1.230.0090.00319.10
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0040.00417.22
8.1.190.0000.00817.40
8.1.180.0040.00418.64
8.1.170.0040.00418.65
8.1.160.0040.00422.00
8.1.150.0000.00718.61
8.1.140.0050.00317.26
8.1.130.0000.00717.70
8.1.120.0000.00717.39
8.1.110.0000.00817.40
8.1.100.0040.00417.39
8.1.90.0040.00417.38
8.1.80.0050.00217.41
8.1.70.0000.00717.29
8.1.60.0030.00617.54
8.1.50.0030.00517.46
8.1.40.0030.00517.36
8.1.30.0070.00017.60
8.1.20.0000.00817.44
8.1.10.0040.00417.38
8.1.00.0080.00017.44
8.0.300.0070.00018.77
8.0.290.0070.00017.05
8.0.280.0030.00318.25
8.0.270.0030.00316.76
8.0.260.0070.00016.74
8.0.250.0030.00316.93
8.0.240.0030.00316.95
8.0.230.0000.00716.72
8.0.220.0030.00316.85
8.0.210.0040.00416.84
8.0.200.0030.00316.95
8.0.190.0030.00316.78
8.0.180.0070.00016.86
8.0.170.0030.00616.74
8.0.160.0080.00016.88
8.0.150.0000.00716.85
8.0.140.0050.00316.69
8.0.130.0030.00313.22
8.0.120.0050.00316.80
8.0.110.0040.00416.72
8.0.100.0030.00316.71
8.0.90.0080.00016.85
8.0.80.0000.01416.86
8.0.70.0070.00016.77
8.0.60.0000.00716.64
8.0.50.0000.00716.69
8.0.30.0070.01617.01
8.0.20.0100.00817.40
8.0.10.0000.00716.84
8.0.00.0150.00716.71
7.4.330.0020.00215.00
7.4.320.0000.00616.36
7.4.300.0000.00616.34
7.4.290.0030.00316.59
7.4.280.0080.00016.32
7.4.270.0030.00316.54
7.4.260.0070.00316.52
7.4.250.0090.00016.54
7.4.240.0000.00816.53
7.4.230.0040.00416.54
7.4.220.0160.00716.54
7.4.210.0100.00616.52
7.4.200.0070.00016.41
7.4.190.0030.00516.39
7.4.160.0180.00416.42
7.4.150.0060.01217.40
7.4.140.0130.00717.86
7.4.130.0090.01016.38
7.4.120.0070.00916.50
7.4.110.0140.00416.21
7.4.100.0150.00316.56
7.4.90.0090.00916.50
7.4.80.0080.00819.39
7.4.70.0100.00616.55
7.4.60.0070.01416.46
7.4.50.0000.00516.27
7.4.40.0000.00922.77
7.4.30.0110.00716.53
7.4.00.0030.01214.82
7.3.330.0050.00013.14
7.3.320.0000.00513.07
7.3.310.0040.00416.26
7.3.300.0000.00716.26
7.3.290.0080.00716.23
7.3.280.0090.00916.26
7.3.270.0040.01517.40
7.3.260.0030.01316.18
7.3.250.0080.01216.32
7.3.240.0090.01416.28
7.3.230.0090.00616.39
7.3.210.0110.00616.19
7.3.200.0120.00919.39
7.3.190.0070.01016.37
7.3.180.0090.00616.27
7.3.170.0100.00716.27
7.3.160.0090.00616.39
7.3.120.0040.01114.65
7.3.10.0030.01016.46
7.3.00.0060.00916.53
7.2.330.0130.00616.54
7.2.320.0090.00916.49
7.2.310.0100.01016.66
7.2.300.0080.00816.54
7.2.290.0140.00716.31
7.2.130.0070.01016.78
7.2.120.0090.00316.30
7.2.110.0070.00716.75
7.2.100.0060.00616.75
7.2.90.0070.00416.96
7.2.80.0040.00816.76
7.2.70.0040.00816.66
7.2.60.0040.01116.78
7.2.50.0030.00916.68
7.2.40.0060.00916.68
7.2.30.0040.00716.83
7.2.20.0030.00916.13
7.2.10.0030.00916.53
7.2.00.0090.00517.98
7.1.250.0040.00815.57
7.1.100.0070.00718.13
7.1.70.0030.00317.16
7.1.60.0100.01419.82
7.1.50.0070.01416.75
7.1.00.0100.07022.36
7.0.200.0000.00716.81
7.0.140.0070.06721.95
7.0.70.4270.04719.88
7.0.60.0030.04019.86
7.0.50.0170.07317.89
7.0.40.0070.04019.95
7.0.30.0200.06720.09
7.0.20.0230.07320.16
7.0.10.0330.07020.18
7.0.00.0130.08320.16
5.6.280.0070.07020.92
5.6.210.0100.07020.75
5.6.200.0130.06718.21
5.6.190.0000.06720.64
5.6.180.0200.06020.60
5.6.170.0400.07020.62
5.6.160.0100.06720.61
5.6.150.0030.04018.18
5.6.140.0030.05318.20
5.6.130.0230.05318.17
5.6.120.0100.04721.14
5.6.110.0000.04320.95
5.6.100.0100.06020.96
5.6.90.0100.08020.99
5.6.80.0030.04020.40
5.6.70.0100.05320.40
5.5.350.0030.04320.44
5.5.340.0070.07318.01
5.5.330.0130.07720.46
5.5.320.0030.03720.43
5.5.310.0300.07720.17
5.5.300.0030.05318.00
5.5.290.0070.03718.00
5.5.280.0130.05320.95
5.5.270.0030.04020.73
5.5.260.0070.09020.83
5.5.250.0030.04320.57
5.5.240.0030.06720.18
5.4.450.0200.04719.48
5.4.440.0870.06019.27
5.4.430.0830.06319.46
5.4.420.0930.06319.63
5.4.410.0970.06718.96
5.4.400.0930.06318.93
5.4.390.0970.06019.14
5.4.380.0400.05718.70
5.4.370.0100.05318.46
5.4.360.0130.03318.76
5.4.350.0070.03411.97
5.4.340.0040.03611.97
5.4.320.0110.03212.45
5.4.310.0040.03912.45
5.4.300.0050.03612.45
5.4.290.0080.04012.45
5.4.280.0050.03612.34
5.4.270.0050.04112.35
5.4.260.0050.03812.35
5.4.250.0060.03612.35
5.4.240.0040.04712.34
5.4.230.0060.03812.34
5.4.220.0060.03812.34
5.4.210.0050.03712.34
5.4.200.0040.04012.34
5.4.190.0030.05318.81
5.4.180.0100.06718.66
5.4.170.0130.07018.63
5.4.160.0130.04718.62
5.4.150.0070.05318.85
5.4.140.0130.04316.48
5.4.130.0030.05316.45
5.4.120.0030.05716.33
5.4.110.0100.07016.44
5.4.100.0070.06716.29
5.4.90.0070.04716.48
5.4.80.0070.05016.38
5.4.70.0130.04016.30
5.4.60.0100.04716.11
5.4.50.0100.04316.11
5.4.40.0100.06716.24
5.4.30.0070.05016.45
5.4.20.0200.04016.33
5.4.10.0130.04716.38
5.4.00.0100.06715.71
5.3.290.0070.03812.80
5.3.280.0060.03912.71
5.3.270.0130.05014.53
5.3.260.0100.05014.65
5.3.250.0070.05314.62
5.3.240.0100.06314.46
5.3.230.0000.05714.51
5.3.220.0230.05314.58
5.3.210.0000.06014.48
5.3.200.0100.05014.59
5.3.190.0100.05014.27
5.3.180.0100.06014.40
5.3.170.0170.04014.58
5.3.160.0130.04714.58
5.3.150.0070.05014.57
5.3.140.0070.05714.71
5.3.130.0030.05314.57
5.3.120.0030.06314.61
5.3.110.0100.06714.64
5.3.100.0130.04714.05
5.3.90.0100.04714.07
5.3.80.0100.05713.96
5.3.70.0100.04313.91
5.3.60.0000.07713.78
5.3.50.0100.04713.97
5.3.40.0100.04313.96
5.3.30.0100.07013.79
5.3.20.0200.03713.73
5.3.10.0100.04313.67
5.3.00.0230.06013.59
5.2.170.0100.06011.05
5.2.160.0030.04011.23
5.2.150.0170.05311.05
5.2.140.0030.04311.07
5.2.130.0000.04710.98
5.2.120.0030.04010.93
5.2.110.0170.04711.11
5.2.100.0100.05311.03
5.2.90.0130.04011.00
5.2.80.0200.04311.11
5.2.70.0100.03711.12
5.2.60.0070.04010.94
5.2.50.0000.04311.04
5.2.40.0130.03310.91
5.2.30.0000.04310.92
5.2.20.0030.04310.96
5.2.10.0030.04010.95
5.2.00.0130.03310.77
5.1.60.0070.03010.05
5.1.50.0100.02710.04
5.1.40.0030.0509.83
5.1.30.0070.03710.39
5.1.20.0100.03010.36
5.1.10.0130.02710.11
5.1.00.0070.0339.98
5.0.50.0030.0278.78
5.0.40.0100.0208.46
5.0.30.0100.0508.48
5.0.20.0100.0238.15
5.0.10.0070.0278.13
5.0.00.0070.0538.13
4.4.90.0030.0276.88
4.4.80.0000.0276.88
4.4.70.0030.0206.88
4.4.60.0000.0236.88
4.4.50.0070.0176.88
4.4.40.0000.0336.88
4.4.30.0030.0206.88
4.4.20.0000.0336.88
4.4.10.0030.0206.88
4.4.00.0000.0336.88
4.3.110.0030.0276.88
4.3.100.0030.0236.88
4.3.90.0000.0236.88
4.3.80.0030.0336.88
4.3.70.0000.0336.88
4.3.60.0100.0176.88
4.3.50.0100.0136.88
4.3.40.0030.0306.88
4.3.30.0070.0176.88
4.3.20.0000.0236.88
4.3.10.0000.0236.88
4.3.00.0000.0237.32

preferences:
42.77 ms | 401 KiB | 5 Q