3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); $yes = 0; for ($i = 0; $i < 12; ++$i) { $result = date('F',strtotime($months[$i])); if ($result != $months[$i]) { $font = "red"; } else { $font = "green"; $yes++; } echo "<font color='" . $font . "'>" . $result . "</font>\n"; } echo "\n" . $yes . " / 12 correct months."; ?>

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.0140.00018.97
8.3.30.0090.00620.39
8.3.20.0080.00019.03
8.3.10.0080.00019.46
8.3.00.0030.00519.68
8.2.170.0040.01122.96
8.2.160.0140.00020.35
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.95
8.2.110.0090.00020.32
8.2.100.0060.00617.97
8.2.90.0000.00719.34
8.2.80.0030.00519.39
8.2.70.0040.00418.00
8.2.60.0050.00318.05
8.2.50.0120.00018.07
8.2.40.0000.00918.34
8.2.30.0000.00719.50
8.2.20.0060.00317.91
8.2.10.0050.00317.87
8.2.00.0030.00617.98
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00820.80
8.1.230.0090.00320.95
8.1.220.0030.00518.77
8.1.210.0040.00418.90
8.1.200.0070.00317.47
8.1.190.0000.00717.53
8.1.180.0060.00318.10
8.1.170.0030.00618.84
8.1.160.0030.00518.86
8.1.150.0000.01018.82
8.1.140.0040.00417.55
8.1.130.0000.00717.93
8.1.120.0000.00817.54
8.1.110.0030.00617.61
8.1.100.0000.00817.54
8.1.90.0070.00017.61
8.1.80.0000.00817.50
8.1.70.0080.00017.64
8.1.60.0000.00717.63
8.1.50.0050.00217.46
8.1.40.0040.00417.67
8.1.30.0070.00017.60
8.1.20.0040.00417.75
8.1.10.0040.00417.77
8.1.00.0030.00517.70
8.0.300.0000.00819.89
8.0.290.0060.00317.30
8.0.280.0070.00018.48
8.0.270.0040.00417.33
8.0.260.0030.00316.88
8.0.250.0040.00417.04
8.0.240.0070.00317.14
8.0.230.0000.00717.14
8.0.220.0000.00717.01
8.0.210.0000.00717.12
8.0.200.0000.00717.21
8.0.190.0000.00817.20
8.0.180.0000.00717.12
8.0.170.0080.00017.04
8.0.160.0050.00217.15
8.0.150.0050.00217.10
8.0.140.0040.00417.07
8.0.130.0000.00713.51
8.0.120.0080.00016.91
8.0.110.0000.00816.95
8.0.100.0000.00716.96
8.0.90.0000.00816.91
8.0.80.0060.00917.15
8.0.70.0050.00316.93
8.0.60.0070.00016.89
8.0.50.0000.00717.02
8.0.30.0080.01117.14
8.0.20.0090.00917.40
8.0.10.0000.00817.19
8.0.00.0030.01716.96
7.4.330.0020.00216.69
7.4.320.0050.00316.74
7.4.300.0030.00316.53
7.4.290.0030.00316.74
7.4.280.0000.00616.72
7.4.270.0070.00016.72
7.4.260.0000.00513.30
7.4.250.0000.00716.68
7.4.240.0040.00416.75
7.4.230.0000.00716.54
7.4.220.0120.00816.68
7.4.210.0070.01016.74
7.4.200.0040.00416.80
7.4.190.0040.00416.81
7.4.160.0090.00616.63
7.4.150.0110.00717.40
7.4.140.0080.01417.86
7.4.130.0080.01016.71
7.4.120.0120.00816.59
7.4.110.0090.00916.76
7.4.100.0070.01016.79
7.4.90.0130.01016.61
7.4.80.0090.00919.39
7.4.70.0110.01116.73
7.4.60.0100.00716.65
7.4.50.0030.00616.70
7.4.40.0000.01122.77
7.4.30.0130.00316.41
7.4.00.0030.01414.84
7.3.330.0000.00613.38
7.3.320.0000.00513.12
7.3.310.0040.00416.43
7.3.300.0000.00716.34
7.3.290.0070.00716.36
7.3.280.0110.00816.33
7.3.270.0040.01317.40
7.3.260.0110.01118.24
7.3.250.0060.01116.65
7.3.240.0060.01616.75
7.3.230.0100.01016.57
7.3.210.0110.00616.54
7.3.200.0130.00919.39
7.3.190.0130.00316.74
7.3.180.0110.00616.63
7.3.170.0100.00616.54
7.3.160.0030.01316.50
7.3.120.0060.00615.18
7.2.330.0110.00817.05
7.2.320.0070.01016.94
7.2.310.0070.01416.66
7.2.300.0080.00816.62
7.2.290.0100.01316.75
7.2.60.0270.01016.91
7.1.200.0060.00616.04
7.1.70.0030.00917.39
7.1.60.0030.01919.24
7.1.50.0090.00617.18
7.1.00.0070.03022.36
7.0.200.0030.00716.79
7.0.140.0100.06721.95
7.0.90.0130.04319.89
7.0.80.0100.03719.85
7.0.70.0030.04319.93
7.0.60.0070.07719.88
7.0.50.0130.07720.32
7.0.40.0070.08320.10
7.0.30.0070.08720.08
7.0.20.0000.09020.13
7.0.10.0100.08320.17
7.0.00.0000.09019.99
5.6.280.0000.07721.03
5.6.240.0030.05020.66
5.6.230.0100.03720.64
5.6.220.0030.04020.54
5.6.210.0030.04020.59
5.6.200.0100.08720.95
5.6.190.0000.04320.95
5.6.180.0100.07720.95
5.6.170.0070.06321.04
5.6.160.0000.06320.93
5.6.150.0030.09021.07
5.6.140.0030.08721.01
5.6.130.0070.04021.13
5.6.120.0100.03721.01
5.6.110.0130.06720.93
5.6.100.0130.07321.07
5.6.90.0070.08320.93
5.6.80.0200.06720.35
5.6.70.0070.04020.48
5.6.60.0100.07020.50
5.6.50.0030.04020.33
5.6.40.0070.04720.29
5.6.30.0170.07320.39
5.6.20.0100.05720.30
5.6.10.0070.04720.46
5.6.00.0030.04720.29
5.5.380.0070.04020.51
5.5.370.0030.04020.34
5.5.360.0100.06020.33
5.5.350.0070.03720.38
5.5.340.0270.06720.83
5.5.330.0070.03720.89
5.5.320.0030.07020.83
5.5.310.0130.05720.72
5.5.300.0070.04720.64
5.5.290.0030.04320.86
5.5.280.0100.08320.86
5.5.270.0100.07720.88
5.5.260.0030.08320.91
5.5.250.0070.08720.67
5.5.240.0100.07720.29
5.5.230.0030.04320.29
5.5.220.0070.08020.29
5.5.210.0230.04720.23
5.5.200.0000.04720.19
5.5.190.0100.04320.28
5.5.180.0030.07320.13
5.5.160.0000.06020.23
5.5.150.0100.07720.27
5.5.140.0030.07720.24
5.5.130.0070.06320.26
5.5.120.0030.08020.27
5.5.110.0070.08320.18
5.5.100.0030.08719.95
5.5.90.0030.07020.18
5.5.80.0070.06320.11
5.5.70.0070.07320.15
5.5.60.0030.03720.04
5.5.50.0030.05320.09
5.5.40.0030.04719.93
5.5.30.0030.04320.09
5.5.20.0100.07320.07
5.5.10.0000.04319.99
5.5.00.0200.06320.10
5.4.450.0000.09019.44
5.4.440.0000.07319.42
5.4.430.0030.04719.35
5.4.420.0100.07319.13
5.4.410.0030.04319.27
5.4.400.0070.07019.10
5.4.390.0070.04018.79
5.4.380.0100.03719.06
5.4.370.0030.04719.19
5.4.360.0070.05318.97
5.4.350.0030.07719.04
5.4.340.0130.06019.23
5.4.320.0030.04718.90
5.4.310.0030.07719.02
5.4.300.0100.06719.14
5.4.290.0030.08319.13
5.4.280.0170.06718.97
5.4.270.0070.06018.80
5.4.260.0070.05719.04
5.4.250.0070.04718.89
5.4.240.0000.03719.05
5.4.230.0100.03018.77
5.4.220.0070.06719.09
5.4.210.0030.06319.09
5.4.200.0130.06719.09
5.4.190.0070.06019.13
5.4.180.0070.07019.11
5.4.170.0130.07019.13
5.4.160.0130.06319.17
5.4.150.0200.03019.09
5.4.140.0030.08016.33
5.4.130.0030.04316.38
5.4.120.0070.05716.33
5.4.110.0000.04316.32
5.4.100.0100.07316.50
5.4.90.0100.07016.27
5.4.80.0200.04316.37
5.4.70.0030.03716.27
5.4.60.0070.03716.21
5.4.50.0070.04316.19
5.4.40.0130.06316.38
5.4.30.0100.04316.20
5.4.20.0200.06716.30
5.4.10.0100.06316.30
5.4.00.0070.04015.79
5.3.290.0100.06714.64
5.3.280.0100.07314.57
5.3.270.0100.07314.47
5.3.260.0070.05714.46
5.3.250.0130.04314.57
5.3.240.0000.05014.43
5.3.230.0070.07714.54
5.3.220.0170.06314.40
5.3.210.0030.05014.42
5.3.200.0000.06014.52
5.3.190.0030.07014.53
5.3.180.0100.06314.51
5.3.170.0030.05714.42
5.3.160.0100.08014.52
5.3.150.0130.06314.51
5.3.140.0030.04014.39
5.3.130.0070.07714.55
5.3.120.0070.07714.50
5.3.110.0130.06314.49
5.3.100.0030.04313.87
5.3.90.0000.07714.00
5.3.80.0100.07014.01
5.3.70.0000.07014.02
5.3.60.0130.06713.96
5.3.50.0030.07713.93
5.3.40.0070.03713.94
5.3.30.0070.06313.76
5.3.20.0100.07313.67
5.3.10.0030.07013.43
5.3.00.0000.05313.59
5.2.170.0000.05710.98
5.2.160.0100.05311.18
5.2.150.0100.04711.13
5.2.140.0100.05710.97
5.2.130.0100.05711.10
5.2.120.0100.04711.15
5.2.110.0030.03010.89
5.2.100.0030.06311.02
5.2.90.0100.03010.94
5.2.80.0070.05311.11
5.2.70.0000.04311.08
5.2.60.0070.06011.06
5.2.50.0030.06311.00
5.2.40.0070.06010.98
5.2.30.0070.06010.95
5.2.20.0000.06710.98
5.2.10.0030.06310.80
5.2.00.0000.06310.80
5.1.60.0030.03310.80
5.1.50.0000.05310.80
5.1.40.0030.05010.80
5.1.30.0030.05710.80
5.1.20.0000.06010.80
5.1.10.0070.05310.80
5.1.00.0100.05310.80
5.0.50.0030.04310.80
5.0.40.0000.05010.80
5.0.30.0100.02710.80
5.0.20.0000.03310.80
5.0.10.0070.03010.80
5.0.00.0070.05010.80
4.4.90.0070.03010.80
4.4.80.0030.02710.80
4.4.70.0070.03010.80
4.4.60.0030.02310.80
4.4.50.0070.03010.80
4.4.40.0030.05310.80
4.4.30.0000.04010.80
4.4.20.0000.04010.80
4.4.10.0000.03310.80
4.4.00.0070.05010.80
4.3.110.0000.03310.80
4.3.100.0030.03310.80
4.3.90.0000.02310.80
4.3.80.0000.03010.80
4.3.70.0000.02710.80
4.3.60.0130.01010.80
4.3.50.0000.02010.80
4.3.40.0000.05710.80
4.3.30.0000.03710.80
4.3.20.0030.03010.80
4.3.10.0000.03710.80
4.3.00.0000.02710.80

preferences:
41.58 ms | 400 KiB | 5 Q