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() { return array_map(array($this, 'fm'), range($this->s, $this->e, $this->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.60.0110.00318.43
8.3.50.0150.00321.13
8.3.40.0000.01518.73
8.3.30.0120.00319.13
8.3.20.0060.00320.34
8.3.10.0090.00023.28
8.3.00.0040.00419.37
8.2.180.0190.01316.38
8.2.170.0040.01122.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0050.00322.25
8.2.110.0090.00022.30
8.2.100.0030.00917.63
8.2.90.0000.00719.09
8.2.80.0060.00317.97
8.2.70.0080.00017.50
8.2.60.0080.00018.05
8.2.50.0080.00018.07
8.2.40.0000.01217.89
8.2.30.0080.00018.06
8.2.20.0040.00417.65
8.2.10.0070.00017.98
8.2.00.0000.00817.81
8.1.280.0120.00325.92
8.1.270.0040.00422.06
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.97
8.1.230.0070.00419.13
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.40
8.1.160.0000.00722.07
8.1.150.0000.00718.96
8.1.140.0000.00717.51
8.1.130.0000.00717.84
8.1.120.0050.00217.44
8.1.110.0040.00417.39
8.1.100.0000.00717.38
8.1.90.0070.00017.54
8.1.80.0030.00317.34
8.1.70.0030.00317.32
8.1.60.0040.00417.63
8.1.50.0000.00717.55
8.1.40.0040.00417.54
8.1.30.0030.00617.61
8.1.20.0000.00717.50
8.1.10.0000.00717.55
8.1.00.0030.00617.41
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0040.00418.40
8.0.270.0000.00717.38
8.0.260.0030.00317.23
8.0.250.0040.00417.06
8.0.240.0030.00317.02
8.0.230.0000.00716.92
8.0.220.0040.00416.98
8.0.210.0000.00617.00
8.0.200.0000.00717.07
8.0.190.0040.00417.05
8.0.180.0030.00516.99
8.0.170.0030.00517.01
8.0.160.0000.00716.88
8.0.150.0000.00716.80
8.0.140.0040.00416.95
8.0.130.0000.00513.36
8.0.120.0040.00416.82
8.0.110.0040.00416.98
8.0.100.0000.00716.80
8.0.90.0070.00016.96
8.0.80.0060.01016.91
8.0.70.0040.00416.87
8.0.60.0040.00416.99
8.0.50.0030.00517.08
8.0.30.0060.01317.08
8.0.20.0070.01017.40
8.0.10.0030.00617.08
8.0.00.0120.00916.90
7.4.330.0030.00215.07
7.4.320.0000.00616.61
7.4.300.0040.00416.44
7.4.290.0030.00316.63
7.4.280.0000.00816.64
7.4.270.0030.00316.61
7.4.260.0000.00816.43
7.4.250.0000.00716.66
7.4.240.0020.00516.55
7.4.230.0070.00016.41
7.4.220.0070.01116.60
7.4.210.0030.01016.44
7.4.200.0050.00216.62
7.4.160.0090.00716.56
7.4.150.0110.01417.40
7.4.140.0110.01317.86
7.4.130.0070.01116.47
7.4.120.0110.00616.47
7.4.110.0060.01216.52
7.4.100.0140.00716.61
7.4.90.0110.00816.57
7.4.80.0070.01119.39
7.4.70.0120.00416.36
7.4.60.0130.00316.63
7.4.50.0040.00416.48
7.4.40.0180.00316.66
7.4.30.0100.00716.58
7.4.00.0040.01115.05
7.3.330.0030.00313.25
7.3.320.0050.00013.29
7.3.310.0000.00716.27
7.3.300.0030.00316.35
7.3.290.0060.01016.36
7.3.280.0080.00816.41
7.3.270.0140.00317.40
7.3.260.0210.00316.56
7.3.250.0100.00616.45
7.3.240.0100.01416.66
7.3.230.0170.00016.39
7.3.210.0060.01016.33
7.3.200.0170.00019.39
7.3.190.0090.00916.40
7.3.180.0110.00416.61
7.3.170.0090.00616.28
7.3.160.0130.01016.37
7.3.00.0090.00616.55
7.2.330.0060.01216.71
7.2.320.0090.00916.67
7.2.310.0130.00316.46
7.2.300.0110.00516.75
7.2.290.0110.01116.69
7.2.130.0030.00716.94
7.2.120.0060.00616.74
7.2.110.0090.00616.86
7.2.100.0070.00716.77
7.2.90.0030.01116.83
7.2.80.0090.00616.87
7.2.70.0070.00716.83
7.2.60.0030.01116.85
7.2.50.0030.00716.70
7.2.40.0100.00316.68
7.2.30.0030.01216.74
7.2.20.0030.01417.04
7.2.10.0040.00716.68
7.2.00.0070.00618.01
7.1.250.0080.00615.77
7.1.240.0120.00315.74
7.1.230.0150.00615.79
7.1.220.0130.00015.61
7.1.210.0090.00615.75
7.1.200.0020.01015.50
7.1.190.0070.01015.56
7.1.180.0100.00615.80
7.1.170.0050.00815.72
7.1.160.0030.00715.66
7.1.150.0080.00015.63
7.1.140.0060.00615.87
7.1.130.0070.00415.78
7.1.120.0080.00415.70
7.1.110.0030.01015.77
7.1.100.0040.00816.91
7.1.90.0040.00415.84
7.1.80.0070.00315.78
7.1.70.0050.00716.37
7.1.60.0080.01217.48
7.1.50.0120.01125.37
7.1.40.0070.00715.66
7.1.30.0060.00615.58
7.1.20.0090.00615.81
7.1.10.0110.00415.72
7.1.00.0040.04119.16
7.0.330.0060.00915.05
7.0.320.0090.00315.39
7.0.310.0060.00615.07
7.0.300.0000.01215.24
7.0.290.0030.00615.24
7.0.280.0080.00315.24
7.0.270.0030.01014.97
7.0.260.0120.00615.28
7.0.250.0080.00815.38
7.0.240.0030.01015.34
7.0.230.0090.00415.33
7.0.220.0100.00714.97
7.0.210.0100.00315.34
7.0.200.5110.00815.10
7.0.190.0030.01215.42
7.0.180.0040.00815.38
7.0.170.0070.00715.37
7.0.160.0030.00615.33
7.0.150.0070.00715.04
7.0.140.0060.04018.69
7.0.130.0030.00915.31
7.0.120.0030.01215.43
7.0.110.0070.00715.39
7.0.100.0030.04017.66
7.0.90.0290.03617.65
7.0.80.0050.03717.71
7.0.70.0180.02917.66
7.0.60.0180.05017.67
7.0.50.0300.02517.82
7.0.40.0070.04016.76
7.0.30.0070.03016.85
7.0.20.0090.04316.84
7.0.10.0090.03416.82
7.0.00.0080.04216.92
5.6.380.0060.00614.40
5.6.370.0060.00614.56
5.6.360.0100.01014.34
5.6.350.0090.00614.11
5.6.340.0030.00614.07
5.6.330.0000.01413.95
5.6.320.0000.00814.54
5.6.310.0070.00714.35
5.6.300.0100.00314.28
5.6.290.0070.00714.24
5.6.280.0080.03517.59
5.6.270.0000.01014.16
5.6.260.0040.00714.60
5.6.250.0060.04517.40
5.6.240.0130.04117.33
5.6.230.0100.04017.38
5.6.220.0020.05017.44
5.6.210.0090.04217.42
5.6.200.0040.03117.53
5.6.190.0070.04817.54
5.6.180.0060.02617.56
5.6.170.0000.05417.57
5.6.160.0120.02217.70
5.6.150.0050.02517.54
5.6.140.0030.03017.60
5.6.130.0080.02517.68
5.6.120.0110.03717.53
5.6.110.0070.02917.59
5.6.100.0090.03817.66
5.6.90.0050.03617.66
5.6.80.0060.02817.15
5.6.70.0030.02717.17
5.6.60.0060.02817.26
5.6.50.0060.03417.36
5.6.40.0070.02217.32
5.6.30.0020.02617.35
5.6.20.0020.03017.22
5.6.10.0020.02417.29
5.6.00.0020.02617.17
5.5.380.0080.04315.79
5.5.370.0010.03815.80
5.5.360.0080.04315.83
5.5.350.0070.04415.81
5.5.340.0030.02716.07
5.5.330.0070.03316.04
5.5.320.0080.04315.93
5.5.310.0120.03816.01
5.5.300.0120.01815.98
5.5.290.0050.02616.02
5.5.280.0130.03716.06
5.5.270.0080.04416.01
5.5.260.0060.04515.99
5.5.250.0070.04315.92
5.5.240.0080.03115.76
5.5.230.0020.03215.70
5.5.220.0080.04015.71
5.5.210.0050.02515.68
5.5.200.0040.02515.72
5.5.190.0040.02415.73
5.5.180.0060.02015.70
5.5.170.0050.00511.21
5.5.160.0030.02315.72
5.5.150.0060.02015.68
5.5.140.0070.01915.71
5.5.130.0070.01815.65
5.5.120.0070.01915.73
5.5.110.0070.02415.66
5.5.100.0030.02215.69
5.5.90.0040.02315.67
5.5.80.0060.01815.59
5.5.70.0030.03015.67
5.5.60.0000.02815.63
5.5.50.0090.01515.63
5.5.40.0080.03015.62
5.5.30.0070.02115.60
5.5.20.0060.02015.65
5.5.10.0050.02315.67
5.5.00.0040.02615.61
5.4.450.0070.02715.33
5.4.440.0080.04315.29
5.4.430.0030.02515.35
5.4.420.0050.03515.29
5.4.410.0090.04315.28
5.4.400.0100.01815.04
5.4.390.0020.02515.18
5.4.380.0080.01815.13
5.4.370.0040.02415.22
5.4.360.0050.02015.20
5.4.350.0100.02515.13
5.4.340.0000.02415.12
5.4.330.0060.00011.21
5.4.320.0040.02015.12
5.4.310.0050.02315.19
5.4.300.0070.01815.18
5.4.290.0020.02215.17
5.4.280.0050.02715.17
5.4.270.0050.01915.16
5.4.260.0030.02115.13
5.4.250.0100.01715.04
5.4.240.0080.01515.12
5.4.230.0030.04115.19
5.4.220.0060.02115.22
5.4.210.0110.03615.17
5.4.200.0070.02015.18
5.4.190.0070.01815.18
5.4.180.0080.02015.14
5.4.170.0030.02315.04
5.4.160.0020.02415.06
5.4.150.0020.02215.21
5.4.140.0080.01713.76
5.4.130.0040.01913.85
5.4.120.0050.02013.83
5.4.110.0070.01713.88
5.4.100.0090.01613.77
5.4.90.0070.01813.87
5.4.80.0070.02313.84
5.4.70.0070.01713.75
5.4.60.0030.02113.79
5.4.50.0050.02213.80
5.4.40.0070.01713.79
5.4.30.0030.02313.84
5.4.20.0050.03213.76
5.4.10.0060.01813.81
5.4.00.0030.02313.55
5.3.290.0060.01912.92
5.3.280.0060.01712.91
5.3.270.0050.02012.94
5.3.260.0030.02212.96
5.3.250.0080.02012.96
5.3.240.0050.02312.90
5.3.230.0030.01912.91
5.3.220.0060.02112.89
5.3.210.0060.01612.93
5.3.200.0100.02612.92
5.3.190.0070.01812.92
5.3.180.0030.02612.86
5.3.170.0040.02212.87
5.3.160.0040.02312.87
5.3.150.0040.01812.96
5.3.140.0050.01812.95
5.3.130.0000.02712.85
5.3.120.0050.01912.88
5.3.110.0020.02712.94
5.3.100.0030.03212.59
5.3.90.0020.02712.61
5.3.80.0040.02012.67
5.3.70.0050.01812.67
5.3.60.0060.01912.56
5.3.50.0050.02112.64
5.3.40.0110.03712.63
5.3.30.0040.04012.59
5.3.20.0100.03512.46
5.3.10.0040.03912.47
5.3.00.0070.03512.45
5.2.170.0030.03711.19
5.2.160.0060.02811.18
5.2.150.0060.02911.23
5.2.140.0030.03711.21
5.2.130.0070.03211.21
5.2.120.0090.01511.18
5.2.110.0040.03411.10
5.2.100.0070.03311.09
5.2.90.0040.02111.16
5.2.80.0060.02511.18
5.2.70.0070.03111.08
5.2.60.0050.03311.15
5.2.50.0050.02611.06
5.2.40.0020.02311.14
5.2.30.0050.01911.16
5.2.20.0050.01611.11
5.2.10.0050.02011.00
5.2.00.0050.03310.92
5.1.60.0070.02510.73
5.1.50.0060.02510.73
5.1.40.0060.02110.73
5.1.30.0030.02810.83
5.1.20.0110.02510.82
5.1.10.0020.02310.73
5.1.00.0020.03010.73
5.0.50.0050.02210.73
5.0.40.0020.02510.73
5.0.30.0020.02810.73
5.0.20.0030.02010.73
5.0.10.0060.01710.73
5.0.00.0020.03310.73
4.4.90.0050.00810.73
4.4.80.0010.01010.73
4.4.70.0030.01110.73
4.4.60.0040.01310.73
4.4.50.0030.01510.73
4.4.40.0030.03010.73
4.4.30.0040.01810.73
4.4.20.0030.02010.73
4.4.10.0030.01810.73
4.4.00.0020.02510.73
4.3.110.0050.01110.73
4.3.100.0020.01110.73
4.3.90.0080.01310.73
4.3.80.0000.01810.73
4.3.70.0030.01810.73
4.3.60.0030.01810.73
4.3.50.0000.01110.73
4.3.40.0030.02510.73
4.3.30.0040.01510.73
4.3.20.0020.02110.73
4.3.10.0030.01810.73
4.3.00.0060.01610.73

preferences:
49.09 ms | 401 KiB | 5 Q