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.40.0000.01419.04
8.3.30.0100.00320.38
8.3.20.0000.00819.02
8.3.10.0080.00019.34
8.3.00.0080.00019.54
8.2.170.0150.00622.96
8.2.160.0120.00420.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.96
8.2.110.0030.00620.35
8.2.100.0120.00018.16
8.2.90.0030.00619.17
8.2.80.0050.00319.32
8.2.70.0080.00017.75
8.2.60.0000.00917.93
8.2.50.0100.00318.07
8.2.40.0000.00818.34
8.2.30.0070.00019.43
8.2.20.0030.00517.98
8.2.10.0040.00417.93
8.2.00.0040.00417.91
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0080.00422.59
8.1.230.0000.01120.83
8.1.220.0040.00418.77
8.1.210.0000.00818.97
8.1.200.0030.00617.48
8.1.190.0000.00817.52
8.1.180.0030.00618.10
8.1.170.0050.00318.84
8.1.160.0040.00418.80
8.1.150.0030.00918.77
8.1.140.0000.00817.57
8.1.130.0000.00717.84
8.1.120.0000.00717.69
8.1.110.0040.00417.54
8.1.100.0060.00317.67
8.1.90.0040.00417.56
8.1.80.0040.00417.65
8.1.70.0040.00417.63
8.1.60.0040.00417.72
8.1.50.0040.00417.60
8.1.40.0000.00817.54
8.1.30.0040.00417.63
8.1.20.0040.00417.67
8.1.10.0040.00417.60
8.1.00.0000.00817.63
8.0.300.0040.00419.87
8.0.290.0040.00417.28
8.0.280.0050.00318.44
8.0.270.0000.00717.24
8.0.260.0070.00017.14
8.0.250.0050.00317.26
8.0.240.0070.00317.13
8.0.230.0000.00717.18
8.0.220.0000.00716.99
8.0.210.0080.00016.98
8.0.200.0040.00417.20
8.0.190.0030.00517.20
8.0.180.0040.00417.03
8.0.170.0040.00417.11
8.0.160.0000.00717.13
8.0.150.0080.00017.10
8.0.140.0040.00417.09
8.0.130.0000.00813.53
8.0.120.0040.00417.18
8.0.110.0000.00717.17
8.0.100.0000.00717.18
8.0.90.0080.00017.14
8.0.80.0090.01217.12
8.0.70.0050.00317.01
8.0.60.0040.00417.22
8.0.50.0000.00817.15
8.0.30.0130.00717.25
8.0.20.0110.00817.44
8.0.10.0070.00017.31
8.0.00.0100.01116.94
7.4.330.0000.00516.82
7.4.320.0070.00016.75
7.4.300.0000.00616.63
7.4.290.0070.00016.53
7.4.280.0000.00716.62
7.4.270.0030.00316.70
7.4.260.0030.00313.31
7.4.250.0000.00716.70
7.4.240.0030.00316.73
7.4.230.0040.00416.84
7.4.220.0090.01016.61
7.4.210.0080.00816.70
7.4.200.0040.00416.74
7.4.190.0050.00216.78
7.4.160.0130.00316.63
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0150.00616.66
7.4.120.0080.00916.60
7.4.110.0060.01216.77
7.4.100.0140.00316.80
7.4.90.0160.00716.57
7.4.80.0060.01019.39
7.4.70.0080.01416.75
7.4.60.0100.00716.57
7.4.50.0030.00616.86
7.4.40.0130.00222.77
7.4.30.0060.01116.80
7.4.00.0050.01014.99
7.3.330.0050.00013.19
7.3.320.0020.00213.13
7.3.310.0070.00016.43
7.3.300.0040.00416.30
7.3.290.0050.00816.45
7.3.280.0060.01016.48
7.3.270.0120.00617.40
7.3.260.0100.00918.24
7.3.250.0090.00916.51
7.3.240.0030.01216.74
7.3.230.0140.00416.54
7.3.210.0080.00816.64
7.3.200.0100.01019.39
7.3.190.0090.00616.91
7.3.180.0070.01016.52
7.3.170.0060.01016.47
7.3.160.0110.00516.58
7.3.120.0050.01015.05
7.3.110.0100.00714.79
7.3.100.0090.00315.11
7.3.90.0070.00714.93
7.3.80.0100.00615.07
7.3.70.0000.01214.76
7.3.60.0090.00014.85
7.3.50.0100.00714.93
7.3.40.0060.00614.77
7.3.30.0120.00015.04
7.3.20.0060.00916.89
7.3.10.0040.01116.88
7.3.00.0060.00616.90
7.2.330.0170.00317.05
7.2.320.0090.00916.71
7.2.310.0070.01316.95
7.2.300.0060.01016.80
7.2.290.0040.01316.98
7.2.250.0080.00814.83
7.2.240.0060.01315.34
7.2.230.0120.00315.19
7.2.220.0130.00015.43
7.2.210.0060.00915.12
7.2.200.0090.00615.09
7.2.190.0030.01015.08
7.2.180.0060.00315.07
7.2.170.0100.00415.30
7.2.110.0280.00416.50
7.2.60.0070.00317.03
7.2.50.0040.00817.20
7.1.330.0070.00715.95
7.1.320.0030.01016.14
7.1.310.0070.01015.89
7.1.300.0040.00816.04
7.1.290.0060.00915.62
7.1.280.0030.01016.00
7.1.270.0070.00315.79
7.1.260.0040.00815.84
7.1.200.0060.00615.89
7.1.70.0040.00417.10
7.1.60.0120.00619.24
7.1.50.0070.00716.86
7.1.00.0070.03022.57
7.0.200.0000.00916.96
7.0.140.0000.07722.19
7.0.100.0070.03719.99
7.0.90.0070.03719.86
7.0.80.0070.04319.96
7.0.70.0200.05019.89
7.0.60.0170.03019.88
7.0.50.0100.04020.28
7.0.40.0030.04020.07
7.0.30.0070.04020.05
7.0.20.0030.04320.13
7.0.10.0000.04720.04
7.0.00.0070.04020.14
5.6.280.0030.07320.98
5.6.250.0100.03320.60
5.6.240.0100.03720.66
5.6.230.0070.04320.57
5.6.220.0000.04320.55
5.6.210.0070.04020.75
5.6.200.0030.04020.95
5.6.190.0030.04320.94
5.6.180.0000.04021.05
5.6.170.0000.04721.04
5.6.160.0100.03721.05
5.6.150.0130.02721.03
5.6.140.0030.04021.04
5.6.130.0100.04321.02
5.6.120.0030.04321.03
5.6.110.0030.04321.06
5.6.100.0000.05020.99
5.6.90.0130.06320.90
5.6.80.0030.08020.46
5.6.70.0130.07320.41
5.6.60.0130.08320.36
5.6.50.0230.06320.34
5.6.40.0030.06720.38
5.6.30.0070.07720.42
5.6.20.0000.08020.48
5.6.10.0130.06020.36
5.6.00.0030.08320.50
5.5.380.0100.04320.35
5.5.370.0000.04320.57
5.5.360.0000.04320.41
5.5.350.0070.04020.44
5.5.340.0000.04320.91
5.5.330.0000.05320.76
5.5.320.0070.04320.73
5.5.310.0070.04320.86
5.5.300.0070.03720.73
5.5.290.0070.03720.92
5.5.280.0070.04020.79
5.5.270.0030.04320.82
5.5.260.0070.03320.87
5.5.250.0070.03720.63
5.5.240.0070.08020.27
5.5.230.0130.07320.23
5.5.220.0070.08020.20
5.5.210.0100.07720.20
5.5.200.0030.08320.24
5.5.190.0030.09020.12
5.5.180.0170.05020.18
5.5.160.0070.04320.27
5.5.150.0070.07720.23
5.5.140.0130.06720.23
5.5.130.0030.09020.14
5.5.120.0070.06320.21
5.5.110.0170.06720.27
5.5.100.0030.07320.11
5.5.90.0000.08720.15
5.5.80.0130.07320.01
5.5.70.0130.07320.07
5.5.60.0070.06320.05
5.5.50.0100.07719.96
5.5.40.0200.05320.14
5.5.30.0100.07020.07
5.5.20.0100.05020.10
5.5.10.0030.08719.98
5.5.00.0070.04320.09
5.4.450.0070.03719.09
5.4.440.0030.04019.30
5.4.430.0030.04019.11
5.4.420.0030.04019.44
5.4.410.0030.08019.27
5.4.400.0130.07318.76
5.4.390.0130.02319.04
5.4.380.0030.04018.96
5.4.370.0030.08019.05
5.4.360.0070.07319.14
5.4.350.0000.04719.10
5.4.340.0030.05718.82
5.4.320.0100.05019.04
5.4.310.0000.08018.99
5.4.300.0100.05019.09
5.4.290.0070.07019.06
5.4.280.0170.04718.80
5.4.270.0030.08019.05
5.4.260.0030.06019.02
5.4.250.0070.07719.05
5.4.240.0000.08319.22
5.4.230.0000.08018.95
5.4.220.0100.07719.02
5.4.210.0100.08019.00
5.4.200.0070.04019.02
5.4.190.0070.04318.93
5.4.180.0100.07318.89
5.4.170.0070.05019.04
5.4.160.0100.06718.76
5.4.150.0000.08019.03
5.4.140.0070.07716.33
5.4.130.0070.07016.41
5.4.120.0070.07316.39
5.4.110.0030.06716.46
5.4.100.0070.07716.27
5.4.90.0030.07316.29
5.4.80.0070.07316.26
5.4.70.0130.06016.42
5.4.60.0030.06716.34
5.4.50.0070.04316.25
5.4.40.0030.04716.25
5.4.30.0100.03716.38
5.4.20.0030.06716.35
5.4.10.0100.04016.22
5.4.00.0170.05715.82
5.3.290.0070.08014.61
5.3.280.0030.06014.59
5.3.270.0130.06714.43
5.3.260.0200.06714.59
5.3.250.0030.08014.55
5.3.240.0200.03314.59
5.3.230.0130.06714.46
5.3.220.0070.06714.54
5.3.210.0100.06714.55
5.3.200.0000.05714.57
5.3.190.0070.07714.53
5.3.180.0070.06714.51
5.3.170.0100.07314.42
5.3.160.0070.06314.57
5.3.150.0030.04314.53
5.3.140.0000.04314.57
5.3.130.0000.05714.48
5.3.120.0070.04714.50
5.3.110.0130.05014.45
5.3.100.0030.07313.89
5.3.90.0130.07013.99
5.3.80.0070.07713.87
5.3.70.0130.04314.00
5.3.60.0030.07713.98
5.3.50.0000.07713.87
5.3.40.0100.05313.80
5.3.30.0170.04313.82
5.3.20.0100.06713.65
5.3.10.0130.05313.66
5.3.00.0100.06313.59
5.2.170.0070.07011.39
5.2.160.0030.06311.39
5.2.150.0170.05711.39
5.2.140.0030.06011.39
5.2.130.0070.03311.39
5.2.120.0130.05311.39
5.2.110.0030.06011.39
5.2.100.0070.06011.39
5.2.90.0030.03711.39
5.2.80.0130.05711.39
5.2.70.0100.05311.39
5.2.60.0070.05311.39
5.2.50.0070.03711.39
5.2.40.0030.06011.39
5.2.30.0070.06011.39
5.2.20.0100.05011.39
5.2.10.0070.06011.39
5.2.00.0130.04311.39
5.1.60.0000.05311.39
5.1.50.0030.05011.39
5.1.40.0030.03311.39
5.1.30.0030.05711.39
5.1.20.0100.03311.39
5.1.10.0030.03011.39
5.1.00.0070.02711.39
5.0.50.0000.03711.39
5.0.40.0070.04311.39
5.0.30.0030.06311.39
5.0.20.0070.02711.39
5.0.10.0000.04311.39
5.0.00.0070.04011.39
4.4.90.0000.04011.39
4.4.80.0030.02311.39
4.4.70.0030.02711.39
4.4.60.0070.02011.39
4.4.50.0000.03311.39
4.4.40.0000.05311.39
4.4.30.0030.03711.39
4.4.20.0000.02011.39
4.4.10.0000.03711.39
4.4.00.0030.04311.39
4.3.110.0000.03311.39
4.3.100.0030.02311.39
4.3.90.0000.02311.39
4.3.80.0000.04711.39
4.3.70.0070.01711.39
4.3.60.0000.01711.39
4.3.50.0000.03711.39
4.3.40.0030.03011.39
4.3.30.0030.03311.39
4.3.20.0070.02311.39
4.3.10.0030.03311.39
4.3.00.0000.03011.39

preferences:
39.79 ms | 400 KiB | 5 Q