3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = (new DateTime())->setTime(0,0,30); $ts = strftime('%Y-%m-%d %H:%M:00', $now); $exists = ['jobname/' . $ts => true ]; $timeAhead = 15 * 60 + $now; $jobName = 'jobname'; for ($time = $now; $time < $timeAhead; $time += 60) { $ts = strftime('%Y-%m-%d %H:%M:00', $time); if (!empty($exists[$jobName.'/' . $ts])) { // already scheduled continue; } } echo count($exists);

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.0120.00916.75
8.3.50.0080.01121.98
8.3.40.0040.01118.95
8.3.30.0000.01419.10
8.3.20.0070.00020.19
8.3.10.0080.00023.70
8.3.00.0040.00423.52
8.2.180.0080.00818.79
8.2.170.0030.01218.96
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0050.00324.66
8.2.130.0080.00019.64
8.2.120.0080.00026.35
8.2.110.0060.00322.30
8.2.100.0110.00017.93
8.2.90.0040.00419.28
8.2.80.0050.00318.05
8.2.70.0100.00017.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0050.00322.16
8.2.30.0030.00320.61
8.2.20.0050.00317.75
8.2.10.0080.00017.98
8.2.00.0000.00717.98
8.1.280.0070.00725.92
8.1.270.0090.00023.97
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00420.75
8.1.230.0100.00319.07
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0090.00017.48
8.1.190.0000.00817.38
8.1.180.0090.00018.10
8.1.170.0000.00818.59
8.1.160.0000.00720.73
8.1.150.0050.00318.79
8.1.140.0050.00319.46
8.1.130.0000.00817.58
8.1.120.0040.00417.61
8.1.110.0000.00717.61
8.1.100.0000.00817.53
8.1.90.0080.00017.56
8.1.80.0000.00717.50
8.1.70.0000.00717.59
8.1.60.0090.00017.69
8.1.50.0040.00417.70
8.1.40.0040.00417.71
8.1.30.0080.00017.78
8.1.20.0000.00817.74
8.1.10.0040.00417.75
8.1.00.0000.00817.69
8.0.300.0000.00718.77
8.0.290.0000.00717.00
8.0.280.0040.00418.50
8.0.270.0070.00017.34
8.0.260.0000.00617.27
8.0.250.0000.00717.06
8.0.240.0040.00417.13
8.0.230.0070.00017.02
8.0.220.0040.00416.99
8.0.210.0030.00517.09
8.0.200.0050.00517.19
8.0.190.0000.00817.08
8.0.180.0070.00017.11
8.0.170.0040.00417.09
8.0.160.0030.00517.02
8.0.150.0050.00217.11
8.0.140.0000.00917.08
8.0.130.0030.00313.47
8.0.120.0030.00617.07
8.0.110.0040.00417.13
8.0.100.0020.00517.07
8.0.90.0000.00716.91
8.0.80.0120.00317.10
8.0.70.0030.00517.13
8.0.60.0000.00716.97
8.0.50.0040.00417.08
8.0.30.0080.00817.17
8.0.20.0130.00817.40
8.0.10.0050.00216.98
8.0.00.0100.00916.77
7.4.330.0030.00316.80
7.4.320.0030.00316.57
7.4.300.0030.00316.52
7.4.290.0080.00016.71
7.4.280.0000.00916.68
7.4.270.0000.00816.63
7.4.260.0040.00416.71
7.4.250.0040.00416.69
7.4.240.0020.00616.67
7.4.230.0040.00416.54
7.4.220.0110.00716.67
7.4.210.0040.01816.67
7.4.200.0050.00316.83
7.4.160.0060.00916.60
7.4.150.0140.00417.40
7.4.140.0090.00917.86
7.4.130.0040.01316.76
7.4.120.0110.00616.69
7.4.110.0030.01716.68
7.4.100.0130.00716.84
7.4.90.0110.00816.88
7.4.80.0160.00919.39
7.4.70.0070.01016.68
7.4.60.0130.00316.47
7.4.50.0070.01016.70
7.4.40.0090.01216.79
7.4.30.0040.01216.66
7.4.00.0100.00515.17
7.3.330.0050.00013.46
7.3.320.0050.00013.44
7.3.310.0000.00716.36
7.3.300.0050.00216.51
7.3.290.0080.00916.54
7.3.280.0090.00816.55
7.3.270.0070.01017.40
7.3.260.0130.00616.70
7.3.250.0070.01316.60
7.3.240.0060.01216.65
7.3.230.0070.01016.55
7.3.210.0060.01216.57
7.3.200.0100.01319.39
7.3.190.0090.00916.50
7.3.180.0110.00516.60
7.3.170.0170.00016.84
7.3.160.0070.01016.63
7.3.120.0060.00815.12
7.3.110.0120.00515.09
7.3.100.0040.00815.13
7.3.90.0040.00915.11
7.3.80.0030.01215.19
7.3.70.0050.00714.96
7.3.60.0050.00714.82
7.3.50.0090.00515.02
7.3.40.0020.00914.85
7.3.30.0070.00615.04
7.3.20.0070.00716.88
7.3.10.0070.00616.90
7.3.00.0040.00716.82
7.2.330.0140.00317.00
7.2.320.0060.01216.95
7.2.310.0000.01616.65
7.2.300.0000.01716.97
7.2.290.0070.01016.94
7.2.250.0030.01715.27
7.2.240.0070.01215.15
7.2.230.0040.01115.44
7.2.220.0050.00815.27
7.2.210.0050.01015.32
7.2.200.0080.00915.32
7.2.190.0070.00515.20
7.2.180.0040.00915.12
7.2.170.0050.00815.29
7.2.160.0030.00915.21
7.2.150.0000.01617.13
7.2.140.0000.01417.15
7.2.130.0080.00617.08
7.2.120.0040.00817.00
7.2.110.0070.00617.11
7.2.100.0070.00817.17
7.2.90.0020.01316.97
7.2.80.0040.00816.96
7.2.70.0050.00817.05
7.2.60.0100.00417.03
7.2.50.0070.00617.16
7.2.40.0060.00916.97
7.2.30.0060.00816.97
7.2.20.0070.00917.01
7.2.10.0070.00517.03
7.2.00.0050.00817.55
7.1.330.0020.01015.98
7.1.320.0080.00515.95
7.1.310.0040.00615.93
7.1.300.0080.00515.98
7.1.290.0000.01315.84
7.1.280.0050.01016.13
7.1.270.0030.01015.96
7.1.260.0050.01015.93
7.1.250.0060.00615.90
7.1.240.0040.01116.10
7.1.230.0000.01015.50
7.1.220.0000.00816.00
7.1.210.0030.00615.77
7.1.200.0050.00515.98
7.1.190.0000.00815.82
7.1.180.0070.00715.94
7.1.170.0030.00615.71
7.1.160.0000.00715.89
7.1.150.0040.00415.84
7.1.140.0060.00615.92
7.1.130.0060.00615.95
7.1.120.0070.00715.80
7.1.110.0060.00315.56
7.1.100.0020.01017.02
7.1.90.0080.00615.91
7.1.80.0080.00015.68
7.1.70.0020.00816.69
7.1.60.0060.00917.58
7.1.50.0050.00816.56
7.1.40.0030.00715.98
7.1.30.0030.00715.91
7.1.20.0040.00415.76
7.1.10.0060.00316.03
7.1.00.0050.03919.24
7.0.330.0040.00715.17
7.0.320.0060.00615.36
7.0.310.0040.00415.61
7.0.300.0080.00615.53
7.0.290.0030.00615.39
7.0.280.0060.00315.49
7.0.270.0120.00015.36
7.0.260.0040.00815.38
7.0.250.0070.00615.19
7.0.240.0000.00915.18
7.0.230.0030.01015.56
7.0.220.0030.00915.56
7.0.210.0110.00415.52
7.0.200.0060.00516.18
7.0.190.0080.00415.36
7.0.180.0040.00715.57
7.0.170.0000.01315.36
7.0.160.0100.00715.28
7.0.150.0060.00915.44
7.0.140.0070.00715.41
7.0.130.0060.00615.14
7.0.120.0030.01115.73
7.0.110.0120.00315.36
7.0.100.0040.01115.52
7.0.90.0030.00915.61
7.0.80.0090.00615.44
7.0.70.0000.01215.44
7.0.60.0030.04618.62
7.0.50.0050.04316.78
7.0.40.0050.04716.82
7.0.30.0140.02316.81
7.0.20.0120.03216.87
7.0.10.0110.04316.88
7.0.00.0030.05016.70
5.6.380.0000.00914.64
5.6.370.0000.01114.47
5.6.360.0060.00314.50
5.6.350.0030.00714.67
5.6.340.0040.01114.74
5.6.330.0060.00614.56
5.6.320.0060.00614.40
5.6.310.0000.01214.70
5.6.300.0080.00814.77
5.6.290.0130.00314.41
5.6.280.0000.02517.62
5.6.270.0040.00714.69
5.6.260.0100.00314.75
5.6.250.0000.01514.55
5.6.240.0090.00614.58
5.6.230.0060.00914.43
5.6.220.0050.00514.66
5.6.210.0010.02617.48
5.6.200.0050.04316.39
5.6.190.0030.05017.52
5.6.180.0270.03417.43
5.6.170.0150.04217.59
5.6.160.0080.04217.40
5.6.150.0080.04216.41
5.6.140.0050.04716.41
5.6.130.0080.02916.23
5.6.120.0090.04317.86
5.6.110.0110.03217.70
5.6.100.0030.04017.89
5.6.90.0070.03217.71
5.6.80.0050.04017.38
5.6.70.0000.01514.20
5.6.60.0000.01214.52
5.6.50.0090.00314.40
5.6.40.0060.00614.57
5.6.30.0070.00714.29
5.6.20.0000.01514.68
5.6.10.0080.00414.43
5.6.00.0100.00614.65
5.5.380.0040.00811.13
5.5.370.0080.00011.45
5.5.360.0080.00411.35
5.5.350.0070.04215.90
5.5.340.0050.04014.63
5.5.330.0070.02115.61
5.5.320.0290.03415.83
5.5.310.0080.04415.73
5.5.300.0050.03214.53
5.5.290.0090.03314.59
5.5.280.0080.04016.08
5.5.270.0050.03116.08
5.5.260.0030.03415.98
5.5.250.0030.04516.08
5.5.240.0100.03915.66
5.5.230.0000.00811.29
5.5.220.0030.01011.31
5.5.210.0000.00811.19
5.5.200.0100.00011.35
5.5.190.0030.00610.96
5.5.180.0070.00710.89
5.5.170.0030.00311.34
5.5.160.0000.00711.19
5.5.150.0090.00010.93
5.5.140.0060.00611.21
5.5.130.0030.00311.19
5.5.120.0030.00711.16
5.5.110.0030.00711.10
5.5.100.0000.01210.83
5.5.90.0070.00311.35
5.5.80.0030.00311.43
5.5.70.0030.00611.34
5.5.60.0050.00511.07
5.5.50.0000.01011.20
5.5.40.0000.00811.30
5.5.30.0030.00711.35
5.5.20.0060.00311.28
5.5.10.0060.00311.36
5.5.00.0030.00611.03

preferences:
62.71 ms | 401 KiB | 5 Q