3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fix_strtotime($date) { if(preg_match('/([012]?[0-9]?:[0-5]{1}\d\s*[aA|pP]?[mM]?)(\s+)(.+)/', $date, $matches)) { return strtotime($matches[3] . $matches[2] . $matches[1]); } return strtotime($date); } echo fix_strtotime('04:00 yesterday'); // 2010-09-17 14:00:00

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.00318.68
8.3.50.0080.01222.17
8.3.40.0090.01219.06
8.3.30.0120.00319.17
8.3.20.0040.00419.10
8.3.10.0050.00321.23
8.3.00.0080.00022.02
8.2.180.0110.00416.97
8.2.170.0060.00922.96
8.2.160.0100.00320.53
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0030.00521.19
8.2.110.0060.00320.41
8.2.100.0060.00618.09
8.2.90.0000.00819.37
8.2.80.0000.00818.05
8.2.70.0030.00517.85
8.2.60.0000.00817.92
8.2.50.0080.00318.07
8.2.40.0050.00318.34
8.2.30.0000.00821.23
8.2.20.0030.00718.07
8.2.10.0030.00618.11
8.2.00.0140.00017.98
8.1.280.0120.00325.92
8.1.270.0080.00023.99
8.1.260.0100.00726.35
8.1.250.0060.00328.09
8.1.240.0000.00922.46
8.1.230.0110.00021.03
8.1.220.0030.00518.77
8.1.210.0040.00418.95
8.1.200.0000.01017.61
8.1.190.0000.00917.54
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0000.00718.87
8.1.150.0060.00318.90
8.1.140.0060.00317.82
8.1.130.0040.00417.82
8.1.120.0050.00217.80
8.1.110.0050.00317.78
8.1.100.0040.00417.64
8.1.90.0040.00417.71
8.1.80.0000.00717.71
8.1.70.0000.00817.70
8.1.60.0040.00417.72
8.1.50.0000.00717.70
8.1.40.0030.00617.61
8.1.30.0030.00617.77
8.1.20.0080.00017.79
8.1.10.0000.00717.81
8.1.00.0040.00417.79
8.0.300.0000.00719.86
8.0.290.0000.00717.30
8.0.280.0000.00718.50
8.0.270.0050.00217.16
8.0.260.0070.00017.04
8.0.250.0040.00417.27
8.0.240.0070.00317.25
8.0.230.0000.00717.27
8.0.220.0050.00217.31
8.0.210.0080.00017.25
8.0.200.0030.00317.24
8.0.190.0000.00717.32
8.0.180.0040.00417.12
8.0.170.0000.00717.15
8.0.160.0040.00417.32
8.0.150.0030.00317.18
8.0.140.0080.00317.12
8.0.130.0070.00013.59
8.0.120.0000.00817.13
8.0.110.0000.00817.14
8.0.100.0040.00417.12
8.0.90.0030.00517.16
8.0.80.0110.00717.28
8.0.70.0050.00317.30
8.0.60.0030.00517.20
8.0.50.0050.00317.32
8.0.30.0120.01117.19
8.0.20.0120.00617.40
8.0.10.0000.00717.36
8.0.00.0080.00817.13
7.4.330.0000.00616.69
7.4.320.0060.00016.82
7.4.300.0070.00016.84
7.4.290.0040.00416.86
7.4.280.0030.00716.77
7.4.270.0030.00316.96
7.4.260.0000.00613.63
7.4.250.0070.00016.79
7.4.240.0000.00716.88
7.4.230.0080.00016.70
7.4.220.0190.00716.92
7.4.210.0080.00916.97
7.4.200.0040.00316.99
7.4.190.0050.00216.96
7.4.160.0100.00716.82
7.4.150.0070.01117.40
7.4.140.0080.00817.86
7.4.130.0100.00716.98
7.4.120.0090.01016.80
7.4.110.0090.00917.01
7.4.100.0090.00917.01
7.4.90.0160.00316.78
7.4.80.0120.00619.39
7.4.70.0070.01016.84
7.4.60.0070.01316.64
7.4.50.0050.00016.87
7.4.40.0000.01522.77
7.4.30.0040.01316.95
7.4.00.0110.00315.48
7.3.330.0000.00613.57
7.3.320.0050.00713.50
7.3.310.0090.00016.59
7.3.300.0030.00316.68
7.3.290.0030.01016.45
7.3.280.0070.01116.53
7.3.270.0140.00317.40
7.3.260.0130.00718.24
7.3.250.0070.01116.67
7.3.240.0080.00816.57
7.3.230.0090.00917.14
7.3.210.0070.01016.95
7.3.200.0140.00719.39
7.3.190.0140.00316.73
7.3.180.0100.00616.60
7.3.170.0000.01617.07
7.3.160.0000.01616.76
7.3.120.0060.00914.99
7.3.10.0040.00816.91
7.3.00.0030.01216.77
7.2.330.0000.01817.00
7.2.320.0120.00916.98
7.2.310.0090.00916.69
7.2.300.0090.00916.87
7.2.290.0040.01516.82
7.2.130.0140.00617.00
7.2.120.0180.00616.88
7.2.110.0190.00316.89
7.2.100.0090.00617.19
7.2.90.0170.00517.32
7.2.80.0290.00317.16
7.2.70.0220.01817.15
7.2.60.0080.00617.14
7.2.50.0060.00617.12
7.2.40.0140.00516.96
7.2.30.0180.00617.18
7.2.20.0130.00617.27
7.2.10.0130.00016.92
7.2.00.0080.00618.33
7.1.250.0110.00816.24
7.1.200.0030.00916.06
7.1.100.0030.00918.69
7.1.70.0070.00017.54
7.1.60.0150.01119.40
7.1.50.0130.01017.38
7.1.00.0030.03322.38
7.0.200.0060.00617.04
7.0.140.0100.06322.18
7.0.110.0130.04320.04
7.0.100.0130.06320.11
7.0.90.0100.04320.09
7.0.80.0070.04320.07
7.0.70.0430.08019.94
7.0.60.0530.08720.04
7.0.50.0900.06719.92
7.0.40.0070.07319.64
7.0.30.0100.08019.68
7.0.20.0130.08019.66
7.0.10.0170.08319.69
7.0.00.0000.08719.58
5.6.280.0170.06021.12
5.6.260.0030.04720.74
5.6.250.0070.03020.59
5.6.240.0100.04020.71
5.6.230.0030.04320.47
5.6.220.0270.06320.63
5.6.210.0170.04320.72
5.6.200.0030.11720.56
5.6.190.0100.08720.62
5.6.180.0200.06720.86
5.6.170.0170.04720.47
5.6.160.0130.08020.64
5.6.150.0070.08720.62
5.6.140.0130.07020.63
5.6.130.0130.07320.59
5.6.120.0070.08320.45
5.6.110.0100.05020.63
5.6.100.0130.07320.58
5.6.90.0070.07720.68
5.6.80.0070.08719.95
5.6.70.0200.06720.07
5.6.60.0070.06019.92
5.6.50.0130.06019.85
5.6.40.0170.07019.95
5.6.30.0030.06319.98
5.6.20.0070.06719.91
5.6.10.0130.06720.06
5.6.00.0030.08019.98
5.5.380.0130.03720.32
5.5.370.0130.05720.57
5.5.360.0070.04720.32
5.5.350.0330.05320.47
5.5.340.0170.08020.89
5.5.330.0030.08320.81
5.5.320.0130.07320.90
5.5.310.0200.06321.02
5.5.300.0030.07320.96
5.5.290.0170.07020.87
5.5.280.0100.05720.86
5.5.270.0130.07720.88
5.5.260.0070.08721.02
5.5.250.0030.06020.82
5.5.240.0070.07320.18
5.5.230.0070.06320.28
5.5.220.0130.07020.34
5.5.210.0100.04720.35
5.5.200.0100.08320.30
5.5.190.0030.05320.37
5.5.180.0100.05020.32
5.5.160.0100.07720.23
5.5.150.0100.08020.24
5.5.140.0130.05720.16
5.5.130.0100.07720.20
5.5.120.0200.07020.24
5.5.110.0100.07020.36
5.5.100.0030.08320.15
5.5.90.0130.04020.21
5.5.80.0070.06720.25
5.5.70.0030.08720.20
5.5.60.0100.04720.07
5.5.50.0170.04020.25
5.5.40.0130.05720.09
5.5.30.0070.07320.05
5.5.20.0070.05020.12
5.5.10.0130.04019.94
5.5.00.0100.07720.10
5.4.450.0100.07319.32
5.4.440.0070.07719.33
5.4.430.0070.07319.66
5.4.420.0070.06019.67
5.4.410.0100.05719.44
5.4.400.0030.06019.32
5.4.390.0130.07318.95
5.4.380.0030.08019.01
5.4.370.0030.08019.25
5.4.360.0000.06019.18
5.4.350.0030.06319.24
5.4.340.0100.06718.98
5.4.320.0030.08019.09
5.4.310.0030.07319.23
5.4.300.0100.06319.34
5.4.290.0100.07719.03
5.4.280.0170.07019.17
5.4.270.0130.06019.24
5.4.260.0100.06019.03
5.4.250.0030.08018.95
5.4.240.0170.07019.01
5.4.230.0100.04319.00
5.4.220.0170.05019.19
5.4.210.0030.04718.95
5.4.200.0170.03019.33
5.4.190.0030.07718.98
5.4.180.0200.04719.05
5.4.170.0070.06318.95
5.4.160.0030.05019.16
5.4.150.0070.07719.29
5.4.140.0100.07316.59
5.4.130.0100.04016.33
5.4.120.0000.05016.38
5.4.110.0100.06316.59
5.4.100.0170.05316.26
5.4.90.0100.06716.51
5.4.80.0070.07016.45
5.4.70.0070.04316.47
5.4.60.0100.03316.39
5.4.50.0100.04716.28
5.4.40.0030.05016.50
5.4.30.0030.07316.45
5.4.20.0130.04016.47
5.4.10.0100.07016.52
5.4.00.0070.06315.88
5.3.290.0070.05714.80
5.3.280.0000.08714.63
5.3.270.0200.06014.60
5.3.260.0070.07014.63
5.3.250.0100.07014.68
5.3.240.0030.07714.68
5.3.230.0030.08314.59
5.3.220.0030.04714.55
5.3.210.0130.07014.79
5.3.200.0030.05014.71
5.3.190.0200.06014.79
5.3.180.0100.07314.63
5.3.170.0070.07014.55
5.3.160.0130.06714.67
5.3.150.0170.03714.41
5.3.140.0070.05714.68
5.3.130.0000.08314.63
5.3.120.0100.04314.58
5.3.110.0070.07014.54
5.3.100.0070.06314.05
5.3.90.0000.05014.11
5.3.80.0170.04713.97
5.3.70.0130.07014.00
5.3.60.0100.05013.98
5.3.50.0100.07013.82
5.3.40.0130.04313.96
5.3.30.0070.06714.03
5.3.20.0130.06313.75
5.3.10.0030.07713.68
5.3.00.0000.04313.64
5.2.170.0030.04012.51
5.2.160.0070.06012.51
5.2.150.0130.04712.51
5.2.140.0100.06312.51
5.2.130.0030.05012.51
5.2.120.0030.06012.51
5.2.110.0070.05312.51
5.2.100.0070.04712.51
5.2.90.0030.03312.51
5.2.80.0030.04012.51
5.2.70.0030.06012.51
5.2.60.0130.03712.51
5.2.50.0100.06012.51
5.2.40.0000.06712.51
5.2.30.0030.03312.51
5.2.20.0000.04712.51
5.2.10.0070.05012.51
5.2.00.0070.06012.51
5.1.60.0100.05012.51
5.1.50.0000.04012.51
5.1.40.0030.04712.51
5.1.30.0070.05712.51
5.1.20.0030.04012.51
5.1.10.0000.05012.51
5.1.00.0000.05012.51
5.0.50.0030.04712.51
5.0.40.0030.03312.51
5.0.30.0030.06012.51
5.0.20.0000.04712.51
5.0.10.0030.03712.51
5.0.00.0070.06012.51
4.4.90.0000.03712.51
4.4.80.0030.03312.51
4.4.70.0000.03712.51
4.4.60.0070.03312.51
4.4.50.0000.04012.51
4.4.40.0070.05312.51
4.4.30.0030.01712.51
4.4.20.0030.03312.51
4.4.10.0070.03012.51
4.4.00.0000.06012.51
4.3.110.0070.02312.51
4.3.100.0070.03312.51
4.3.90.0000.03712.51
4.3.80.0030.05012.51
4.3.70.0030.03312.51
4.3.60.0070.03012.51
4.3.50.0030.03312.51
4.3.40.0000.05312.51
4.3.30.0030.03012.51
4.3.20.0030.02712.51
4.3.10.0030.03312.51
4.3.00.0070.03012.51

preferences:
49.11 ms | 401 KiB | 5 Q