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('m.d.y', strtotime($months[$i])); if ((substr($result, 2)-1) != [$i]) { $correct = "no"; } else { $correct = "yes"; $yes++; } echo (substr($result, 2)-1); //echo $correct . " - " . $result . "\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.60.0140.00317.00
8.3.50.0100.00817.55
8.3.40.0070.00719.09
8.3.30.0130.00318.92
8.3.20.0000.00819.03
8.3.10.0090.00020.61
8.3.00.0040.00419.50
8.2.180.0100.01016.75
8.2.170.0120.00322.96
8.2.160.0100.00320.47
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00719.35
8.2.110.0070.00320.35
8.2.100.0040.00718.09
8.2.90.0000.00819.39
8.2.80.0040.00417.97
8.2.70.0040.00717.88
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00420.48
8.2.30.0000.00818.05
8.2.20.0000.00917.89
8.2.10.0090.00018.01
8.2.00.0050.00317.88
8.1.280.0070.01125.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00022.75
8.1.230.0070.00417.82
8.1.220.0000.00817.80
8.1.210.0000.00918.77
8.1.200.0030.00717.48
8.1.190.0000.00817.48
8.1.180.0050.00318.10
8.1.170.0030.00618.63
8.1.160.0000.00822.18
8.1.150.0080.00018.84
8.1.140.0000.00717.64
8.1.130.0000.00717.90
8.1.120.0000.00717.62
8.1.110.0030.00317.61
8.1.100.0070.00017.70
8.1.90.0000.00717.71
8.1.80.0030.00317.70
8.1.70.0030.00317.62
8.1.60.0090.00017.71
8.1.50.0060.00317.52
8.1.40.0040.00417.68
8.1.30.0040.00417.83
8.1.20.0040.00417.73
8.1.10.0040.00417.73
8.1.00.0080.00017.60
8.0.300.0000.00718.77
8.0.290.0000.00816.87
8.0.280.0070.00018.42
8.0.270.0040.00417.34
8.0.260.0000.00817.12
8.0.250.0040.00417.10
8.0.240.0050.00317.17
8.0.230.0070.00017.05
8.0.220.0030.00517.14
8.0.210.0030.00317.04
8.0.200.0030.00317.09
8.0.190.0080.00017.17
8.0.180.0080.00017.21
8.0.170.0040.00417.21
8.0.160.0000.00717.13
8.0.150.0050.00517.09
8.0.140.0030.00517.01
8.0.130.0060.00013.39
8.0.120.0040.00417.09
8.0.110.0040.00417.11
8.0.100.0040.00416.97
8.0.90.0000.00817.14
8.0.80.0080.00817.17
8.0.70.0070.00016.98
8.0.60.0040.00417.26
8.0.50.0000.00717.01
8.0.30.0100.01417.16
8.0.20.0090.00917.35
8.0.10.0070.00017.31
8.0.00.0080.01216.86
7.4.330.0000.00513.09
7.4.320.0000.00616.73
7.4.300.0000.00616.64
7.4.290.0000.00816.62
7.4.280.0040.00416.57
7.4.270.0030.00516.72
7.4.260.0000.00613.26
7.4.250.0000.00816.63
7.4.240.0000.00716.77
7.4.230.0000.00716.38
7.4.220.0030.01316.71
7.4.210.0050.01016.71
7.4.200.0030.00316.76
7.4.190.0070.00016.91
7.4.160.0040.01216.65
7.4.150.0070.01016.66
7.4.140.0090.01116.64
7.4.130.0120.01216.74
7.4.120.0100.00816.80
7.4.110.0100.01316.53
7.4.100.0140.00316.60
7.4.90.0200.00316.88
7.4.80.0050.01219.39
7.4.70.0150.00416.69
7.4.60.0130.00316.82
7.4.50.0130.00016.81
7.4.40.0070.01116.37
7.4.30.0060.01216.71
7.4.00.0050.01115.01
7.3.330.0040.00413.29
7.3.320.0070.00013.16
7.3.310.0000.00716.30
7.3.300.0030.00316.47
7.3.290.0150.00616.44
7.3.280.0070.01016.48
7.3.270.0110.00716.67
7.3.260.0070.01416.50
7.3.250.0150.00516.65
7.3.240.0130.00316.75
7.3.230.0060.01216.68
7.3.210.0160.00316.64
7.3.200.0140.00316.63
7.3.190.0110.00716.62
7.3.180.0120.00616.60
7.3.170.0100.00716.58
7.3.160.0070.01016.63
7.3.120.0080.01015.15
7.3.110.0070.01115.04
7.3.100.0100.00315.11
7.3.90.0060.00915.23
7.3.80.0140.00015.22
7.3.70.0060.00815.17
7.3.60.0070.01115.13
7.3.50.0070.01015.19
7.3.40.0070.00714.91
7.3.30.0060.00314.97
7.3.20.0000.01016.94
7.3.10.0040.00816.69
7.3.00.0070.00816.75
7.2.330.0060.01616.95
7.2.320.0070.01117.00
7.2.310.0160.00916.75
7.2.300.0030.01416.87
7.2.290.0030.01416.91
7.2.250.0120.00615.48
7.2.240.0070.01415.34
7.2.230.0030.00715.50
7.2.220.0070.00415.52
7.2.210.0030.01415.18
7.2.200.0040.01115.00
7.2.190.0110.00715.41
7.2.180.0090.00615.00
7.2.170.0040.01515.28
7.2.130.0170.00316.78
7.2.120.0040.00916.80
7.2.110.0140.01416.78
7.2.100.0000.01716.70
7.2.90.0120.00916.74
7.2.80.0090.01216.69
7.2.70.0100.01416.79
7.2.60.0020.01516.90
7.2.50.0130.00516.94
7.2.40.0200.00016.56
7.2.30.0100.01016.74
7.2.20.0170.00616.94
7.2.10.0100.00716.83
7.2.00.0110.00518.31
7.1.330.0060.00915.90
7.1.320.0060.00316.20
7.1.310.0060.00915.94
7.1.300.0070.01016.16
7.1.290.0030.01415.93
7.1.280.0070.00716.04
7.1.270.0040.00815.89
7.1.260.0060.00915.83
7.1.250.0100.00615.74
7.1.200.0050.00515.88
7.1.100.0030.01018.13
7.1.70.0060.00317.48
7.1.60.0110.01519.40
7.1.50.0060.01616.88
7.1.00.0030.06022.35
7.0.200.0040.00816.83
7.0.140.0000.07722.01
7.0.120.0070.05722.20
7.0.100.0370.04019.92
7.0.90.0170.07019.89
7.0.80.0170.04319.89
7.0.70.0170.07719.95
7.0.60.0100.08319.92
7.0.50.0170.07720.29
7.0.40.0030.06720.14
7.0.30.0130.08320.09
7.0.20.0030.07320.08
7.0.10.0130.07720.02
7.0.00.0070.08020.04
5.6.280.0030.07021.09
5.6.250.0100.08020.68
5.6.240.0100.06320.66
5.6.230.0070.07320.59
5.6.220.0030.08320.48
5.6.210.0200.07020.56
5.6.200.0130.08321.08
5.6.190.0000.08321.06
5.6.180.0100.07321.02
5.6.170.0100.08021.02
5.6.160.0030.04321.04
5.6.150.0170.06321.17
5.6.140.0030.07020.95
5.6.130.0070.08021.08
5.6.120.0130.05721.00
5.6.110.0100.04321.06
5.6.100.0270.05721.03
5.6.90.0130.08020.91
5.6.80.0100.07020.40
5.6.70.0130.06020.39
5.6.60.0100.08020.45
5.6.50.0030.08720.49
5.6.40.0130.07020.38
5.6.30.0100.07720.39
5.6.20.0230.04020.37
5.6.10.0170.05020.37
5.6.00.0100.06020.37
5.5.380.0070.07320.41
5.5.370.0070.04320.57
5.5.360.0130.07320.31
5.5.350.0100.08320.45
5.5.340.0100.06020.64
5.5.330.0230.06320.95
5.5.320.0030.05020.75
5.5.310.0070.08020.79
5.5.300.0130.07320.79
5.5.290.0130.07720.90
5.5.280.0070.08020.64
5.5.270.0000.05020.82
5.5.260.0130.08720.87
5.5.250.0100.06020.64
5.5.240.0100.07320.31
5.5.230.0030.08020.15
5.5.220.0070.06020.12
5.5.210.0030.06720.27
5.5.200.0130.06720.08
5.5.190.0100.08319.99
5.5.180.0100.04320.15
5.5.160.0170.07020.23
5.5.150.0100.08320.24
5.5.140.0130.07020.22
5.5.130.0000.08320.22
5.5.120.0070.08020.16
5.5.110.0100.07020.22
5.5.100.0070.07319.96
5.5.90.0130.07720.04
5.5.80.0170.06020.16
5.5.70.0030.08720.06
5.5.60.0070.07720.06
5.5.50.0030.04719.96
5.5.40.0130.07320.00
5.5.30.0100.07320.07
5.5.20.0100.07020.05
5.5.10.0070.06020.05
5.5.00.0100.07719.99
5.4.450.0100.04719.47
5.4.440.0030.08019.14
5.4.430.0100.07319.55
5.4.420.0000.05319.48
5.4.410.0100.06719.22
5.4.400.0000.07719.14
5.4.390.0100.07019.20
5.4.380.0130.06719.02
5.4.370.0030.07719.12
5.4.360.0070.07718.90
5.4.350.0200.06319.02
5.4.340.0100.07718.96
5.4.320.0130.07019.04
5.4.310.0070.06719.13
5.4.300.0030.07319.03
5.4.290.0130.04719.14
5.4.280.0030.06319.09
5.4.270.0030.04319.05
5.4.260.0070.06019.02
5.4.250.0030.07718.80
5.4.240.0130.06019.03
5.4.230.0070.07019.02
5.4.220.0100.06019.09
5.4.210.0070.07019.02
5.4.200.0100.07319.05
5.4.190.0070.04319.02
5.4.180.0130.03718.80
5.4.170.0030.07318.88
5.4.160.0070.06018.76
5.4.150.0130.07019.10
5.4.140.0000.06016.36
5.4.130.0100.07016.37
5.4.120.0100.06716.32
5.4.110.0030.04316.32
5.4.100.0070.04316.31
5.4.90.0100.07316.21
5.4.80.0030.06316.29
5.4.70.0030.07316.25
5.4.60.0000.05716.21
5.4.50.0130.06716.28
5.4.40.0100.07316.45
5.4.30.0070.06716.35
5.4.20.0070.06716.29
5.4.10.0100.03716.18
5.4.00.0070.07015.78
5.3.290.0100.07314.54
5.3.280.0170.06314.42
5.3.270.0030.05014.59
5.3.260.0030.07014.60
5.3.250.0030.06314.55
5.3.240.0030.07714.43
5.3.230.0170.07014.59
5.3.220.0070.07314.39
5.3.210.0070.07714.54
5.3.200.0100.05014.43
5.3.190.0070.08014.51
5.3.180.0030.07714.57
5.3.170.0070.05014.55
5.3.160.0030.07314.56
5.3.150.0130.07314.42
5.3.140.0070.06014.42
5.3.130.0030.07314.54
5.3.120.0130.07014.37
5.3.110.0030.08014.39
5.3.100.0030.06013.99
5.3.90.0030.05714.05
5.3.80.0030.07013.89
5.3.70.0130.05014.04
5.3.60.0100.05014.00
5.3.50.0170.04713.90
5.3.40.0030.05313.93
5.3.30.0030.04013.83
5.3.20.0130.06013.60
5.3.10.0070.07013.61
5.3.00.0130.06713.63
5.2.170.0030.06311.32
5.2.160.0000.05011.32
5.2.150.0070.02711.32
5.2.140.0070.06311.32
5.2.130.0070.06011.32
5.2.120.0000.06311.32
5.2.110.0000.06311.32
5.2.100.0070.06011.32
5.2.90.0070.07011.32
5.2.80.0100.03011.32
5.2.70.0000.04311.32
5.2.60.0070.06011.32
5.2.50.0030.04011.32
5.2.40.0070.06011.32
5.2.30.0070.05711.32
5.2.20.0070.05011.32
5.2.10.0000.06011.32
5.2.00.0030.06311.32
5.1.60.0070.04311.32
5.1.50.0030.03011.32
5.1.40.0030.04011.32
5.1.30.0070.02711.32
5.1.20.0070.02311.32
5.1.10.0070.05011.32
5.1.00.0000.04711.32
5.0.50.0100.04011.32
5.0.40.0030.04011.32
5.0.30.0070.05711.32
5.0.20.0070.04011.32
5.0.10.0100.03311.32
5.0.00.0030.05011.32
4.4.90.0000.04011.32
4.4.80.0000.03711.32
4.4.70.0000.02711.32
4.4.60.0000.04011.32
4.4.50.0030.02711.32
4.4.40.0070.04711.32
4.4.30.0100.01711.32
4.4.20.0000.02011.32
4.4.10.0000.01711.32
4.4.00.0100.03711.32
4.3.110.0030.03011.32
4.3.100.0070.03011.32
4.3.90.0070.03011.32
4.3.80.0030.04711.32
4.3.70.0030.03011.32
4.3.60.0000.03011.32
4.3.50.0000.04011.32
4.3.40.0100.04011.32
4.3.30.0000.02311.32
4.3.20.0030.03711.32
4.3.10.0030.03311.32
4.3.00.0000.02711.32

preferences:
53.72 ms | 401 KiB | 5 Q