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); echo $interval->format('%R%a days');

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.0090.01316.61
8.3.50.0140.01021.11
8.3.40.0040.01118.84
8.3.30.0140.00018.66
8.3.20.0100.00320.16
8.3.10.0000.00923.60
8.3.00.0050.00321.69
8.2.180.0160.00318.54
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00321.06
8.2.120.0000.00726.35
8.2.110.0080.00320.57
8.2.100.0070.00417.93
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0030.00517.73
8.2.60.0000.00817.93
8.2.50.0080.00018.09
8.2.40.0040.00422.18
8.2.30.0050.00319.57
8.2.20.0040.00417.94
8.2.10.0050.00218.13
8.2.00.0040.00418.13
8.1.280.0100.01025.92
8.1.270.0040.00424.00
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0080.00020.77
8.1.230.0040.00822.82
8.1.220.0080.00017.79
8.1.210.0000.00918.77
8.1.200.0040.00417.35
8.1.190.0060.00317.48
8.1.180.0040.00418.10
8.1.170.0030.00618.62
8.1.160.0000.00720.71
8.1.150.0040.00418.80
8.1.140.0000.00717.61
8.1.130.0030.00317.62
8.1.120.0000.00717.62
8.1.110.0040.00717.58
8.1.100.0030.00417.50
8.1.90.0000.00817.63
8.1.80.0020.00517.55
8.1.70.0000.00817.56
8.1.60.0040.00417.59
8.1.50.0040.00417.63
8.1.40.0000.01217.48
8.1.30.0000.00817.66
8.1.20.0040.00417.73
8.1.10.0000.00717.75
8.1.00.0040.00417.68
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0030.00318.52
8.0.270.0030.00516.93
8.0.260.0080.00017.23
8.0.250.0080.00017.18
8.0.240.0000.00717.20
8.0.230.0070.00017.09
8.0.220.0000.00717.06
8.0.210.0000.00716.90
8.0.200.0080.00016.98
8.0.190.0040.00417.07
8.0.180.0000.00717.07
8.0.170.0040.00417.06
8.0.160.0040.00416.93
8.0.150.0070.00017.00
8.0.140.0000.00716.96
8.0.130.0000.00613.32
8.0.120.0030.00517.11
8.0.110.0030.00316.98
8.0.100.0040.00416.98
8.0.90.0080.00016.86
8.0.80.0120.00316.95
8.0.70.0000.00717.12
8.0.60.0050.00317.04
8.0.50.0050.00316.91
8.0.30.0130.00317.19
8.0.20.0120.00817.40
8.0.10.0000.00716.95
8.0.00.0080.01316.88
7.4.330.0050.00016.77
7.4.320.0030.00316.69
7.4.300.0080.00016.57
7.4.290.0030.00316.69
7.4.280.0040.00416.65
7.4.270.0030.00316.58
7.4.260.0000.00716.66
7.4.250.0040.00416.66
7.4.240.0000.00716.67
7.4.230.0050.00216.75
7.4.220.0120.00616.45
7.4.210.0090.00616.72
7.4.200.0040.00416.78
7.4.160.0090.00616.75
7.4.150.0110.01117.40
7.4.140.0140.00817.86
7.4.130.0090.00916.74
7.4.120.0100.01016.52
7.4.110.0070.01116.59
7.4.100.0070.01116.51
7.4.90.0030.01416.73
7.4.80.0060.01219.39
7.4.70.0110.00716.75
7.4.60.0100.00716.72
7.4.50.0030.01016.53
7.4.40.0060.01116.70
7.4.30.0030.01316.52
7.4.00.0090.00614.91
7.3.330.0070.00013.10
7.3.320.0000.00513.12
7.3.310.0030.00316.15
7.3.300.0040.00416.15
7.3.290.0080.00916.26
7.3.280.0070.01016.31
7.3.270.0160.00917.40
7.3.260.0180.00616.62
7.3.240.0100.01216.48
7.3.230.0170.00016.42
7.3.210.0140.00216.48
7.3.200.0130.00619.39
7.3.190.0250.02616.46
7.3.180.0110.00716.63
7.3.170.0120.01216.57
7.3.160.0120.00416.45
7.3.120.0060.01014.83
7.3.110.0020.01214.92
7.3.100.0050.00714.79
7.3.90.0090.00614.86
7.3.80.0070.00814.57
7.3.70.0050.01014.97
7.3.60.0070.00514.97
7.3.50.0040.00814.82
7.3.40.0020.01114.89
7.3.30.0070.00814.76
7.3.20.0040.01116.71
7.3.10.0080.00916.71
7.3.00.0040.01116.72
7.2.330.0100.00716.89
7.2.320.0060.01816.89
7.2.310.0100.01016.64
7.2.300.0170.00016.59
7.2.290.0130.00316.83
7.2.250.0090.01215.13
7.2.240.0090.00615.31
7.2.230.0020.01214.97
7.2.220.0030.01515.24
7.2.210.0100.00515.29
7.2.200.0060.00915.06
7.2.190.0090.00315.03
7.2.180.0050.00615.13
7.2.170.0070.01014.91
7.2.160.0080.00314.88
7.2.150.0060.00916.89
7.2.140.0140.00016.82
7.2.130.0070.01117.02
7.2.120.0070.00716.98
7.2.110.0090.00617.05
7.2.100.0090.00916.95
7.2.90.0090.00616.93
7.2.80.0070.01117.01
7.2.70.0040.01116.88
7.2.60.0120.00016.93
7.2.50.0060.00917.15
7.2.40.0050.00817.11
7.2.30.0090.00617.23
7.2.20.0000.01517.13
7.2.10.0000.01216.97
7.2.00.0060.00918.30
7.1.330.0070.00515.80
7.1.320.0060.00615.77
7.1.310.0070.00916.06
7.1.300.0030.00915.95
7.1.290.0070.00615.78
7.1.280.0080.00615.74
7.1.270.0060.00815.69
7.1.260.0100.00515.73
7.1.250.0070.00415.83
7.1.200.0070.00715.86
7.1.100.0030.00918.21
7.1.70.0000.00817.31
7.1.60.0100.01419.28
7.1.50.0120.00917.13
7.1.00.0000.08022.54
7.0.200.0000.00916.75
7.0.60.0100.07721.67
7.0.50.0100.04717.91
7.0.40.0030.07320.11
7.0.30.0500.06320.00
7.0.20.0370.07320.33
7.0.10.0030.04320.19
7.0.00.0130.07720.22
5.6.280.0000.03321.10
5.6.210.0000.08720.69
5.6.200.0070.06718.08
5.6.190.0030.05320.60
5.6.180.0330.04720.61
5.6.170.0300.04720.49
5.6.160.0070.08320.61
5.6.150.0130.07318.11
5.6.140.0030.08718.21
5.6.130.0000.05718.18
5.6.120.0130.05021.05
5.6.110.0070.09321.11
5.6.100.0070.07720.97
5.6.90.0070.06020.95
5.6.80.0070.08320.39
5.5.350.1930.04020.46
5.5.340.0000.04717.91
5.5.330.0070.08320.19
5.5.320.0530.07320.34
5.5.310.0270.07020.24
5.5.300.0000.08317.98
5.5.290.0070.08017.91
5.5.280.0030.05020.89
5.5.270.0070.08320.89
5.5.260.0100.06720.84
5.5.250.0100.06020.76
5.5.240.0070.08020.26

preferences:
58.24 ms | 401 KiB | 5 Q