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, 0, 2)-1) != $i) { $correct = "no"; } else { $correct = "yes"; $yes++; } 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.0070.00718.42
8.3.50.0120.00922.07
8.3.40.0070.00719.04
8.3.30.0070.00720.21
8.3.20.0080.00018.86
8.3.10.0040.00419.20
8.3.00.0000.00919.68
8.2.180.0140.00716.75
8.2.170.0130.00322.96
8.2.160.0030.01020.52
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.14
8.2.110.0030.00720.37
8.2.100.0080.00318.16
8.2.90.0040.00419.36
8.2.80.0050.00219.26
8.2.70.0060.00318.00
8.2.60.0030.00518.16
8.2.50.0050.00518.07
8.2.40.0000.00818.22
8.2.30.0040.00419.55
8.2.20.0040.00418.03
8.2.10.0030.00617.96
8.2.00.0000.00818.04
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0130.00020.82
8.1.230.0110.00020.96
8.1.220.0030.00618.77
8.1.210.0040.00419.09
8.1.200.0000.00917.47
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0030.00618.81
8.1.160.0070.00018.89
8.1.150.0030.00618.81
8.1.140.0080.00017.64
8.1.130.0070.00017.99
8.1.120.0000.00717.57
8.1.110.0000.00817.64
8.1.100.0040.00417.59
8.1.90.0040.00417.55
8.1.80.0000.00717.58
8.1.70.0080.00017.55
8.1.60.0040.00417.77
8.1.50.0030.00517.64
8.1.40.0000.00817.70
8.1.30.0040.00417.78
8.1.20.0090.00017.77
8.1.10.0040.00417.71
8.1.00.0020.00517.66
8.0.300.0020.00519.77
8.0.290.0000.00817.18
8.0.280.0030.00318.42
8.0.270.0000.00817.39
8.0.260.0030.00316.98
8.0.250.0000.00717.26
8.0.240.0000.01017.22
8.0.230.0000.00817.27
8.0.220.0030.00317.04
8.0.210.0050.00517.15
8.0.200.0030.00317.09
8.0.190.0050.00317.14
8.0.180.0000.00717.09
8.0.170.0040.00417.16
8.0.160.0040.00417.19
8.0.150.0040.00417.07
8.0.140.0040.00417.11
8.0.130.0070.00013.52
8.0.120.0000.00817.05
8.0.110.0040.00417.16
8.0.100.0040.00417.20
8.0.90.0030.00617.21
8.0.80.0120.00317.10
8.0.70.0000.00817.09
8.0.60.0020.00517.08
8.0.50.0000.00817.21
8.0.30.0110.00817.30
8.0.20.0100.00817.40
8.0.10.0000.00817.27
8.0.00.0100.00817.05
7.4.330.0000.00516.89
7.4.320.0070.00016.63
7.4.300.0030.00316.54
7.4.290.0030.00316.66
7.4.280.0040.00216.72
7.4.270.0040.00416.74
7.4.260.0000.00513.30
7.4.250.0050.00216.71
7.4.240.0040.00416.69
7.4.230.0040.00416.54
7.4.220.0100.01016.75
7.4.210.0080.01016.73
7.4.200.0040.00416.48
7.4.190.0030.00316.83
7.4.160.0170.00016.78
7.4.150.0150.00317.40
7.4.140.0150.00817.86
7.4.130.0120.00716.65
7.4.120.0070.01116.63
7.4.110.0180.00016.64
7.4.100.0070.01016.58
7.4.90.0060.01816.59
7.4.80.0030.01919.39
7.4.70.0170.00316.53
7.4.60.0070.01116.60
7.4.50.0080.00016.73
7.4.40.0070.01022.77
7.4.30.0120.00316.75
7.4.00.0110.00415.21
7.3.330.0030.00313.20
7.3.320.0050.00013.05
7.3.310.0000.00716.28
7.3.300.0050.00316.38
7.3.290.0100.01016.43
7.3.280.0080.01116.42
7.3.270.0150.00317.40
7.3.260.0110.01118.24
7.3.250.0080.01016.80
7.3.240.0060.00916.53
7.3.230.0090.00916.91
7.3.210.0070.01116.59
7.3.200.0060.01219.39
7.3.190.0100.00716.51
7.3.180.0090.00916.41
7.3.170.0100.00616.91
7.3.160.0060.01216.68
7.3.120.0080.00614.82
7.3.110.0060.00615.20
7.3.100.0030.00915.02
7.3.90.0120.00015.00
7.3.80.0060.00614.88
7.3.70.0030.00515.01
7.3.60.0040.00815.11
7.3.50.0000.01115.04
7.3.40.0090.00314.82
7.3.30.0070.00414.98
7.3.20.0060.00316.83
7.3.10.0040.01116.82
7.3.00.0090.00616.84
7.2.330.0070.01816.47
7.2.320.0130.01016.69
7.2.310.0110.00717.05
7.2.300.0060.01017.02
7.2.290.0140.00616.72
7.2.240.0120.00615.02
7.2.230.0040.00815.39
7.2.220.0040.00814.86
7.2.210.0040.00815.18
7.2.200.0070.00315.27
7.2.190.0060.00915.04
7.2.180.0090.00615.00
7.2.170.0030.01015.11
7.2.160.0000.00915.12
7.2.150.0040.00816.99
7.2.140.0070.00716.99
7.2.130.0120.00317.06
7.2.120.0030.01117.12
7.2.110.0090.00317.07
7.2.100.0040.00716.98
7.2.90.0060.00617.18
7.2.80.0140.00317.20
7.2.70.0030.01217.18
7.2.60.0100.00317.13
7.2.50.0000.01217.03
7.2.40.0090.00417.18
7.2.30.0070.00317.21
7.2.20.0000.01116.93
7.2.10.0090.00317.14
7.2.00.0060.00917.18
7.1.330.0040.01116.01
7.1.320.0060.00615.82
7.1.310.0100.00016.05
7.1.300.0060.00615.63
7.1.290.0030.00915.55
7.1.280.0030.00615.75
7.1.270.0030.00915.79
7.1.260.0070.00415.96
7.1.250.0070.00716.05
7.1.200.0090.00615.88
7.1.70.0060.00317.10
7.1.60.0120.00017.60
7.1.50.0100.01317.12
7.1.00.0000.03722.36
7.0.200.0050.00316.81
7.0.140.0030.07722.07
7.0.90.0030.08721.80
7.0.80.0030.07721.66
7.0.70.0070.04721.90
7.0.60.0070.08321.73
7.0.50.0100.07722.11
7.0.40.0170.06720.07
7.0.30.0070.08320.18
7.0.20.0070.05320.18
7.0.10.0030.08019.98
7.0.00.0100.04720.10
5.6.280.0000.07720.81
5.6.240.0130.04020.64
5.6.230.0030.07320.53
5.6.220.0030.04320.45
5.6.210.0030.08320.53
5.6.200.0100.07721.04
5.6.190.0030.08721.03
5.6.180.0070.08721.02
5.6.170.0000.05721.04
5.6.160.0030.08320.93
5.6.150.0070.06721.05
5.6.140.0100.07720.94
5.6.130.0000.07021.07
5.6.120.0070.05320.93
5.6.110.0100.04021.07
5.6.100.0070.08720.93
5.6.90.0030.06720.93
5.6.80.0130.07320.48
5.6.70.0030.09020.51
5.6.60.0100.08020.48
5.6.50.0200.06720.52
5.6.40.0100.08320.39
5.6.30.0030.07720.36
5.6.20.0100.06020.35
5.6.10.0100.04320.40
5.6.00.0200.07020.30
5.5.380.0100.07720.38
5.5.370.0070.08020.41
5.5.360.0070.08320.41
5.5.350.0070.07320.37
5.5.340.0070.08320.86
5.5.330.0070.04720.83
5.5.320.0030.04720.82
5.5.310.0070.07720.73
5.5.300.0030.05320.86
5.5.290.0070.08320.64
5.5.280.0000.07020.78
5.5.270.0030.08320.82
5.5.260.0030.04320.88
5.5.250.0000.08320.70
5.5.240.0030.05720.26
5.5.230.0070.07720.30
5.5.220.0030.07720.11
5.5.210.0030.08720.27
5.5.200.0100.07720.24
5.5.190.0070.05020.12
5.5.180.0030.08020.17
5.5.160.0130.06720.27
5.5.150.0070.07720.22
5.5.140.0000.04320.20
5.5.130.0100.04020.27
5.5.120.0070.03720.18
5.5.110.0030.04020.17
5.5.100.0030.03320.07
5.5.90.0030.04020.02
5.5.80.0030.03720.07
5.5.70.0100.02720.06
5.5.60.0070.03020.06
5.5.50.0130.06720.03
5.5.40.0100.05720.11
5.5.30.0030.05020.05
5.5.20.0100.03319.99
5.5.10.0030.06020.09
5.5.00.0000.04320.01
5.4.450.0070.08319.39
5.4.440.0130.08019.45
5.4.430.0130.05019.38
5.4.420.0030.04319.10
5.4.410.0070.06319.18
5.4.400.0130.06319.23
5.4.390.0130.07719.09
5.4.380.0000.08018.79
5.4.370.0100.07718.96
5.4.360.0130.06718.81
5.4.350.0030.07018.95
5.4.340.0100.05019.11
5.4.320.0000.07019.19
5.4.310.0070.07018.81
5.4.300.0000.04019.05
5.4.290.0000.06018.96
5.4.280.0070.03718.78
5.4.270.0070.03718.99
5.4.260.0000.04019.04
5.4.250.0030.04319.07
5.4.240.0030.03719.13
5.4.230.0030.03318.89
5.4.220.0070.07719.14
5.4.210.0100.06719.06
5.4.200.0130.05318.89
5.4.190.0030.08319.04
5.4.180.0070.03318.89
5.4.170.0130.03018.96
5.4.160.0000.04018.77
5.4.150.0100.03318.92
5.4.140.0000.05716.43
5.4.130.0000.03316.11
5.4.120.0030.03316.43
5.4.110.0030.04016.36
5.4.100.0030.03016.36
5.4.90.0030.03316.48
5.4.80.0070.03016.40
5.4.70.0000.04316.36
5.4.60.0070.03016.41
5.4.50.0070.03316.41
5.4.40.0070.03316.36
5.4.30.0100.03016.23
5.4.20.0030.03716.18
5.4.10.0030.03716.39
5.4.00.0000.03715.81
5.3.290.0130.03314.78
5.3.280.0000.04314.78
5.3.270.0000.04314.78
5.3.260.0070.03314.78
5.3.250.0070.03314.78
5.3.240.0030.03714.78
5.3.230.0070.03314.78
5.3.220.0030.03714.78
5.3.210.0030.04714.78
5.3.200.0100.02714.78
5.3.190.0070.03014.78
5.3.180.0070.03714.78
5.3.170.0030.04014.78
5.3.160.0030.03714.78
5.3.150.0000.04014.78
5.3.140.0070.03314.78
5.3.130.0000.05014.78
5.3.120.0100.03714.78
5.3.110.0130.02714.78
5.3.100.0100.03314.78
5.3.90.0170.03014.78
5.3.80.0000.03314.78
5.3.70.0030.03014.78
5.3.60.0030.03714.78
5.3.50.0000.03314.78
5.3.40.0070.03714.78
5.3.30.0030.03714.78
5.3.20.0070.03014.78
5.3.10.0030.03314.78
5.3.00.0030.04314.78
5.2.170.0070.02314.78
5.2.160.0000.03714.78
5.2.150.0030.03314.78
5.2.140.0070.02314.78
5.2.130.0000.02714.78
5.2.120.0000.03714.78
5.2.110.0000.02714.78
5.2.100.0100.05314.78
5.2.90.0030.02314.78
5.2.80.0000.04014.78
5.2.70.0030.06014.78
5.2.60.0100.06314.78
5.2.50.0030.04714.78
5.2.40.0030.03714.78
5.2.30.0100.05014.78
5.2.20.0000.03314.78
5.2.10.0000.04714.78
5.2.00.0030.03314.78
5.1.60.0130.04714.78
5.1.50.0000.03014.78
5.1.40.0000.03314.78
5.1.30.0000.06014.78
5.1.20.0000.03314.78
5.1.10.0030.03014.78
5.1.00.0130.04714.78
5.0.50.0030.05014.78
5.0.40.0100.04014.78
5.0.30.0130.05714.78
5.0.20.0000.04714.78
5.0.10.0070.04014.78
5.0.00.0070.06014.78
4.4.90.0030.03014.78
4.4.80.0070.02314.78
4.4.70.0000.01714.78
4.4.60.0030.03314.78
4.4.50.0070.02714.78
4.4.40.0030.02714.78
4.4.30.0000.03714.78
4.4.20.0000.01714.78
4.4.10.0030.03314.78
4.4.00.0000.05714.78
4.3.110.0070.03314.78
4.3.100.0070.03014.78
4.3.90.0000.02714.78
4.3.80.0000.03014.78
4.3.70.0030.01314.78
4.3.60.0030.03314.78
4.3.50.0030.02014.78
4.3.40.0070.03714.78
4.3.30.0070.03714.78
4.3.20.0000.03714.78
4.3.10.0030.02014.78
4.3.00.0000.03314.78

preferences:
35.69 ms | 401 KiB | 5 Q