3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class hisRange { public $s, $e, $r, $f; function __constructor($s= '00:00:00', $e= '23:59:59', $r= 3600, $f= 'H:00:00') { $this->s = strtotime($s); $this->e = strtotime($e); $this->r = $r; $this->f = $f; } function run() { $r = range($this->s, $this->e, $this->r); print_r($r); return array_map(array($this, 'fm'), $r); } function fm($t) { return date($this->f, $t); } } $range = new hisRange(); $s = $range->run(); print_r($s);

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.40.0070.01418.84
8.3.30.0110.00319.27
8.3.20.0040.00420.34
8.3.10.0080.00023.64
8.3.00.0040.00419.38
8.2.170.0150.00022.96
8.2.160.0100.00720.24
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00722.09
8.2.110.0060.01222.27
8.2.100.0040.00817.72
8.2.90.0040.00418.22
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0000.00820.55
8.2.30.0040.00417.88
8.2.20.0000.00817.68
8.2.10.0070.00017.88
8.2.00.0050.00317.59
8.1.270.0040.00422.07
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00322.46
8.1.230.0040.00821.05
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0050.00218.98
8.1.150.0040.00418.83
8.1.140.0000.00717.43
8.1.130.0030.00317.82
8.1.120.0070.00017.43
8.1.110.0040.00417.44
8.1.100.0030.00517.41
8.1.90.0000.00717.37
8.1.80.0050.00217.41
8.1.70.0070.00017.38
8.1.60.0040.00417.63
8.1.50.0040.00417.48
8.1.40.0040.00417.37
8.1.30.0060.00317.52
8.1.20.0000.00817.68
8.1.10.0040.00417.54
8.1.00.0040.00417.53
8.0.300.0030.00519.93
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0030.00317.16
8.0.260.0000.00617.18
8.0.250.0000.00717.00
8.0.240.0070.00016.86
8.0.230.0030.00316.94
8.0.220.0000.00716.92
8.0.210.0000.00716.90
8.0.200.0030.00316.92
8.0.190.0030.00516.94
8.0.180.0070.00016.82
8.0.170.0040.00416.82
8.0.160.0000.00716.80
8.0.150.0000.00716.84
8.0.140.0000.00716.82
8.0.130.0030.00313.32
8.0.120.0040.00416.88
8.0.110.0030.00316.72
8.0.100.0000.00716.88
8.0.90.0040.00316.70
8.0.80.0030.01216.84
8.0.70.0040.00416.89
8.0.60.0000.00716.88
8.0.50.0000.00716.74
8.0.30.0120.00816.97
8.0.20.0150.00517.40
8.0.10.0030.00617.07
8.0.00.0080.01016.84
7.4.330.0000.00515.06
7.4.320.0030.00316.64
7.4.300.0060.00016.59
7.4.290.0040.00416.53
7.4.280.0000.00916.50
7.4.270.0030.00316.50
7.4.260.0040.00416.48
7.4.250.0000.00716.56
7.4.240.0020.00516.51
7.4.230.0000.00716.39
7.4.220.0140.00316.46
7.4.210.0070.00716.60
7.4.200.0000.00716.40
7.4.160.0080.00816.56
7.4.150.0060.01217.40
7.4.140.0090.01017.86
7.4.130.0070.01016.64
7.4.120.0120.00816.58
7.4.110.0140.01116.43
7.4.100.0160.00416.52
7.4.90.0030.01316.50
7.4.80.0060.01319.39
7.4.70.0000.01716.37
7.4.60.0110.00616.32
7.4.50.0000.00816.66
7.4.40.0090.01216.55
7.4.30.0050.01516.56
7.4.00.0070.01014.77
7.3.330.0000.00513.45
7.3.320.0000.00513.28
7.3.310.0000.00716.42
7.3.300.0040.00416.25
7.3.290.0100.00816.37
7.3.280.0090.00516.33
7.3.270.0120.00817.40
7.3.260.0120.00616.28
7.3.250.0100.00716.36
7.3.240.0140.00916.32
7.3.230.0100.00616.57
7.3.210.0120.00316.20
7.3.200.0200.01019.39
7.3.190.0140.00516.56
7.3.180.0090.00916.48
7.3.170.0090.00616.58
7.3.160.0070.01016.24
7.3.10.0090.01316.21
7.3.00.0150.00416.25
7.2.330.0140.00316.74
7.2.320.0120.00616.64
7.2.310.0090.01316.55
7.2.300.0130.01016.46
7.2.290.0040.01316.66
7.2.130.0180.00316.89
7.2.120.0200.00216.48
7.2.110.0110.00916.78
7.2.100.0210.00016.54
7.2.90.0080.00816.86
7.2.80.0070.00716.34
7.2.70.0130.00616.37
7.2.60.0030.01216.51
7.2.50.0100.00716.80
7.2.40.0120.00416.66
7.2.30.0100.00316.36
7.2.20.0180.00916.52
7.2.10.0110.00716.62
7.2.00.0070.01017.99
7.1.250.0180.00415.20
7.1.200.0000.01315.57
7.1.100.0030.01017.96
7.1.70.0120.00417.22
7.1.60.0140.01119.11
7.1.50.0210.01434.67
7.1.00.0030.07322.56
7.0.200.0140.00516.62
7.0.140.0000.07721.92
7.0.100.0030.06019.91
7.0.90.0100.07719.94
7.0.80.0030.08719.96
7.0.70.0370.07719.90
7.0.60.0100.04719.93
7.0.50.0230.08320.28
7.0.40.0130.07320.04
7.0.30.0100.07720.00
7.0.20.0100.07720.12
7.0.10.0130.08720.12
7.0.00.0100.07719.93
5.6.280.0070.07021.08
5.6.250.0100.08320.66
5.6.240.0130.05020.66
5.6.230.0130.07720.68
5.6.220.0130.07720.70
5.6.210.0030.04020.77
5.6.200.0100.06020.94
5.6.190.0130.08021.12
5.6.180.0070.07321.00
5.6.170.0030.05320.96
5.6.160.0070.08321.11
5.6.150.0170.08021.03
5.6.140.0170.07321.00
5.6.130.0130.08020.95
5.6.120.0070.08721.02
5.6.110.0030.09321.12
5.6.100.0070.08720.99
5.6.90.0100.08321.11
5.6.80.0070.08320.32
5.6.70.0130.07720.39
5.6.60.0130.07720.45
5.6.50.0170.06020.43
5.6.40.0070.08320.39
5.6.30.0000.07020.30
5.6.20.0000.08320.40
5.6.10.0130.07320.31
5.6.00.0100.08020.38
5.5.380.0030.08320.43
5.5.370.0100.08720.54
5.5.360.0170.07720.37
5.5.350.0030.04720.36
5.5.340.0170.07320.91
5.5.330.0070.08720.89
5.5.320.0100.07320.80
5.5.310.0070.08720.80
5.5.300.0070.08320.83
5.5.290.0070.09020.86
5.5.280.0100.08020.64
5.5.270.0070.08320.86
5.5.260.0070.08720.75
5.5.250.0200.06720.56
5.5.240.0100.07720.28
5.5.230.0070.07320.26
5.5.220.0000.08720.26
5.5.210.0100.07720.19
5.5.200.0030.08020.24
5.5.190.0070.08020.24
5.5.180.0100.07720.11
5.5.160.0170.04020.25
5.5.150.0100.05320.11
5.5.140.0100.08020.16
5.5.130.0070.07720.28
5.5.120.0100.08320.23
5.5.110.0130.07320.11
5.5.100.0200.07019.94
5.5.90.0070.05320.12
5.5.80.0070.04320.07
5.5.70.0100.07720.07
5.5.60.0100.07320.16
5.5.50.0030.05320.08
5.5.40.0100.07320.04
5.5.30.0030.07720.12
5.5.20.0100.07320.01
5.5.10.0000.08020.03
5.5.00.0130.07020.10
5.4.450.0170.07019.49
5.4.440.0130.06319.44
5.4.430.0070.08719.45
5.4.420.0130.06719.45
5.4.410.0000.07719.35
5.4.400.0030.08019.18
5.4.390.0030.07719.09
5.4.380.0070.08318.95
5.4.370.0100.07719.20
5.4.360.0100.07318.84
5.4.350.0030.06019.14
5.4.340.0070.06019.12
5.4.320.0100.07319.18
5.4.310.0070.08019.13
5.4.300.0030.04718.99
5.4.290.0130.07018.87
5.4.280.0130.07319.12
5.4.270.0070.06319.03
5.4.260.0070.04019.04
5.4.250.0030.08019.16
5.4.240.0070.07719.04
5.4.230.0130.04019.08
5.4.220.0030.08018.94
5.4.210.0100.07318.94
5.4.200.0100.07719.03
5.4.190.0100.07718.87
5.4.180.0130.07019.20
5.4.170.0100.07018.84
5.4.160.0030.08718.86
5.4.150.0100.07319.07
5.4.140.0000.05016.29
5.4.130.0130.06016.45
5.4.120.0100.07016.40
5.4.110.0030.07316.41
5.4.100.0070.08016.58
5.4.90.0030.07716.54
5.4.80.0070.05316.38
5.4.70.0100.07016.42
5.4.60.0170.07716.33
5.4.50.0030.05716.39
5.4.40.0130.06316.51
5.4.30.0200.05716.47
5.4.20.0070.05016.47
5.4.10.0070.07316.34
5.4.00.0100.05315.71
5.3.290.0030.08714.68
5.3.280.0070.06714.66
5.3.270.0030.06714.55
5.3.260.0030.05714.68
5.3.250.0130.07314.73
5.3.240.0170.07014.75
5.3.230.0030.06714.70
5.3.220.0070.06314.68
5.3.210.0130.07314.63
5.3.200.0030.05014.69
5.3.190.0100.07014.55
5.3.180.0070.07714.55
5.3.170.0070.08014.69
5.3.160.0030.05014.59
5.3.150.0130.06314.49
5.3.140.0030.07314.65
5.3.130.0000.07314.52
5.3.120.0070.08714.61
5.3.110.0000.04314.56
5.3.100.0130.06714.08
5.3.90.0070.04314.14
5.3.80.0030.04714.08
5.3.70.0170.05013.96
5.3.60.0130.06713.94
5.3.50.0030.07014.04
5.3.40.0100.06313.96
5.3.30.0070.06313.98
5.3.20.0070.08013.75
5.3.10.0100.07013.56
5.3.00.0030.07013.66
5.2.170.0100.03711.02
5.2.160.0030.03711.18
5.2.150.0000.05711.28
5.2.140.0100.04711.07
5.2.130.0130.05311.23
5.2.120.0100.03011.12
5.2.110.0000.07010.96
5.2.100.0000.04011.23
5.2.90.0030.03311.14
5.2.80.0030.06711.11
5.2.70.0000.06711.19
5.2.60.0030.04711.11
5.2.50.0000.04711.16
5.2.40.0030.06311.00
5.2.30.0070.04310.86
5.2.20.0000.06311.02
5.2.10.0030.05710.82
5.2.00.0070.06310.79
5.1.60.0070.03310.09
5.1.50.0100.04710.01
5.1.40.0070.02010.06
5.1.30.0070.05310.28
5.1.20.0070.05710.39
5.1.10.0070.04310.13
5.1.00.0000.03710.12
5.0.50.0000.0438.56
5.0.40.0030.0478.51
5.0.30.0000.0708.30
5.0.20.0070.0278.20
5.0.10.0070.0438.07
5.0.00.0030.0638.16
4.4.90.0100.0307.35
4.4.80.0030.0337.35
4.4.70.0000.0377.35
4.4.60.0070.0277.35
4.4.50.0100.0207.35
4.4.40.0030.0507.35
4.4.30.0030.0237.35
4.4.20.0000.0377.35
4.4.10.0000.0277.35
4.4.00.0030.0577.35
4.3.110.0100.0307.35
4.3.100.0030.0307.35
4.3.90.0030.0377.35
4.3.80.0070.0507.35
4.3.70.0030.0337.35
4.3.60.0030.0377.35
4.3.50.0000.0207.35
4.3.40.0170.0337.35
4.3.30.0030.0337.35
4.3.20.0000.0307.35
4.3.10.0000.0377.35
4.3.00.0000.0377.35

preferences:
49.08 ms | 400 KiB | 5 Q