3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dailyHours = 7.5; $baseDate = new DateTime('2017-01-01', new DateTimezone('UTC')); $endDate = clone $baseDate; for($i = 1; $i <= 30; ++$i) { $m = $i*15; $duration = new DateInterval("PT{$m}M"); $endDate->add($duration); } $totalDuration = $baseDate->diff($endDate); echo $totalDuration->format('%a days, %h hours, %i minutes'); $totalHours = $totalDuration->format('%a') * 7.5 + $totalDuration->format('%h'); $totalMinutes = $totalDuration->format('%i'); var_dump($totalHours, $totalMinutes);

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.00416.63
8.3.50.0110.00316.29
8.3.40.0150.00018.70
8.3.30.0110.00318.83
8.3.20.0000.00820.34
8.3.10.0040.00423.70
8.3.00.0040.00417.78
8.2.180.0100.01316.88
8.2.170.0110.00422.96
8.2.160.0140.00020.47
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00820.52
8.2.120.0040.00426.35
8.2.110.0000.00921.11
8.2.100.0090.00318.16
8.2.90.0030.00621.07
8.2.80.0080.00017.97
8.2.70.0040.00418.04
8.2.60.0040.00418.22
8.2.50.0040.00418.10
8.2.40.0040.00422.20
8.2.30.0030.00520.99
8.2.20.0040.00418.06
8.2.10.0080.00018.13
8.2.00.0040.00418.22
8.1.280.0110.00425.92
8.1.270.0040.00423.96
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0050.00522.24
8.1.230.0070.00422.13
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0000.00917.35
8.1.190.0040.00417.35
8.1.180.0050.00218.10
8.1.170.0040.00418.64
8.1.160.0000.00719.02
8.1.150.0000.00718.78
8.1.140.0040.00419.53
8.1.130.0030.00618.79
8.1.120.0040.00417.57
8.1.110.0050.00317.56
8.1.100.0050.00217.44
8.1.90.0020.00517.48
8.1.80.0040.00417.54
8.1.70.0030.00317.43
8.1.60.0110.00017.52
8.1.50.0000.00817.64
8.1.40.0000.00817.59
8.1.30.0030.00617.72
8.1.20.0050.00217.55
8.1.10.0060.00317.66
8.1.00.0000.00717.58
8.0.300.0000.01019.88
8.0.290.0040.00416.88
8.0.280.0050.00218.46
8.0.270.0030.00317.18
8.0.260.0000.00716.93
8.0.250.0070.00017.05
8.0.240.0000.00917.09
8.0.230.0040.00417.06
8.0.220.0070.00016.98
8.0.210.0040.00417.00
8.0.200.0030.00317.03
8.0.190.0040.00417.04
8.0.180.0040.00417.11
8.0.170.0000.00717.09
8.0.160.0030.00517.13
8.0.150.0040.00417.05
8.0.140.0040.00417.12
8.0.130.0000.00513.56
8.0.120.0040.00417.06
8.0.110.0000.00716.88
8.0.100.0000.00816.95
8.0.90.0070.00016.86
8.0.80.0100.00617.03
8.0.70.0040.00417.15
8.0.60.0050.00216.96
8.0.50.0000.00717.11
8.0.30.0130.00717.14
8.0.20.0120.00817.40
8.0.10.0040.00416.98
8.0.00.0140.00316.99
7.4.330.0050.00015.55
7.4.320.0000.00616.63
7.4.300.0060.00016.52
7.4.290.0030.00616.52
7.4.280.0030.00516.53
7.4.270.0000.00716.61
7.4.260.0000.00716.59
7.4.250.0000.00716.49
7.4.240.0040.00416.58
7.4.230.0070.00016.69
7.4.220.0120.01216.56
7.4.210.0080.00616.63
7.4.200.0000.00716.59
7.4.160.0060.01216.75
7.4.150.0030.01617.40
7.4.140.0110.00717.86
7.4.130.0130.00516.73
7.4.120.0100.00816.54
7.4.110.0070.01116.43
7.4.100.0070.01116.51
7.4.90.0150.00916.55
7.4.80.0100.01319.39
7.4.70.0060.00916.55
7.4.60.0080.00816.39
7.4.50.0130.00316.46
7.4.40.0090.01216.50
7.4.30.0170.00716.46
7.4.00.0050.01115.02
7.3.330.0050.00013.36
7.3.320.0050.00013.30
7.3.310.0000.00716.50
7.3.300.0070.00016.48
7.3.290.0050.00216.45
7.3.280.0080.00916.45
7.3.270.0060.01417.40
7.3.260.0080.00816.42
7.3.250.0110.01016.57
7.3.240.0170.00016.62
7.3.230.0130.01016.58
7.3.210.0060.01116.56
7.3.200.0030.01416.24
7.3.190.0100.00716.54
7.3.180.0120.00316.47
7.3.170.0080.00816.34
7.3.160.0150.00616.57
7.3.120.0100.00615.17
7.3.110.0110.00414.82
7.3.100.0090.00615.19
7.3.90.0030.01215.09
7.3.80.0040.01215.04
7.3.70.0030.01414.73
7.3.60.0040.00815.12
7.3.50.0040.01114.95
7.3.40.0040.00415.05
7.3.30.0100.00714.89
7.3.20.0120.00316.80
7.3.10.0090.00516.80
7.3.00.0080.00516.72
7.2.330.0110.00616.68
7.2.320.0000.01816.55
7.2.310.0140.00916.68
7.2.300.0160.00916.96
7.2.290.0120.00416.96
7.2.250.0110.00715.41
7.2.240.0030.01315.03
7.2.230.0030.01015.11
7.2.220.0060.00615.11
7.2.210.0060.00915.08
7.2.200.0040.01115.10
7.2.190.0000.01115.29
7.2.180.0000.01515.06
7.2.170.0030.00915.29
7.2.130.0050.00516.89
7.2.120.0090.00617.16
7.2.110.0030.00616.82
7.2.100.0020.00917.03
7.2.90.0100.00317.18
7.2.80.0050.00517.11
7.2.70.0070.00717.05
7.2.60.0000.01217.11
7.2.50.0110.00317.08
7.2.40.0060.00917.17
7.2.30.0060.00617.09
7.2.20.0090.00317.17
7.2.10.0070.00717.08
7.2.00.0030.01018.35
7.1.330.0070.00715.84
7.1.320.0030.00916.13
7.1.310.0030.00915.82
7.1.300.0030.01016.05
7.1.290.0000.01615.79
7.1.280.0040.00715.93
7.1.270.0090.00616.04
7.1.260.0060.00615.66
7.1.250.0080.00415.84
7.1.200.0070.00715.97
7.1.100.0000.01118.39
7.1.70.0030.01517.37
7.1.60.0170.01635.18
7.1.50.0150.01235.09
7.1.40.0220.01034.32
7.1.30.0190.01634.63
7.1.20.0180.01734.61
7.1.10.0000.01516.65
7.1.00.0030.01616.84
7.0.200.0000.01716.81
7.0.190.0030.01116.82
7.0.180.0130.00316.37
7.0.170.0100.00716.25
7.0.160.0090.00916.25
7.0.150.0040.01016.29
7.0.140.0080.01016.55
7.0.130.0030.01216.66
7.0.120.0050.01016.75
7.0.110.0070.01016.43
7.0.100.0040.01216.40
7.0.90.0000.01916.40
7.0.80.0030.01216.21
7.0.70.0090.00616.40
7.0.60.0090.00616.33
7.0.50.0040.01116.32
7.0.40.0040.01116.58
7.0.30.0000.01216.45
7.0.20.0090.00616.36
7.0.10.0030.01016.37
7.0.00.0090.00616.23

preferences:
47.37 ms | 401 KiB | 5 Q