3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = (new \DateTime('2017-07-03 00:00:00'))->diff(new \DateTime('now')); echo $interval->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.70.0110.00718.59
8.3.60.0140.00718.56
8.3.50.0080.00716.45
8.3.40.0040.01118.84
8.3.30.0120.00618.92
8.3.20.0040.00420.20
8.3.10.0050.00521.80
8.3.00.0040.00420.99
8.2.180.0110.00718.18
8.2.170.0060.00822.96
8.2.160.0100.00322.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00320.35
8.2.120.0040.00426.35
8.2.110.0050.00520.50
8.2.100.0100.00317.91
8.2.90.0000.00819.17
8.2.80.0030.00517.97
8.2.70.0070.00317.75
8.2.60.0070.00017.93
8.2.50.0080.00018.10
8.2.40.0090.00022.33
8.2.30.0000.00721.04
8.2.20.0040.00418.04
8.2.10.0000.00718.00
8.2.00.0070.00018.02
8.1.280.0040.01125.92
8.1.270.0050.00323.92
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0090.00022.53
8.1.230.0040.00719.21
8.1.220.0060.00317.78
8.1.210.0030.00618.77
8.1.200.0060.00317.47
8.1.190.0060.00317.36
8.1.180.0080.00018.10
8.1.170.0060.00318.64
8.1.160.0000.00719.00
8.1.150.0040.00418.90
8.1.140.0070.00019.69
8.1.130.0050.00518.93
8.1.120.0000.00717.60
8.1.110.0040.00417.47
8.1.100.0030.00517.51
8.1.90.0030.00617.58
8.1.80.0040.00417.57
8.1.70.0030.00317.59
8.1.60.0060.00317.54
8.1.50.0050.00317.60
8.1.40.0050.00217.62
8.1.30.0050.00317.68
8.1.20.0000.00817.57
8.1.10.0080.00017.73
8.1.00.0000.00817.54
8.0.300.0080.00018.77
8.0.290.0000.00816.88
8.0.280.0080.00018.53
8.0.270.0040.00417.30
8.0.260.0030.00317.02
8.0.250.0030.00317.17
8.0.240.0000.00716.93
8.0.230.0000.00717.08
8.0.220.0030.00316.97
8.0.210.0000.00716.98
8.0.200.0070.00017.11
8.0.190.0000.00816.98
8.0.180.0040.00417.06
8.0.170.0050.00317.08
8.0.160.0030.00317.04
8.0.150.0040.00416.99
8.0.140.0050.00317.02
8.0.130.0000.00813.42
8.0.120.0050.00316.98
8.0.110.0030.00417.03
8.0.100.0040.00417.09
8.0.90.0000.00717.06
8.0.80.0090.01316.96
8.0.70.0000.00716.98
8.0.60.0000.00717.09
8.0.50.0070.00017.09
8.0.30.0120.00717.11
8.0.20.0080.01217.45
8.0.10.0000.00817.11
8.0.00.0140.00316.84
7.4.330.0030.00315.55
7.4.320.0040.00416.61
7.4.300.0030.00316.49
7.4.290.0030.00516.67
7.4.280.0040.00416.59
7.4.270.0030.00316.48
7.4.260.0060.00316.52
7.4.250.0000.00716.45
7.4.240.0030.00316.54
7.4.230.0040.00416.57
7.4.220.0110.00716.61
7.4.210.0120.00916.54
7.4.200.0000.00716.56
7.4.160.0030.01316.68
7.4.150.0090.00917.40
7.4.140.0120.01117.86
7.4.130.0130.00616.84
7.4.120.0100.00816.57
7.3.330.0000.00513.11
7.3.320.0000.00613.18
7.3.310.0040.00416.15
7.3.300.0060.00016.29
7.3.290.0050.00916.35
7.3.280.0090.00816.25
7.3.270.0160.00417.40
7.3.260.0090.00816.56
7.3.250.0170.00716.50
7.3.240.0100.00816.43
7.0.200.0370.00314.96

preferences:
53.04 ms | 401 KiB | 5 Q