3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/London'); $date = strtotime("November 22, 2017 12:01 AM"); $remaining = $date - time(); $str = date("H:i:s", $remaining); Echo $str;

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)
7.4.10.0100.00714.93
7.4.00.0060.01215.20
7.3.130.0100.00614.88
7.3.120.0050.01115.12
7.3.110.0090.00814.76
7.3.100.0050.01114.96
7.3.90.0040.00914.95
7.3.80.0050.00614.99
7.3.70.0050.01114.93
7.3.60.0050.00914.86
7.3.50.0050.00814.85
7.3.40.0080.00714.96
7.3.30.0030.01114.96
7.3.20.0010.01116.64
7.3.10.0070.00616.74
7.3.00.0090.00716.57
7.2.260.0080.01114.77
7.2.250.0070.01015.04
7.2.240.0070.00915.13
7.2.230.0070.00915.16
7.2.220.0030.01215.22
7.2.210.0080.00815.20
7.2.200.0070.01115.24
7.2.190.0060.00615.04
7.2.180.0080.00715.24
7.2.170.0080.00715.12
7.2.160.0100.00315.28
7.2.150.0030.01216.90
7.2.140.0090.00617.09
7.2.130.0100.00317.04
7.2.120.0090.00717.23
7.2.110.0100.00017.03
7.2.100.0080.00616.91
7.2.90.0060.00917.10
7.2.80.0070.00516.80
7.2.70.0070.00617.04
7.2.60.0070.00716.90
7.2.50.0060.00817.01
7.2.40.0050.01217.18
7.2.30.0050.00817.12
7.2.20.0030.01216.75
7.2.10.0110.00616.91
7.2.00.0060.01017.07
7.1.330.0070.00816.10
7.1.320.0060.00616.04
7.1.310.0060.00715.93
7.1.300.0040.01115.83
7.1.290.0060.00715.97
7.1.280.0090.00515.82
7.1.270.0040.01015.83
7.1.260.0020.01416.06
7.1.250.0080.00815.82
7.1.240.0000.01316.02
7.1.230.0150.00015.96
7.1.220.0000.01615.88
7.1.210.0040.00815.89
7.1.200.0050.00915.79
7.1.190.0050.00515.91
7.1.180.0070.00416.03
7.1.170.0070.00716.05
7.1.160.0070.00315.86
7.1.150.0030.00715.91
7.1.140.0080.00815.83
7.1.130.0120.00316.01
7.1.120.0000.01415.77
7.1.110.0510.01116.08
7.1.100.0330.00816.25
7.1.90.0670.00716.19
7.1.80.0630.01216.10
7.1.70.0470.00315.80
7.1.60.0660.01124.65
7.1.50.0310.01424.38
7.1.40.0550.01324.58
7.1.30.0640.01024.38
7.1.20.0430.00824.41
7.1.10.0310.01415.37
7.1.00.0470.00815.40
7.0.330.0030.00615.30
7.0.320.0070.00715.32
7.0.310.0100.00315.70
7.0.300.0070.00315.54
7.0.290.0120.00315.39
7.0.280.0030.00615.66
7.0.270.0080.00815.49
7.0.260.0090.00315.68
7.0.250.0460.01115.84
7.0.240.0470.00915.68
7.0.230.0750.01115.69
7.0.220.0620.01215.51
7.0.210.0640.00715.36
7.0.200.0720.00815.19
7.0.190.0730.01115.28
7.0.180.0640.00814.97
7.0.170.0420.00915.14
7.0.160.0440.00714.92
7.0.150.0350.01614.94
7.0.140.0340.00615.13
7.0.130.0370.00915.08
7.0.120.0320.01015.11
7.0.110.0340.00815.14
7.0.100.0400.01014.99
7.0.90.0600.00515.10
7.0.80.0390.01115.05
7.0.70.0480.00715.16
7.0.60.0400.01014.91
7.0.50.0330.01415.13
7.0.40.0360.01214.21
7.0.30.0460.00914.15
7.0.20.0450.01114.02
7.0.10.0410.01114.14
7.0.00.0600.00814.10
5.6.400.0130.00314.50
5.6.390.0100.00314.69
5.6.380.0100.01014.50
5.6.370.0060.00614.30
5.6.360.0030.01014.71
5.6.350.0070.00714.61
5.6.340.0000.01114.29
5.6.330.0040.00814.63
5.6.320.0030.01014.33
5.6.310.0070.00714.55
5.6.300.0000.01414.39
5.6.290.0060.00914.54
5.6.280.0030.00614.74
5.6.270.0060.00614.32
5.6.260.0030.00914.21
5.6.250.0060.00614.54
5.6.240.0060.00614.32
5.6.230.0090.00614.37
5.6.220.0030.00914.17
5.6.210.0060.00614.13
5.6.200.0030.00614.23
5.6.190.0080.00814.65
5.6.180.0070.00714.40
5.6.170.0080.00314.47
5.6.160.0110.00414.20
5.6.150.0000.01114.21
5.6.140.0060.00914.59
5.6.130.0100.00714.23
5.6.120.0140.00014.27
5.6.110.0040.01214.27
5.6.100.0000.01214.29
5.6.90.0130.00314.37
5.6.80.0030.01214.54
5.6.70.0030.01014.37
5.6.60.0000.01214.38
5.6.50.0000.01514.25
5.6.40.0000.01514.35
5.6.30.0110.00414.36
5.6.20.0030.00914.50
5.6.10.0070.00414.25
5.6.00.0040.01114.34

preferences:
30.45 ms | 400 KiB | 5 Q