3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempInicioTime = substr('2017-01-01 08:00:00', 11, 5); echo $tempInicioTime . "\n"; $tempInicioTime = strtotime($tempInicioTime); echo date('d m Y',$tempInicioTime); $tempFimTime = substr('2017-01-01 12:00:00', 11, 5); $tempFimTime = strtotime($tempFimTime);

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.0130.01016.75
8.3.50.0080.01216.63
8.3.40.0120.00418.84
8.3.30.0210.00018.70
8.3.20.0040.00420.13
8.3.10.0090.00921.78
8.3.00.0000.00820.80
8.2.180.0130.01018.41
8.2.170.0090.00622.96
8.2.160.0100.00721.98
8.2.150.0000.01424.18
8.2.140.0080.00024.66
8.2.130.0050.00322.16
8.2.120.0070.01026.35
8.2.110.0040.00420.53
8.2.100.0090.00317.97
8.2.90.0000.00819.36
8.2.80.0000.00817.97
8.2.70.0080.00017.75
8.2.60.0040.00418.16
8.2.50.0040.00418.16
8.2.40.0050.00322.32
8.2.30.0040.00421.09
8.2.20.0050.00317.99
8.2.10.0000.00718.17
8.2.00.0030.00317.98
8.1.280.0090.01225.92
8.1.270.0040.00422.18
8.1.260.0100.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00520.90
8.1.230.0060.00619.09
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0000.00917.48
8.1.190.0050.00317.47
8.1.180.0050.00318.10
8.1.170.0040.00418.80
8.1.160.0000.00719.06
8.1.150.0070.00018.88
8.1.140.0000.00719.61
8.1.130.0030.00318.93
8.1.120.0040.00417.59
8.1.110.0040.00417.61
8.1.100.0080.00017.55
8.1.90.0000.00717.57
8.1.80.0000.00717.56
8.1.70.0040.00417.59
8.1.60.0040.00417.63
8.1.50.0070.00017.46
8.1.40.0030.00517.55
8.1.30.0000.00717.59
8.1.20.0070.00017.69
8.1.10.0040.00417.64
8.1.00.0000.00817.63
8.0.300.0050.00318.77
8.0.290.0060.00316.88
8.0.280.0030.00318.41
8.0.270.0030.00317.27
8.0.260.0000.00717.08
8.0.250.0070.00017.18
8.0.240.0070.00016.96
8.0.230.0040.00317.03
8.0.220.0000.00817.04
8.0.210.0030.00516.98
8.0.200.0060.00317.12
8.0.190.0000.00817.09
8.0.180.0070.00017.00
8.0.170.0050.00217.03
8.0.160.0000.00817.14
8.0.150.0000.00717.11
8.0.140.0040.00416.96
8.0.130.0040.00413.35
8.0.120.0040.00417.00
8.0.110.0070.00017.12
8.0.100.0000.00817.13
8.0.90.0040.00417.07
8.0.80.0060.01217.00
8.0.70.0040.00417.13
8.0.60.0050.00316.97
8.0.50.0000.00817.10
8.0.30.0130.00617.13
8.0.20.0090.01017.40
8.0.10.0000.00717.20
8.0.00.0220.00016.99
7.4.330.0020.00215.55
7.4.320.0000.00616.46
7.4.300.0030.00316.55
7.4.290.0070.00016.60
7.4.280.0040.00416.59
7.4.270.0000.00816.47
7.4.260.0030.00516.64
7.4.250.0000.00716.63
7.4.240.0030.00316.59
7.4.230.0000.00716.48
7.4.220.0160.00916.68
7.4.210.0070.00816.61
7.4.200.0070.00016.75
7.4.160.0080.00816.48
7.4.150.0310.01217.40
7.4.140.0090.01117.86
7.4.130.0080.01616.61
7.4.120.0110.01016.56
7.4.110.0110.00616.52
7.4.100.0110.00716.77
7.4.90.0100.00716.53
7.4.80.0100.00719.39
7.4.70.0100.00716.79
7.4.60.0040.01416.53
7.4.50.0090.00616.79
7.4.40.0030.01616.53
7.4.30.0130.00616.67
7.4.10.0030.01715.07
7.4.00.0050.01014.89
7.3.330.0060.00013.11
7.3.320.0030.00313.15
7.3.310.0030.00316.42
7.3.300.0030.00316.32
7.3.290.0000.00716.25
7.3.280.0100.00816.32
7.3.270.0070.01117.40
7.3.260.0120.00716.53
7.3.250.0080.01016.49
7.3.240.0110.00616.60
7.3.230.0120.00616.35
7.3.210.0140.00316.64
7.3.200.0070.01016.60
7.3.190.0090.01316.63
7.3.180.0090.00616.53
7.3.170.0080.00816.48
7.3.160.0060.01016.46
7.3.130.0000.02014.80
7.3.120.0130.00314.94
7.3.110.0070.01314.80
7.3.100.0060.00914.93
7.3.90.0090.00614.96
7.3.80.0040.01814.99
7.3.70.0060.00314.86
7.3.60.0000.01314.56
7.3.50.0060.00915.02
7.3.40.0040.00815.01
7.3.30.0060.00615.06
7.3.20.0000.01416.78
7.3.10.0030.01016.71
7.3.00.0060.00316.82
7.2.330.0150.00316.84
7.2.320.0090.01316.47
7.2.310.0150.00316.51
7.2.300.0090.00616.63
7.2.290.0070.01016.74
7.2.260.0110.00815.00
7.2.250.0130.00615.04
7.2.240.0100.00314.91
7.2.230.0070.00315.24
7.2.220.0090.00915.42
7.2.210.0040.00715.20
7.2.200.0090.00615.19
7.2.190.0130.00315.09
7.2.180.0070.00715.23
7.2.170.0090.00315.21
7.2.160.0060.00315.13
7.2.150.0070.00716.85
7.2.140.0070.01017.14
7.2.130.0100.00317.08
7.2.120.0150.00017.20
7.2.110.0040.00716.80
7.2.100.0030.00917.15
7.2.90.0000.01117.12
7.2.80.0100.00716.72
7.2.70.0090.00616.76
7.2.60.0040.00917.04
7.2.50.0040.00716.98
7.2.40.0040.01117.07
7.2.30.0070.00716.76
7.2.20.0080.00617.09
7.2.10.0030.01016.91
7.2.00.0050.00818.05
7.1.330.0030.01016.00
7.1.320.0090.00915.73
7.1.310.0060.00615.99
7.1.300.0090.00315.61
7.1.290.0000.01415.97
7.1.280.0000.01015.96
7.1.270.0000.00915.97
7.1.260.0000.00915.90
7.1.250.0090.00615.98
7.1.240.0080.00316.04
7.1.230.0000.00915.65
7.1.220.0140.00015.79
7.1.210.0060.00615.59
7.1.200.0050.00915.99
7.1.190.0070.00715.87
7.1.180.0100.00315.96
7.1.170.0030.01016.02
7.1.160.0080.00615.80
7.1.150.0040.00416.01
7.1.140.0030.00615.96
7.1.130.0040.00415.88
7.1.120.0060.00515.92
7.1.110.0040.00415.86
7.1.100.0070.01017.00
7.1.90.0100.00715.97
7.1.80.0080.00415.88
7.1.70.0000.01016.63
7.1.60.0320.00624.48
7.1.50.0280.00824.25
7.1.40.0380.00624.38
7.1.30.0340.00724.43
7.1.20.0310.01124.24
7.1.10.0220.01315.27
7.1.00.0230.00715.60
7.0.330.0000.01115.42
7.0.320.0030.01215.23
7.0.310.0110.00415.54
7.0.300.0070.00415.25
7.0.290.0040.00415.69
7.0.280.0060.00615.47
7.0.270.0030.00715.61
7.0.260.0030.01015.33
7.0.250.0060.00315.64
7.0.240.0120.00315.25
7.0.230.0000.01215.66
7.0.220.0100.00315.41
7.0.210.0000.01415.58
7.0.200.0260.00915.33
7.0.190.0220.01215.18
7.0.180.0250.00815.21
7.0.170.0250.01015.10
7.0.160.0350.00315.14
7.0.150.0300.01015.02
7.0.140.0250.00514.98
7.0.130.0200.01115.23
7.0.120.0450.01015.25
7.0.110.0200.00714.96
7.0.100.0200.01015.02
7.0.90.0280.00515.02
7.0.80.0220.01015.17
7.0.70.0230.01015.20
7.0.60.0150.01215.10
7.0.50.0250.00515.16
7.0.40.0300.00214.28
7.0.30.0200.01214.22
7.0.20.0220.00814.01
7.0.10.0200.01114.11
7.0.00.0240.00814.22
5.6.400.0110.00314.63
5.6.390.0100.00714.35
5.6.380.0040.00414.69
5.6.370.0000.01314.57
5.6.360.0030.01014.48
5.6.350.0040.00414.50
5.6.340.0060.00314.49
5.6.330.0110.00014.58
5.6.320.0070.00714.41
5.6.310.0060.00314.16
5.6.300.0090.00614.22
5.6.290.0000.00914.15
5.6.280.0030.00914.43
5.6.270.0000.01514.40
5.6.260.0030.00714.38
5.6.250.0030.00614.21
5.6.240.0030.00614.51
5.6.230.0070.00714.39
5.6.220.0030.01414.70
5.6.210.0070.00714.52
5.6.200.0060.00314.13
5.6.190.0070.01014.27
5.6.180.0110.00314.23
5.6.170.0040.01114.39
5.6.160.0040.00714.57
5.6.150.0030.00814.25
5.6.140.0000.01014.77
5.6.130.0070.00714.46
5.6.120.0030.00914.53
5.6.110.0100.00714.23
5.6.100.0030.01214.42
5.6.90.0130.00014.48
5.6.80.0040.00814.18
5.6.70.0030.00714.13
5.6.60.0070.00314.36
5.6.50.0030.00714.17
5.6.40.0070.00714.17
5.6.30.0070.00714.25
5.6.20.0000.01014.21
5.6.10.0060.00914.09
5.6.00.0090.00714.21

preferences:
45.64 ms | 401 KiB | 5 Q