3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ranges = [ ['from' => '9:00', 'to' => '9:45'], ['from' => '9:55', 'to' => '10:20'], ['from' => '10:30', 'to' => '11:00'], ]; if (!isset($ranges[0]['from'], $ranges[0]['to'])) { throw new Exception('insufficient business hours data'); } printf('Open hours today: %s - %s', $ranges[0]['from'], $ranges[array_key_last($ranges)]['to']);

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.5.60.0030.00416.79
8.5.50.0040.00416.76
8.5.30.0080.00919.01
8.5.20.0100.00719.69
8.5.10.0110.00716.57
8.5.00.0090.01419.77
8.4.210.0060.00321.40
8.4.180.0120.01019.80
8.4.170.0130.00923.77
8.4.160.0110.01125.73
8.4.150.0070.00416.89
8.4.140.0130.00817.34
8.4.130.0140.00617.71
8.4.120.0120.00820.43
8.4.110.0030.00618.95
8.4.100.0060.00517.69
8.4.90.0110.01017.55
8.4.80.0130.00717.88
8.4.70.0080.00317.91
8.4.60.0130.00818.41
8.4.50.0140.00617.63
8.4.40.0120.00617.72
8.4.30.0030.01618.70
8.4.20.0070.01019.55
8.4.10.0050.00519.56
8.3.300.0150.00520.79
8.3.290.0150.00720.68
8.3.280.0100.01018.46
8.3.270.0120.00916.64
8.3.260.0130.00616.57
8.3.250.0040.00519.16
8.3.240.0100.01016.38
8.3.230.0120.00716.44
8.3.220.0120.00617.29
8.3.210.0110.00918.55
8.3.200.0020.00716.71
8.3.190.0050.00317.34
8.3.180.0120.00518.51
8.3.170.0040.00416.23
8.3.160.0060.01316.27
8.3.150.0130.00616.99
8.3.140.0050.00316.43
8.3.130.0100.00316.68
8.3.120.0060.00318.73
8.3.110.0060.00320.94
8.3.100.0070.00716.65
8.3.90.0040.00426.77
8.3.80.0090.00016.63
8.3.70.0140.00416.58
8.3.60.0070.00716.75
8.3.50.0090.00618.26
8.3.40.0040.01419.21
8.3.30.0100.00718.59
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.300.0140.00818.06
8.2.290.0060.00219.11
8.2.280.0060.00418.37
8.2.270.0110.00717.32
8.2.260.0140.00318.67
8.2.250.0040.01416.74
8.2.240.0090.00017.00
8.2.230.0040.01122.58
8.2.220.0160.00024.06
8.2.210.0040.00426.77
8.2.200.0070.00316.75
8.2.190.0160.00316.58
8.2.180.0090.00625.92
8.2.170.0030.01722.96
8.2.160.0160.00322.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0000.01018.97
8.2.100.0060.00917.91
8.2.90.0000.00818.22
8.2.80.0040.00419.79
8.2.70.0050.00317.75
8.2.60.0040.00417.75
8.2.50.0000.00817.74
8.2.40.0040.00419.47
8.2.30.0000.00717.66
8.2.20.0040.00419.53
8.2.10.0040.00417.59
8.2.00.0040.00419.29
8.1.340.0120.00821.70
8.1.330.0130.00616.37
8.1.320.0110.01116.12
8.1.310.0090.00016.55
8.1.300.0000.00817.88
8.1.290.0060.00330.84
8.1.280.0030.01225.92
8.1.270.0060.00323.86
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00022.73
8.1.230.0030.00920.97
8.1.220.0040.00417.76
8.1.210.0060.00318.88
8.1.200.0040.00417.23
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0040.00417.66
8.1.160.0000.00818.84
8.1.150.0040.00418.63
8.1.140.0000.00717.55
8.1.130.0030.00318.89
8.1.120.0070.00017.46
8.1.110.0000.00717.34
8.1.100.0000.00717.33
8.1.90.0070.00017.45
8.1.80.0090.00017.37
8.1.70.0000.00717.36
8.1.60.0030.00617.57
8.1.50.0040.00417.41
8.1.40.0080.00017.53
8.1.30.0070.00317.57
8.1.20.0030.00517.62
8.1.10.0000.01017.43
8.1.00.0050.00517.40
8.0.300.0050.00319.86
8.0.290.0040.00416.75
8.0.280.0000.00718.07
8.0.270.0040.00416.74
8.0.260.0000.00618.48
8.0.250.0040.00416.86
8.0.240.0000.00716.91
8.0.230.0040.00316.99
8.0.220.0030.00316.88
8.0.210.0060.00316.92
8.0.200.0000.00916.95
8.0.190.0040.00416.92
8.0.180.0040.00416.96
8.0.170.0030.00616.96
8.0.160.0000.00716.87
8.0.150.0070.00016.85
8.0.140.0040.00316.84
8.0.130.0050.00313.26
8.0.120.0040.00413.34
8.0.110.0060.00613.29
8.0.100.0070.00513.26
8.0.90.0070.00713.23
8.0.80.0090.00413.35
8.0.70.0040.00813.25
8.0.60.0080.00413.27
8.0.50.0090.00413.21
8.0.30.0100.00313.23
8.0.20.0040.00813.29
8.0.10.0060.00613.32
8.0.00.0060.00313.38
7.4.330.0030.00315.55
7.4.320.0030.00316.52
7.4.300.0060.00016.52
7.4.290.0030.00516.43
7.4.280.0040.00416.61
7.4.270.0040.00416.60
7.4.260.0000.00513.25
7.4.250.0120.00213.25
7.4.240.0100.00513.29
7.4.230.0080.00613.29
7.4.220.0070.00713.14
7.4.210.0130.00013.24
7.4.200.0050.00913.23
7.4.190.0140.00013.42
7.4.180.0090.00513.30
7.4.160.0090.00513.32
7.4.150.0090.00413.29
7.4.140.0080.00613.21
7.4.130.0100.00413.16
7.4.120.0080.00613.24
7.4.110.0140.00013.11
7.4.100.0110.00313.26
7.4.90.0110.00313.16
7.4.80.0050.00913.13
7.4.70.0100.00313.11
7.4.60.0040.00913.13
7.4.50.0070.00613.08
7.4.40.0090.00313.05
7.4.30.0000.00613.20
7.4.20.0040.00913.21
7.4.10.0080.00413.21
7.4.00.0100.00213.16
7.3.330.0000.00716.10
7.3.320.0060.00313.11
7.3.310.0090.00013.03
7.3.300.0000.00513.28
7.3.290.0030.00313.31
7.3.280.0060.00313.09
7.3.270.0110.00013.14
7.3.260.0100.00012.98
7.3.250.0110.00313.21
7.3.240.0040.00813.08
7.3.230.0090.00513.18
7.3.220.0090.00612.97
7.3.210.0100.00313.06
7.3.200.0090.00312.87
7.3.190.0090.00312.93
7.3.180.0060.00612.83
7.3.170.0000.01412.82
7.3.160.0080.00513.03
7.3.150.0040.00812.97
7.3.140.0100.00413.04
7.3.130.0080.00512.96
7.3.120.0120.00013.01
7.3.110.0100.00413.09
7.3.100.0040.00813.02
7.3.90.0070.00513.29
7.3.80.0000.00912.96
7.3.70.0090.00313.09
7.3.60.0070.00313.29
7.3.50.0060.00612.99
7.3.40.0070.00713.12
7.3.30.0080.00413.16
7.3.20.0080.00514.94
7.3.10.0120.00014.93
7.3.00.0120.00414.88

preferences:
57.21 ms | 1388 KiB | 5 Q