3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTimeImmutable("2015-09-21 09:00"); $end = new DateTimeImmutable("2015-09-21 17:00"); $diff = $end->diff($start); print_r($diff->format("%h"));

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.0120.00318.56
8.3.50.0100.00921.32
8.3.40.0040.01118.83
8.3.30.0030.01018.84
8.3.20.0040.00420.33
8.3.10.0040.00421.92
8.3.00.0000.00819.69
8.2.180.0110.01116.63
8.2.170.0100.00322.96
8.2.160.0090.00620.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00617.50
8.2.110.0030.00622.09
8.2.100.0000.01317.63
8.2.90.0090.00319.26
8.2.80.0090.00017.97
8.2.70.0050.00317.63
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0050.00319.31
8.2.30.0000.00819.75
8.2.20.0040.00417.85
8.2.10.0040.00417.96
8.2.00.0000.00718.05
8.1.280.0090.00625.92
8.1.270.0090.00920.23
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.47
8.1.230.0120.00017.42
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0040.00418.72
8.1.160.0040.00422.06
8.1.150.0000.00718.79
8.1.140.0040.00417.58
8.1.130.0040.00417.57
8.1.120.0050.00317.52
8.1.110.0070.00017.57
8.1.100.0000.00717.54
8.1.90.0050.00217.57
8.1.80.0000.00817.48
8.1.70.0000.00717.59
8.1.60.0090.00017.65
8.1.50.0040.00417.46
8.1.40.0000.01217.43
8.1.30.0040.00417.60
8.1.20.0000.00717.65
8.1.10.0000.00817.52
8.1.00.0040.00417.63
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0070.00018.45
8.0.270.0000.00717.21
8.0.260.0060.00017.25
8.0.250.0000.00717.13
8.0.240.0030.00317.05
8.0.230.0040.00417.07
8.0.220.0070.00016.89
8.0.210.0070.00016.92
8.0.200.0060.00017.15
8.0.190.0000.00816.94
8.0.180.0050.00316.90
8.0.170.0080.00017.06
8.0.160.0070.00016.96
8.0.150.0000.00716.85
8.0.140.0000.01016.89
8.0.130.0050.00013.37
8.0.120.0080.00016.90
8.0.110.0050.00216.93
8.0.100.0040.00417.04
8.0.90.0070.00017.07
8.0.80.0100.00617.07
8.0.70.0030.00516.99
8.0.60.0050.00317.09
8.0.50.0040.00417.14
8.0.30.0130.00917.23
8.0.20.0050.01617.40
8.0.10.0070.00016.98
8.0.00.0070.01116.94
7.4.330.0030.00315.08
7.4.320.0030.00316.56
7.4.300.0030.00316.65
7.4.290.0070.00016.72
7.4.280.0040.00416.57
7.4.270.0040.00416.48
7.4.260.0000.00716.55
7.4.250.0000.00716.55
7.4.240.0040.00416.55
7.4.230.0070.00016.47
7.4.220.0130.00616.65
7.4.210.0100.00616.62
7.4.200.0030.00316.70
7.4.160.0080.00816.61
7.4.150.0100.01017.40
7.4.140.0150.00517.86
7.4.130.0120.00616.49
7.4.120.0120.00516.56
7.4.110.0090.00816.51
7.4.100.0070.01116.68
7.4.90.0070.01116.61
7.4.80.0130.00319.39
7.4.70.0060.01316.45
7.4.60.0100.00616.52
7.4.50.0040.00416.23
7.4.40.0090.01416.39
7.4.30.0150.00316.51
7.4.00.0070.01015.19
7.3.330.0050.00013.00
7.3.320.0060.00013.20
7.3.310.0040.00416.13
7.3.300.0040.00416.31
7.3.290.0000.00616.27
7.3.280.0100.00916.25
7.3.270.0070.01017.40
7.3.260.0140.00316.58
7.3.250.0060.01016.41
7.3.240.0090.01316.36
7.3.230.0160.00016.39
7.3.210.0070.01016.38
7.3.200.0030.01716.39
7.3.190.0100.00616.43
7.3.180.0100.00716.71
7.3.170.0110.01116.37
7.3.160.0100.00716.37
7.3.10.0070.00716.93
7.3.00.0090.00616.50
7.2.330.0100.00616.35
7.2.320.0050.01416.71
7.2.310.0110.00816.81
7.2.300.0100.01316.72
7.2.290.0120.01216.63
7.2.130.0030.00916.75
7.2.120.0070.00717.03
7.2.110.0000.01416.77
7.2.100.0030.01016.55
7.2.90.0090.00617.09
7.2.80.0090.00816.53
7.2.70.0070.00716.82
7.2.60.0030.01216.84
7.2.50.0030.01016.96
7.2.40.0100.00616.97
7.2.30.0110.00716.82
7.2.20.0100.00316.74
7.2.10.0030.01016.57
7.2.00.0090.00518.12
7.1.250.0040.00715.91
7.1.100.0050.00518.35
7.1.70.0030.00617.25
7.1.60.0120.01220.03
7.1.50.0070.01416.75
7.1.00.0100.06722.51
7.0.200.0000.00717.04
7.0.60.0100.05719.87
7.0.50.0070.05017.66
7.0.40.0130.06720.14
7.0.30.0230.04020.13
7.0.20.0270.07720.04
7.0.10.0100.08020.18
7.0.00.0130.04320.16
5.6.280.0000.06021.12
5.6.210.0230.07020.53
5.6.200.0070.07718.21
5.6.190.0070.07320.67
5.6.180.0230.04320.36
5.6.170.0200.04720.39
5.6.160.0100.05720.37
5.6.150.0070.08018.16
5.6.140.0070.07318.20
5.6.130.0070.07318.18
5.6.120.0070.07020.94
5.6.110.0100.07721.01
5.6.100.0130.06320.98
5.6.90.0100.05320.96
5.6.80.0130.07320.43
5.5.350.4130.04320.40
5.5.340.0100.07717.92
5.5.330.0070.08320.21
5.5.320.0230.08020.24
5.5.310.0230.07720.28
5.5.300.0030.08318.01
5.5.290.0030.04017.91
5.5.280.0000.04320.77
5.5.270.0130.03020.79
5.5.260.0070.06720.79
5.5.250.0200.07020.54
5.5.240.0030.03320.18
5.4.450.0500.05319.15
5.4.440.0470.06019.27
5.4.430.0500.05319.27
5.4.420.0470.06019.29
5.4.410.0470.05019.53
5.4.400.0500.05718.95
5.4.390.0430.05318.81
5.4.380.0600.04718.99
5.4.370.0330.06319.30
5.4.360.0400.05318.90
5.4.350.0500.04319.09
5.4.340.0270.06719.30
5.4.320.0300.06019.21
5.4.310.0530.05319.15
5.4.300.0700.04718.80
5.4.290.0670.04318.99
5.4.280.0530.05719.21
5.4.270.0530.05018.77
5.4.260.0530.05319.30
5.4.250.0530.05319.25
5.4.240.0670.04019.18
5.4.230.0430.06018.79
5.4.220.0400.05319.14
5.4.210.0530.04718.77
5.4.200.0500.05318.98
5.4.190.0470.04719.27
5.4.180.0470.05319.11
5.4.170.0400.05719.21
5.4.160.0530.04719.17
5.4.150.0570.04718.75
5.4.140.0370.05716.19
5.4.130.0530.04716.43
5.4.120.0400.04716.46
5.4.110.0530.07716.09
5.4.100.0470.04016.45
5.4.90.0430.05716.49
5.4.80.0630.04316.48
5.4.70.0170.03016.41
5.4.60.0230.06316.37
5.4.50.0230.06016.39
5.4.40.0270.06716.20
5.4.30.0030.04716.45
5.4.20.0270.04016.31
5.4.10.0300.05716.36

preferences:
47.84 ms | 401 KiB | 5 Q