3v4l.org

run code in 300+ PHP versions simultaneously
<?php // How many times per day, get from DB $userInput = 17; $SecondsPerDay = 60 * 60 * 24; $Frequency = (int) ($SecondsPerDay / $userInput) -1; $midnight = strtotime('today midnight'); // Get an array of times to execute $executeTimes = array(); for($time=$midnight; $time<=($midnight+$SecondsPerDay); $time+=$Frequency) $executeTimes[] = date("g:i a", $time); print_r($executeTimes);

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.4.120.0020.00724.14
8.4.110.0030.00522.60
8.4.100.0130.00818.86
8.4.90.0120.00918.86
8.4.80.0050.00318.93
8.4.70.0100.00618.16
8.4.60.0100.01019.02
8.4.50.0050.00518.80
8.4.40.0120.00919.69
8.4.30.0070.01317.98
8.4.20.0160.00318.11
8.4.10.0160.00017.54
8.3.250.0070.00218.86
8.3.240.0050.00517.04
8.3.230.0070.00416.75
8.3.220.0100.00819.07
8.3.210.0040.00416.75
8.3.200.0060.00516.91
8.3.190.0120.00717.25
8.3.180.0130.00616.48
8.3.170.0120.00617.28
8.3.160.0160.00316.97
8.3.150.0080.00020.74
8.3.140.0030.00516.87
8.3.130.0030.00618.70
8.3.120.0060.00318.90
8.3.110.0100.00020.94
8.3.100.0030.00624.06
8.3.90.0060.00326.77
8.3.80.0040.00416.63
8.3.70.0140.00716.75
8.3.60.0040.01418.53
8.3.50.0100.00722.13
8.3.40.0040.01119.10
8.3.30.0070.00718.87
8.3.20.0000.00720.39
8.3.10.0070.00021.71
8.3.00.0050.00319.01
8.2.290.0100.00820.71
8.2.280.0100.01118.53
8.2.270.0070.01117.30
8.2.260.0000.00816.57
8.2.250.0040.00418.54
8.2.240.0000.00817.22
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0060.00326.77
8.2.200.0090.00017.00
8.2.190.0120.00918.52
8.2.180.0030.01018.29
8.2.170.0150.00019.04
8.2.160.0100.01019.33
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0080.00021.27
8.2.110.0060.00321.11
8.2.100.0080.00319.79
8.2.90.0040.00419.37
8.2.80.0000.00817.97
8.2.70.0040.00417.88
8.2.60.0050.00318.05
8.2.50.0000.00818.10
8.2.40.0000.00820.50
8.2.30.0000.00719.29
8.2.20.0020.00517.92
8.2.10.0040.00418.26
8.2.00.0040.00418.19
8.1.330.0120.00621.88
8.1.320.0120.00716.41
8.1.310.0110.00720.20
8.1.300.0090.00920.04
8.1.290.0040.00830.84
8.1.280.0040.01125.92
8.1.270.0060.00323.60
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.20
8.1.230.0110.00017.89
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0050.00218.66
8.1.160.0040.00419.01
8.1.150.0000.00718.78
8.1.140.0000.00719.63
8.1.130.0000.00717.71
8.1.120.0000.00717.66
8.1.110.0050.00317.50
8.1.100.0050.00217.69
8.1.90.0050.00217.71
8.1.80.0050.00317.54
8.1.70.0030.00317.67
8.1.60.0000.00817.80
8.1.50.0000.00917.57
8.1.40.0040.00417.65
8.1.30.0040.00417.68
8.1.20.0000.00717.78
8.1.10.0030.00617.66
8.1.00.0000.00817.61
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0040.00418.57
8.0.270.0050.00217.10
8.0.260.0050.00317.38
8.0.250.0000.00717.16
8.0.240.0030.00517.16
8.0.230.0000.00717.13
8.0.220.0050.00217.11
8.0.210.0030.00317.15
8.0.200.0030.00317.20
8.0.190.0050.00217.04
8.0.180.0000.00717.06
8.0.170.0000.00916.97
8.0.160.0030.00317.01
8.0.150.0050.00216.95
8.0.140.0050.00216.89
8.0.130.0030.00313.41
8.0.120.0040.00417.03
8.0.110.0040.00417.04
8.0.100.0030.00517.07
8.0.90.0000.00717.08
8.0.80.0090.01217.00
8.0.70.0040.00416.91
8.0.60.0000.00817.00
8.0.50.0000.00716.91
8.0.30.0150.00617.26
8.0.20.0080.01017.44
8.0.10.0040.00417.04
8.0.00.0050.01616.67
7.4.330.0060.00015.08
7.4.320.0000.00616.64
7.4.300.0030.00316.79
7.4.290.0030.00316.62
7.4.280.0030.00516.68
7.4.270.0030.00316.60
7.4.260.0050.00516.61
7.4.250.0000.00716.71
7.4.240.0000.00716.75
7.4.230.0000.00616.54
7.4.220.0120.00616.74
7.4.210.0080.00616.77
7.4.200.0040.00416.72
7.4.160.0150.00016.71
7.4.150.0100.00717.40
7.4.140.0170.01617.86
7.4.130.0070.00916.77
7.4.120.0100.00816.64
7.4.110.0090.01216.67
7.4.100.0130.00416.69
7.4.90.0080.00816.66
7.4.80.0030.01419.39
7.4.70.0130.00316.73
7.4.60.0060.01016.57
7.4.50.0030.01216.43
7.4.40.0180.00316.68
7.4.30.0090.00816.76
7.4.00.0120.00315.21
7.3.330.0060.00013.20
7.3.320.0000.00613.20
7.3.310.0030.00316.32
7.3.300.0000.00716.46
7.3.290.0060.00816.44
7.3.280.0070.01016.49
7.3.270.0090.00917.40
7.3.260.0090.00916.68
7.3.250.0120.00816.59
7.3.240.0130.00416.57
7.3.230.0170.00016.91
7.3.210.0130.00316.69
7.3.200.0120.00616.47
7.3.190.0140.00916.69
7.3.180.0160.00416.61
7.3.170.0080.00916.76
7.3.160.0090.00616.55
7.2.330.0070.01016.90
7.2.320.0100.00616.58
7.2.310.0130.01016.80
7.2.300.0060.00916.71
7.2.290.0100.00716.94
7.2.00.0060.00619.38
7.1.100.0030.01018.14
7.1.70.0040.00417.12
7.1.60.0070.01819.90
7.1.00.0070.07322.36
7.0.200.0180.00714.95
7.0.100.0130.07319.96
7.0.90.0130.04019.94
7.0.80.0030.09719.88
7.0.70.0370.08719.89
7.0.60.0600.06019.95
7.0.50.0070.04720.25
7.0.40.0170.08020.14
7.0.30.0000.05720.08
7.0.20.0070.08320.08
7.0.10.0200.04020.18
7.0.00.0130.07720.16
5.6.280.0100.06320.92
5.6.250.0070.08320.48
5.6.240.0100.07720.64
5.6.230.0130.04320.74
5.6.220.0100.08020.67
5.6.210.0200.04720.64
5.6.200.0000.05321.04
5.6.190.0100.06721.03
5.6.180.0170.04721.17
5.6.170.0170.06720.94
5.6.160.0030.08021.01
5.6.150.0070.08721.16
5.6.140.0070.08721.02
5.6.130.0170.06321.00
5.6.120.0030.08020.95
5.6.110.0070.07721.02
5.6.100.0030.05021.02
5.6.90.0130.07720.89
5.6.80.0170.06320.40
5.6.70.0130.06720.47
5.6.60.0100.04020.29
5.6.50.0130.06720.34
5.6.40.0170.07320.37
5.6.30.0070.08020.31
5.6.20.0030.07320.43
5.6.10.0000.04320.38
5.6.00.0170.07020.47
5.5.380.0000.08020.41
5.5.370.0070.05020.44
5.5.360.0100.07320.34
5.5.350.0000.06020.40
5.5.340.0070.03720.88
5.5.330.0030.07720.91
5.5.320.0030.09020.88
5.5.310.0100.08320.79
5.5.300.0100.08020.82
5.5.290.0070.06020.77
5.5.280.0100.07720.63
5.5.270.0030.04320.87
5.5.260.0070.04020.78
5.5.250.0170.07020.56
5.5.240.0070.07720.00
5.5.230.0030.07320.23
5.5.220.0030.08320.29
5.5.210.0030.04720.24
5.5.200.0070.07720.25
5.5.190.0030.08320.17
5.5.180.0030.06720.07
5.5.160.0130.07319.98
5.5.150.0170.06720.20
5.5.140.0070.03320.07
5.5.130.0170.06720.25
5.5.120.0070.05020.14
5.5.110.0070.07720.11
5.5.100.0030.08320.05
5.5.90.0070.05019.96
5.5.80.0100.07720.15
5.5.70.0100.06720.08
5.5.60.0030.04020.05
5.5.50.0130.07320.14
5.5.40.0070.08019.95
5.5.30.0070.04720.13
5.5.20.0070.08020.04
5.5.10.0030.06720.11
5.5.00.0100.08020.02

preferences:
27.62 ms | 403 KiB | 5 Q