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->d >= 1 ) echo pluralize( $interval->d, 'day' ) ;

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.0180.00417.00
8.3.50.0090.00616.42
8.3.40.0040.01119.22
8.3.30.0140.00019.06
8.3.20.0120.00420.10
8.3.10.0060.00323.66
8.3.00.0030.00623.52
8.2.180.0110.00718.66
8.2.170.0100.01022.96
8.2.160.0100.00320.22
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.93
8.2.120.0070.00026.35
8.2.110.0000.00920.97
8.2.100.0070.00418.05
8.2.90.0040.00419.35
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0040.00418.16
8.2.50.0050.00318.09
8.2.40.0030.00520.55
8.2.30.0040.00419.59
8.2.20.0080.00017.88
8.2.10.0040.00418.17
8.2.00.0000.00718.14
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0030.00528.09
8.1.250.0000.00828.09
8.1.240.0040.00419.15
8.1.230.0080.00418.87
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0060.00317.50
8.1.190.0080.00017.50
8.1.180.0040.00418.10
8.1.170.0080.00018.79
8.1.160.0000.00720.81
8.1.150.0030.00619.02
8.1.140.0040.00419.71
8.1.130.0040.00417.77
8.1.120.0070.00017.63
8.1.110.0030.00617.67
8.1.100.0000.00717.63
8.1.90.0000.00817.63
8.1.80.0000.00717.59
8.1.70.0080.00017.68
8.1.60.0040.00417.70
8.1.50.0000.00817.64
8.1.40.0040.00717.71
8.1.30.0000.00917.76
8.1.20.0040.00417.81
8.1.10.0040.00417.71
8.1.00.0000.00817.69
8.0.300.0070.00018.77
8.0.290.0030.00617.00
8.0.280.0000.00718.50
8.0.270.0000.00717.25
8.0.260.0000.00617.36
8.0.250.0030.00317.15
8.0.240.0030.00317.27
8.0.230.0040.00417.14
8.0.220.0030.00317.15
8.0.210.0050.00217.07
8.0.200.0000.00717.18
8.0.190.0040.00417.10
8.0.180.0040.00417.11
8.0.170.0040.00417.25
8.0.160.0030.00317.14
8.0.150.0030.00316.96
8.0.140.0000.00817.12
8.0.130.0030.00313.52
8.0.120.0000.00817.04
8.0.110.0000.00817.17
8.0.100.0070.00017.13
8.0.90.0080.00016.99
8.0.80.0120.00317.17
8.0.70.0050.00317.12
8.0.60.0080.00017.06
8.0.50.0040.00417.23
8.0.30.0140.00617.21
8.0.20.0100.01217.42
8.0.10.0000.00817.26
8.0.00.0090.01316.90
7.4.330.0000.00516.88
7.4.320.0030.00316.61
7.4.300.0000.00716.55
7.4.290.0030.00316.67
7.4.280.0030.00516.71
7.4.270.0030.00516.77
7.4.260.0000.00716.74
7.4.250.0040.00416.62
7.4.240.0000.00716.73
7.4.230.0000.00716.83
7.4.220.0100.01016.75
7.4.210.0060.01216.73
7.4.200.0040.00216.76
7.4.160.0040.01117.01
7.4.150.0100.00917.40
7.4.140.0210.00517.86
7.4.130.0090.01216.63
7.4.120.0130.00716.76
7.4.110.0120.00616.64
7.4.100.0070.01016.80
7.4.90.0110.00616.56
7.4.80.0130.01019.39
7.4.70.0040.01316.73
7.4.60.0070.01016.73
7.4.50.0030.01016.44
7.4.40.0090.00816.60
7.4.30.0090.00616.72
7.4.00.0090.00615.36
7.3.330.0000.00613.37
7.3.320.0030.00313.25
7.3.310.0070.00016.42
7.3.300.0070.00016.38
7.3.290.0090.00916.42
7.3.280.0070.00916.45
7.3.270.0110.00717.40
7.3.260.0130.01016.74
7.3.240.0090.01416.57
7.3.230.0100.00916.68
7.3.210.0090.00616.63
7.3.200.0070.01119.39
7.3.190.0030.01316.73
7.3.180.0130.00616.61
7.3.170.0060.01216.43
7.3.160.0080.00816.59
7.3.10.0040.01216.24
7.3.00.0130.00316.76
7.2.330.0090.00916.79
7.2.320.0030.01916.91
7.2.310.0040.01916.75
7.2.300.0060.01216.55
7.2.290.0080.00816.75
7.2.130.0080.01016.64
7.2.120.0090.00616.59
7.2.110.0140.00416.87
7.2.100.0050.01016.69
7.2.90.0090.00916.99
7.2.80.0130.00916.68
7.2.70.0140.00016.75
7.2.60.0020.01117.01
7.2.50.0090.00616.96
7.2.40.0060.00816.64
7.2.30.0030.00617.00
7.2.20.0070.00717.11
7.2.10.0070.00716.95
7.2.00.0030.00818.21
7.1.250.0140.00315.96
7.1.200.0040.00815.64
7.1.100.0070.01218.49
7.1.70.0030.00717.37
7.1.60.0140.01119.28
7.1.50.0000.02117.23
7.1.00.0030.07322.27
7.0.200.0000.00817.04
7.0.60.0130.07021.82
7.0.50.0100.05717.81
7.0.40.0070.04720.09
7.0.30.0330.04720.09
7.0.20.0300.07320.00
7.0.10.0030.06319.99
7.0.00.0270.06720.04
5.6.280.0070.04321.01
5.6.210.0070.07720.76
5.6.200.0070.05718.13
5.6.190.0000.06720.41
5.6.180.0230.07020.42
5.6.170.0230.04720.27
5.6.160.0100.06020.61
5.6.150.0030.04718.18
5.6.140.0030.08718.12
5.6.130.0030.05018.11
5.6.120.0070.04320.89
5.6.110.0100.08021.11
5.6.100.0070.08020.99
5.6.90.0100.06720.99
5.6.80.0130.06720.52
5.5.350.2500.03720.49
5.5.340.0100.03718.02
5.5.330.0070.08320.15
5.5.320.0400.04720.13
5.5.310.0230.07720.29
5.5.300.0130.04717.95
5.5.290.0130.07317.92
5.5.280.0130.07720.87
5.5.270.0070.04320.97
5.5.260.0130.08320.73
5.5.250.0000.08720.77
5.5.240.0100.08020.15

preferences:
66.39 ms | 400 KiB | 5 Q