3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pluralize( $count, $text ) { return $count . ( ( $count == 1 ) ? ( " $text" ) : ( " ${text}s" ) ); } $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.0110.01116.88
8.3.50.0130.00521.13
8.3.40.0070.01419.10
8.3.30.0000.01418.92
8.3.20.0070.00020.34
8.3.10.0040.00423.48
8.3.00.0040.00423.67
8.2.180.0090.00618.21
8.2.170.0100.00722.96
8.2.160.0110.00420.55
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00421.12
8.2.120.0000.00726.35
8.2.110.0090.00020.96
8.2.100.0000.01218.16
8.2.90.0080.00019.23
8.2.80.0030.00517.97
8.2.70.0060.00317.88
8.2.60.0040.00418.05
8.2.50.0060.00318.09
8.2.40.0030.00622.32
8.2.30.0050.00219.40
8.2.20.0040.00417.76
8.2.10.0070.00018.14
8.2.00.0000.00717.98
8.1.280.0140.00025.92
8.1.270.0060.00323.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0070.00417.83
8.1.220.0000.00917.79
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0000.00818.66
8.1.160.0000.00820.84
8.1.150.0030.00519.02
8.1.140.0060.00319.71
8.1.130.0030.00317.82
8.1.120.0070.00017.60
8.1.110.0060.00317.54
8.1.100.0040.00417.66
8.1.90.0000.00817.67
8.1.80.0070.00017.68
8.1.70.0050.00317.70
8.1.60.0000.00817.71
8.1.50.0040.00417.54
8.1.40.0000.01117.65
8.1.30.0030.00617.79
8.1.20.0040.00417.80
8.1.10.0000.00717.63
8.1.00.0030.00617.74
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0000.00718.44
8.0.270.0080.00017.33
8.0.260.0030.00317.30
8.0.250.0000.00717.17
8.0.240.0030.00317.17
8.0.230.0070.00017.14
8.0.220.0030.00316.96
8.0.210.0030.00317.08
8.0.200.0070.00017.12
8.0.190.0040.00417.05
8.0.180.0000.00717.03
8.0.170.0040.00417.16
8.0.160.0000.00717.12
8.0.150.0040.00417.14
8.0.140.0080.00017.05
8.0.130.0060.00013.44
8.0.120.0050.00317.05
8.0.110.0040.00417.03
8.0.100.0020.00517.04
8.0.90.0000.00817.06
8.0.80.0090.00617.14
8.0.70.0050.00217.14
8.0.60.0000.00717.09
8.0.50.0000.00717.13
8.0.30.0070.01417.08
8.0.20.0100.00917.40
8.0.10.0000.00817.16
8.0.00.0120.01316.94
7.4.330.0020.00216.69
7.4.320.0030.00316.70
7.4.300.0050.00516.66
7.4.290.0030.00316.72
7.4.280.0000.00816.57
7.4.270.0000.00716.65
7.4.260.0030.00516.64
7.4.250.0000.00816.69
7.4.240.0000.00716.72
7.4.230.0030.00316.77
7.4.220.0120.01216.84
7.4.210.0070.01016.74
7.4.200.0000.00716.49
7.4.160.0120.00616.60
7.4.150.0150.00317.40
7.4.140.0120.01117.86
7.4.130.0140.00416.82
7.4.120.0110.00716.78
7.4.110.0030.01416.61
7.4.100.0120.00416.58
7.4.90.0120.00616.59
7.4.80.0090.00919.39
7.4.70.0160.00516.67
7.4.60.0100.00616.73
7.4.50.0090.00616.56
7.4.40.0150.00316.71
7.4.30.0030.01316.73
7.4.00.0140.00414.93
7.3.330.0030.00313.34
7.3.320.0060.00013.56
7.3.310.0000.00716.57
7.3.300.0040.00416.37
7.3.290.0070.00716.49
7.3.280.0090.00916.52
7.3.270.0080.00817.40
7.3.260.0140.01116.67
7.3.240.0120.00716.66
7.3.230.0130.01016.58
7.3.210.0070.01016.57
7.3.200.0170.00819.39
7.3.190.0130.00316.50
7.3.180.0030.01416.84
7.3.170.0090.01516.66
7.3.160.0080.00816.60
7.2.330.0150.00316.61
7.2.320.0110.00716.78
7.2.310.0070.01016.64
7.2.300.0130.00316.98
7.2.290.0120.01016.77
7.2.60.0120.00817.03
7.2.00.0040.00719.26
7.1.200.0140.00315.54
7.1.100.0070.00418.14
7.1.70.0070.00017.54
7.1.60.0110.01519.28
7.1.50.0150.00717.04
7.1.00.0000.08022.32
7.0.200.0070.00316.98
7.0.60.0070.08021.83
7.0.50.0100.05717.84
7.0.40.0030.08320.14
7.0.30.0500.06720.34
7.0.20.0270.08020.26
7.0.10.0170.04720.19
7.0.00.0130.03320.11
5.6.280.0030.04020.86
5.6.210.0070.04020.73
5.6.200.0070.07718.19
5.6.190.0030.06720.52
5.6.180.0270.06720.49
5.6.170.0300.06020.57
5.6.160.0030.06020.52
5.6.150.0070.07718.16
5.6.140.0130.07318.15
5.6.130.0070.08018.19
5.6.120.0170.07321.14
5.6.110.0200.06721.10
5.6.100.0070.07321.11
5.6.90.0030.09721.02
5.6.80.0100.06720.49
5.5.350.2600.03320.39
5.5.340.0030.03717.94
5.5.330.0070.08720.44
5.5.320.0670.06320.30
5.5.310.0200.06320.27
5.5.300.0030.05718.03
5.5.290.0170.07717.95
5.5.280.0100.06020.77
5.5.270.0100.08320.87
5.5.260.0000.08320.68
5.5.250.0100.07720.69
5.5.240.0170.06720.04

preferences:
40.07 ms | 401 KiB | 5 Q