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('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.0100.00716.75
8.3.50.0090.00616.38
8.3.40.0160.00318.78
8.3.30.0110.00418.67
8.3.20.0080.00020.16
8.3.10.0040.00421.73
8.3.00.0080.00020.89
8.2.180.0060.00918.29
8.2.170.0000.01422.96
8.2.160.0040.01122.09
8.2.150.0080.00024.18
8.2.140.0110.00324.66
8.2.130.0040.00422.30
8.2.120.0040.00426.35
8.2.110.0090.00621.02
8.2.100.0070.00417.97
8.2.90.0040.00419.11
8.2.80.0030.00517.97
8.2.70.0050.00517.50
8.2.60.0000.00918.05
8.2.50.0000.00818.10
8.2.40.0040.00422.15
8.2.30.0000.00821.11
8.2.20.0070.00018.11
8.2.10.0040.00418.02
8.2.00.0000.00817.98
8.1.280.0100.01025.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.28
8.1.230.0040.00819.14
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.47
8.1.190.0000.00817.36
8.1.180.0050.00318.10
8.1.170.0060.00318.59
8.1.160.0040.00418.94
8.1.150.0080.00020.59
8.1.140.0000.00719.57
8.1.130.0030.00318.75
8.1.120.0050.00417.59
8.1.110.0060.00317.61
8.1.100.0030.00517.65
8.1.90.0070.00017.50
8.1.80.0050.00317.57
8.1.70.0000.00717.58
8.1.60.0040.00417.65
8.1.50.0000.00717.57
8.1.40.0000.00817.47
8.1.30.0000.00817.75
8.1.20.0050.00317.54
8.1.10.0080.00017.52
8.1.00.0030.00617.63
8.0.300.0080.00018.77
8.0.290.0000.00716.88
8.0.280.0000.00718.41
8.0.270.0070.00017.24
8.0.260.0070.00016.98
8.0.250.0000.00717.03
8.0.240.0000.00816.93
8.0.230.0040.00417.03
8.0.220.0030.00317.07
8.0.210.0070.00017.10
8.0.200.0060.00317.14
8.0.190.0050.00317.15
8.0.180.0040.00417.14
8.0.170.0040.00416.98
8.0.160.0040.00417.05
8.0.150.0000.00717.06
8.0.140.0000.00816.93
8.0.130.0040.00413.28
8.0.120.0030.00617.04
8.0.110.0000.00717.12
8.0.100.0040.00417.03
8.0.90.0040.00417.14
8.0.80.0130.00317.14
8.0.70.0070.00017.11
8.0.60.0070.00016.88
8.0.50.0070.00016.88
8.0.30.0140.00317.18
8.0.20.0130.00717.40
8.0.10.0040.00417.20
8.0.00.0070.01016.76
7.4.330.0020.00215.55
7.4.320.0030.00316.57
7.4.300.0030.00316.52
7.4.290.0030.00516.70
7.4.280.0030.00516.57
7.4.270.0030.00316.66
7.4.260.0000.00916.55
7.4.250.0000.00716.62
7.4.240.0070.00016.59
7.4.230.0070.00016.55
7.4.220.0170.00716.60
7.4.210.0090.00516.71
7.4.200.0000.00716.47
7.4.160.0100.00816.66
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0140.00716.68
7.4.120.0070.01216.50
7.4.110.0080.00816.48
7.4.100.0100.01316.54
7.4.90.0040.01216.55
7.4.80.0100.01319.39
7.4.70.0160.00816.79
7.4.60.0150.00716.80
7.4.50.0030.01416.40
7.4.40.0100.01016.50
7.4.30.0100.01416.45
7.4.10.0060.01315.19
7.4.00.0070.01015.07
7.3.330.0000.00513.15
7.3.320.0030.00313.06
7.3.310.0030.00316.16
7.3.300.0000.00616.31
7.3.290.0030.00316.34
7.3.280.0080.00816.30
7.3.270.0070.01017.40
7.3.260.0120.00616.63
7.3.250.0080.01316.50
7.3.240.0170.00216.54
7.3.230.0060.01316.32
7.3.210.0160.00016.41
7.3.200.0140.00616.48
7.3.190.0230.00616.45
7.3.180.0090.00616.50
7.3.170.0180.00316.34
7.3.160.0060.00916.53
7.3.130.0060.01114.88
7.3.120.0070.00915.02
7.3.110.0060.01215.09
7.3.100.0110.00515.13
7.3.90.0090.00715.08
7.3.80.0070.00915.08
7.3.70.0060.00715.12
7.3.60.0070.00614.99
7.3.50.0060.00915.03
7.3.40.0100.00514.98
7.3.30.0080.00414.92
7.3.20.0080.00716.58
7.3.10.0100.00416.68
7.3.00.0060.00816.78
7.2.330.0070.01116.85
7.2.320.0060.01216.66
7.2.310.0090.00916.57
7.2.300.0060.01016.60
7.2.290.0120.00616.98
7.2.260.0060.00915.13
7.2.250.0090.00915.07
7.2.240.0090.00715.11
7.2.230.0040.01515.17
7.2.220.0060.01215.17
7.2.210.0040.01015.20
7.2.200.0060.00615.25
7.2.190.0060.00915.11
7.2.180.0080.00715.19
7.2.170.0070.00815.14
7.2.160.0070.00715.01
7.2.150.0050.01017.11
7.2.140.0030.00817.02
7.2.130.0050.01116.80
7.2.120.0050.01017.02
7.2.110.0050.01216.88
7.2.100.0030.01016.94
7.2.90.0060.00817.20
7.2.80.0070.00416.97
7.2.70.0060.00917.18
7.2.60.0070.00816.95
7.2.50.0090.00716.86
7.2.40.0070.00716.96
7.2.30.0060.00717.09
7.2.20.0080.00417.07
7.2.10.0020.01216.99
7.2.00.0060.00517.74
7.1.330.0100.00515.77
7.1.320.0050.01215.83
7.1.310.0090.00515.92
7.1.300.0070.00615.86
7.1.290.0090.00515.79
7.1.280.0030.01115.80
7.1.270.0080.00715.82
7.1.260.0080.00516.06
7.1.250.0050.01015.76
7.1.240.0030.01315.91
7.1.230.0080.00315.76
7.1.220.0080.00415.88
7.1.210.0060.00515.98
7.1.200.0070.00515.79
7.1.190.0070.00816.07
7.1.180.0050.00815.84
7.1.170.0110.00215.90
7.1.160.0070.00715.87
7.1.150.0040.00815.68
7.1.140.0040.00815.98
7.1.130.0040.00815.82
7.1.120.0030.00915.92
7.1.110.0060.01015.90
7.1.100.0030.00916.72
7.1.90.0050.00615.96
7.1.80.0040.00715.69
7.1.70.0060.00716.46
7.1.60.0240.00721.70
7.1.50.0180.01021.51
7.1.40.0210.00921.46
7.1.30.0200.00821.49
7.1.20.0190.00821.34
7.1.10.0170.00615.45
7.1.00.0170.00415.64
7.0.330.0050.00615.66
7.0.320.0070.00315.61
7.0.310.0010.01115.45
7.0.300.0030.01015.46
7.0.290.0090.00515.56
7.0.280.0050.00815.53
7.0.270.0040.00815.34
7.0.260.0080.00715.68
7.0.250.0100.00315.66
7.0.240.0060.01115.65
7.0.230.0020.01115.38
7.0.220.0020.01215.52
7.0.210.0030.00615.57
7.0.200.0180.00415.44
7.0.190.0020.00915.16
7.0.180.0290.00615.16
7.0.170.0160.00515.23
7.0.160.0150.00615.21
7.0.150.0130.01015.09
7.0.140.0130.00815.35
7.0.130.0140.00815.33
7.0.120.0140.00615.32
7.0.110.0150.00815.24
7.0.100.0160.00915.21
7.0.90.0150.01015.17
7.0.80.0150.00715.21
7.0.70.0140.00915.17
7.0.60.0150.00915.23
7.0.50.0200.00615.40
7.0.40.0210.00714.02
7.0.30.0190.00913.80
7.0.20.0170.00613.91
7.0.10.0150.00913.99
7.0.00.0320.00714.10
5.6.400.0070.00614.29
5.6.390.0030.00814.61
5.6.380.0010.01014.45
5.6.370.0020.01114.69
5.6.360.0000.01314.29
5.6.350.0050.00414.50
5.6.340.0080.00514.50
5.6.330.0070.00514.31
5.6.320.0040.01014.48
5.6.310.0030.01014.44
5.6.300.0050.00814.28
5.6.290.0050.00714.40
5.6.280.0000.01114.29
5.6.270.0050.00714.42
5.6.260.0070.00514.42
5.6.250.0030.00914.53
5.6.240.0040.01114.31
5.6.230.0030.00814.40
5.6.220.0080.00614.48
5.6.210.0020.01014.38
5.6.200.0040.00614.32
5.6.190.0100.00314.34
5.6.180.0060.00414.45
5.6.170.0080.00514.44
5.6.160.0060.00914.45
5.6.150.0050.00714.48
5.6.140.0030.00614.48
5.6.130.0030.00614.32
5.6.120.0080.00614.32
5.6.110.0020.01014.20
5.6.100.0020.01014.33
5.6.90.0020.00814.37
5.6.80.0030.00814.24
5.6.70.0060.00814.27
5.6.60.0070.00614.28
5.6.50.0030.01114.15
5.6.40.0060.00714.25
5.6.30.0060.00714.38
5.6.20.0020.01314.39
5.6.10.0090.00614.22
5.6.00.0020.01114.27

preferences:
40.64 ms | 400 KiB | 5 Q