3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime('2015-05-24 00:00:00'); $time = new \DateTime('0000-00-00 21:22:00'); $pickUpDateTime = new \DateTime(); $pickUpDateTime->setDate($date->format('Y'), $date->format('m'), $date->format('d')); $pickUpDateTime->setTime($time->format('H'), $time->format('i'), $time->format('s')); $now = new DateTime("now"); $interval = date_diff($now, $pickUpDateTime); if ( $v = $interval->h >= 1 ) echo $interval->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.0070.01416.88
8.3.50.0030.01216.36
8.3.40.0090.00918.77
8.3.30.0040.01118.79
8.3.20.0070.00720.21
8.3.10.0030.00523.65
8.3.00.0090.00023.61
8.2.180.0100.00616.63
8.2.170.0070.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00720.99
8.2.120.0040.00426.35
8.2.110.0060.00320.91
8.2.100.0040.00818.05
8.2.90.0060.00319.26
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00418.05
8.2.50.0030.00618.09
8.2.40.0040.00422.32
8.2.30.0080.00019.59
8.2.20.0070.00017.92
8.2.10.0040.00418.19
8.2.00.0070.00018.13
8.1.280.0140.00025.92
8.1.270.0040.00422.10
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0180.00422.42
8.1.230.0090.00317.71
8.1.220.0050.00317.80
8.1.210.0030.00618.77
8.1.200.0000.01217.47
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0000.00818.59
8.1.160.0000.00720.83
8.1.150.0050.00318.94
8.1.140.0090.00019.63
8.1.130.0070.00017.68
8.1.120.0040.00417.65
8.1.110.0070.00317.54
8.1.100.0040.00417.65
8.1.90.0000.00717.64
8.1.80.0030.00317.68
8.1.70.0000.00817.71
8.1.60.0000.00817.71
8.1.50.0060.00317.63
8.1.40.0110.00017.66
8.1.30.0060.00317.71
8.1.20.0050.00317.73
8.1.10.0000.00717.70
8.1.00.0000.00817.67
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.54
8.0.270.0070.00017.34
8.0.260.0070.00017.38
8.0.250.0030.00317.18
8.0.240.0000.00717.23
8.0.230.0040.00317.16
8.0.220.0030.00317.00
8.0.210.0040.00416.99
8.0.200.0070.00017.16
8.0.190.0090.00017.16
8.0.180.0030.00617.18
8.0.170.0000.00917.03
8.0.160.0040.00417.05
8.0.150.0030.00517.11
8.0.140.0070.00016.95
8.0.130.0000.00513.40
8.0.120.0040.00417.11
8.0.110.0000.00717.09
8.0.100.0040.00417.03
8.0.90.0050.00217.16
8.0.80.0060.01017.14
8.0.70.0000.00716.98
8.0.60.0040.00417.09
8.0.50.0040.00416.93
8.0.30.0110.00917.48
8.0.20.0050.01417.44
8.0.10.0040.00417.19
8.0.00.0110.01116.99
7.4.330.0000.00616.80
7.4.320.0060.00016.66
7.4.300.0030.00316.71
7.4.290.0070.00016.61
7.4.280.0040.00416.66
7.4.270.0070.00016.60
7.4.260.0030.00316.77
7.4.250.0050.00216.63
7.4.240.0070.00016.67
7.4.230.0000.00716.84
7.4.220.0130.00716.70
7.4.210.0090.00416.61
7.4.200.0080.00016.85
7.4.160.0030.01416.55
7.4.150.0060.01417.40
7.4.140.0180.01017.86
7.4.130.0130.00716.57
7.4.120.0090.00816.74
7.4.110.0140.00316.86
7.4.100.0130.00316.59
7.4.90.0090.00916.75
7.4.80.0130.00319.39
7.4.70.0070.01116.57
7.4.60.0040.01216.73
7.4.50.0090.00916.59
7.4.40.0070.01016.65
7.4.30.0090.00816.75
7.4.00.0130.00315.30
7.3.330.0030.00313.19
7.3.320.0050.00013.17
7.3.310.0030.00316.34
7.3.300.0040.00416.35
7.3.290.0090.00916.33
7.3.280.0110.00716.40
7.3.270.0140.00317.40
7.3.260.0100.01416.30
7.3.250.0110.01016.54
7.3.240.0040.01716.60
7.3.230.0090.00916.48
7.3.210.0070.01016.60
7.3.200.0030.01619.39
7.3.190.0000.01616.54
7.3.180.0110.00816.59
7.3.170.0170.00716.46
7.3.160.0060.00916.34
7.2.330.0100.01316.93
7.2.320.0090.01316.94
7.2.310.0060.01316.89
7.2.300.0000.01616.56
7.2.290.0090.00916.59
7.2.60.0060.00616.61
7.2.00.0060.00919.65
7.1.200.0110.00715.63
7.1.100.0100.00318.53
7.1.70.0090.00317.34
7.1.60.0130.01319.28
7.1.50.0040.00817.23
7.1.00.0000.08322.32
7.0.200.0040.00416.82
7.0.60.0070.07321.76
7.0.50.0100.07317.85
7.0.40.0070.04320.27
7.0.30.0400.08020.00
7.0.20.0230.06020.18
7.0.10.0030.04320.09
7.0.00.0070.08320.23
5.6.280.0000.04321.10
5.6.210.0070.07720.52
5.6.200.0000.05718.21
5.6.190.0170.06320.64
5.6.180.0170.05320.48
5.6.170.0330.07020.42
5.6.160.0000.04720.40
5.6.150.0070.08018.13
5.6.140.0030.08318.21
5.6.130.0030.04318.08
5.6.120.0070.05721.12
5.6.110.0100.08021.11
5.6.100.0070.07721.00
5.6.90.0070.07721.01
5.6.80.0170.05320.37
5.5.350.2900.03020.42
5.5.340.0000.04718.00
5.5.330.0100.08020.57
5.5.320.0600.05320.27
5.5.310.0270.08020.16
5.5.300.0100.07017.90
5.5.290.0070.08717.98
5.5.280.0030.06020.84
5.5.270.0100.06320.89
5.5.260.0170.05020.89
5.5.250.0070.08320.57
5.5.240.0170.08020.23

preferences:
45.78 ms | 400 KiB | 5 Q