3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds_input = (int) 63345422243; $hours = floor($seconds_input / 3600); $minutes = floor(($seconds_input / 60) % 60); $seconds = $seconds_input % 60; printf("%02d:%02d:%02d", $hours, $minutes, $seconds); echo "\n"; echo gmdate('H:i:s', $seconds_input);

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.0090.00918.30
8.3.50.0140.00821.19
8.3.40.0100.01018.73
8.3.30.0130.00018.96
8.3.20.0040.00420.20
8.3.10.0030.00523.78
8.3.00.0050.00319.06
8.2.180.0110.00416.38
8.2.170.0140.00022.96
8.2.160.0070.00720.50
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00920.73
8.2.110.0000.00922.23
8.2.100.0040.00819.52
8.2.90.0040.00419.36
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0070.00218.04
8.2.50.0000.00818.07
8.2.40.0000.00920.07
8.2.30.0040.00418.29
8.2.20.0080.00017.66
8.2.10.0080.00018.10
8.2.00.0000.00717.68
8.1.280.0040.01125.92
8.1.270.0040.01822.14
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00022.16
8.1.230.0040.00719.35
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00617.24
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.83
8.1.160.0020.00521.94
8.1.150.0000.00718.62
8.1.140.0000.00717.50
8.1.130.0030.00517.83
8.1.120.0040.00417.40
8.1.110.0050.00317.41
8.1.100.0000.00817.50
8.1.90.0040.00417.51
8.1.80.0000.00817.49
8.1.70.0000.00817.46
8.1.60.0030.00617.48
8.1.50.0050.00317.36
8.1.40.0030.00617.54
8.1.30.0030.00717.60
8.1.20.0030.00517.53
8.1.10.0000.00717.55
8.1.00.0000.00717.51
8.0.300.0000.00718.77
8.0.290.0030.00617.18
8.0.280.0070.00018.55
8.0.270.0040.00417.30
8.0.260.0000.00717.18
8.0.250.0030.00317.14
8.0.240.0070.00017.02
8.0.230.0030.00517.16
8.0.220.0040.00416.97
8.0.210.0070.00016.96
8.0.200.0000.00617.05
8.0.190.0050.00317.05
8.0.180.0030.00516.98
8.0.170.0040.00417.07
8.0.160.0050.00217.04
8.0.150.0030.00617.00
8.0.140.0030.00316.96
8.0.130.0060.00013.40
8.0.120.0050.00317.04
8.0.110.0020.00516.86
8.0.100.0030.00616.83
8.0.90.0030.00316.83
8.0.80.0170.00316.94
8.0.70.0050.00316.89
8.0.60.0080.00016.92
8.0.50.0040.00416.82
8.0.30.0170.00417.22
8.0.20.0120.00517.40
8.0.10.0000.00717.03
8.0.00.0110.00616.96
7.4.330.0000.00615.00
7.4.320.0030.00316.48
7.4.300.0000.00616.38
7.4.290.0030.00316.49
7.4.280.0050.00316.48
7.4.270.0030.00316.47
7.4.260.0050.00316.61
7.4.250.0050.00316.45
7.4.240.0000.00716.58
7.4.230.0030.00316.36
7.4.220.0100.01716.55
7.4.210.0090.00916.48
7.4.200.0070.00016.43
7.4.190.0080.00016.30
7.4.160.0100.00716.44
7.4.150.0070.01017.40
7.4.140.0120.01017.86
7.4.130.0080.01116.59
7.4.120.0070.01216.66
7.4.110.0050.01416.70
7.4.100.0110.00716.70
7.4.90.0110.00616.50
7.4.80.0090.00919.39
7.4.70.0040.01116.51
7.4.60.0060.00916.75
7.4.50.0000.00816.43
7.4.40.0140.00316.44
7.4.30.0090.00916.34
7.4.00.0090.00314.94
7.3.330.0030.00313.42
7.3.320.0020.00213.32
7.3.310.0000.00716.29
7.3.300.0000.00716.35
7.3.290.0040.01616.49
7.3.280.0080.01116.44
7.3.270.0090.01417.40
7.3.260.0070.01016.46
7.3.250.0130.00416.54
7.3.240.0130.00616.43
7.3.230.0090.00616.57
7.3.210.0110.00716.49
7.3.200.0140.00319.39
7.3.190.0100.01016.41
7.3.180.0000.01616.46
7.3.170.0060.00916.52
7.3.160.0080.00816.34
7.3.120.0060.00914.95
7.3.10.0030.01216.41
7.3.00.0090.00616.71
7.2.330.0140.00316.60
7.2.320.0140.00716.85
7.2.310.0140.00716.41
7.2.300.0100.00916.62
7.2.290.0100.00716.52
7.2.130.0070.00717.11
7.2.120.0080.00617.02
7.2.110.0120.00316.91
7.2.100.0110.00416.77
7.2.90.0000.01717.02
7.2.80.0000.01517.02
7.2.70.0090.00316.87
7.2.60.0090.00616.62
7.2.50.0030.01016.76
7.2.40.0070.01116.79
7.2.30.0080.00416.94
7.2.20.0090.00616.93
7.2.10.0060.00916.85
7.2.00.0080.00718.00
7.1.250.0030.01415.47
7.1.100.0160.00518.21
7.1.70.0030.00617.37
7.1.60.0130.01319.46
7.1.50.0090.00917.05
7.1.00.0070.07022.36
7.0.200.0020.00516.86
7.0.140.0030.07322.10
7.0.60.0030.05319.78
7.0.50.0030.04317.89
7.0.40.0200.06020.12
7.0.30.0330.07320.04
7.0.20.0230.06320.21
7.0.10.0200.06020.30
7.0.00.0070.05320.09
5.6.280.0000.07720.85
5.6.210.0170.06020.46
5.6.200.0100.08318.09
5.6.190.0100.06720.45
5.6.180.0030.08720.43
5.6.170.0130.05020.51
5.6.160.0170.07020.49
5.6.150.0170.06318.16
5.6.140.0030.05018.18
5.6.130.0100.06018.11
5.6.120.0030.04721.14
5.6.110.0070.08720.96
5.6.100.0070.08721.10
5.6.90.0070.05721.11
5.6.80.0030.08020.36
5.5.350.0100.08020.38
5.5.340.0100.07717.98
5.5.330.0200.04020.21
5.5.320.0030.04320.28
5.5.310.0330.05320.31
5.5.300.0000.04318.01
5.5.290.0030.04017.98
5.5.280.0070.05320.64
5.5.270.0030.04020.87
5.5.260.0130.08020.76
5.5.250.0100.07720.68
5.5.240.0030.07720.34
5.4.450.0770.07319.04
5.4.440.0770.05019.46
5.4.430.1130.05319.41
5.4.420.1230.05719.22
5.4.410.0400.06019.54
5.4.400.1000.04319.20
5.4.390.0870.06018.93
5.4.380.0100.06318.68
5.4.370.0200.04318.52
5.4.360.0170.05018.70
5.4.350.0030.06318.79
5.4.340.0100.06018.53
5.4.320.0070.03612.45
5.4.310.0060.04012.45
5.4.300.0080.03812.45
5.4.290.0060.04212.45
5.4.280.0070.03912.34
5.4.270.0090.03612.34
5.4.260.0130.03312.35
5.4.250.0070.03812.35
5.4.240.0050.04012.35
5.4.230.0060.04312.34
5.4.220.0090.03612.34
5.4.210.0090.03512.34
5.4.200.0090.04512.34
5.4.190.0060.03712.33
5.4.180.0040.04112.33
5.4.170.0050.04112.34
5.4.160.0030.04012.34
5.4.150.0060.03712.34
5.4.140.0080.03712.02
5.4.130.0070.04112.01
5.4.120.0100.04211.97
5.4.110.0110.04711.96
5.4.100.0050.03911.96
5.4.90.0070.03711.97
5.4.80.0040.03911.96
5.4.70.0040.03811.96
5.4.60.0080.03611.96
5.4.50.0060.03911.96
5.4.40.0060.04211.95
5.4.30.0070.03711.95
5.4.20.0070.03511.95
5.4.10.0080.03311.95
5.4.00.0040.03811.44
5.3.290.0100.04612.80
5.3.280.0090.04312.71
5.3.270.0090.04812.73
5.3.260.0090.03712.72
5.3.250.0060.03812.71
5.3.240.0070.03812.72
5.3.230.0070.04812.71
5.3.220.0090.04312.68
5.3.210.0060.04412.68
5.3.200.0070.04812.68
5.3.190.0090.04012.68
5.3.180.0100.04612.67
5.3.170.0030.04112.67
5.3.160.0050.03812.67
5.3.150.0070.03712.67
5.3.140.0050.03812.66
5.3.130.0070.04012.66
5.3.120.0090.04012.66
5.3.110.0050.04112.66
5.3.100.0100.03512.12
5.3.90.0090.03512.08
5.3.80.0080.04112.07
5.3.70.0060.04512.07
5.3.60.0050.03712.07
5.3.50.0050.03712.00
5.3.40.0060.03712.00
5.3.30.0090.03211.94
5.3.20.0100.03211.72
5.3.10.0070.03711.69
5.3.00.0060.03911.68
5.2.170.0060.0349.18
5.2.160.0070.0339.18
5.2.150.0080.0289.18
5.2.140.0040.0319.17
5.2.130.0030.0339.13
5.2.120.0040.0309.13
5.2.110.0050.0299.14
5.2.100.0050.0319.14
5.2.90.0060.0309.14
5.2.80.0060.0389.14
5.2.70.0050.0329.14
5.2.60.0080.0299.08
5.2.50.0040.0329.05
5.2.40.0020.0329.03
5.2.30.0070.0289.01
5.2.20.0050.0299.00
5.2.10.0030.0298.92
5.2.00.0050.0398.78
5.1.60.0030.0358.06
5.1.50.0070.0338.06
5.1.40.0060.0278.04
5.1.30.0050.0268.39
5.1.20.0040.0288.41
5.1.10.0060.0268.14
5.1.00.0040.0288.14
5.0.50.0020.0226.64
5.0.40.0040.0206.50
5.0.30.0050.0326.31
5.0.20.0070.0186.28
5.0.10.0040.0216.26
5.0.00.0060.0306.25
4.4.90.0040.0154.78
4.4.80.0020.0174.75
4.4.70.0030.0164.75
4.4.60.0040.0164.75
4.4.50.0030.0174.77
4.4.40.0080.0284.71
4.4.30.0010.0244.76
4.4.20.0030.0164.84
4.4.10.0030.0234.85
4.4.00.0020.0344.76
4.3.110.0040.0174.67
4.3.100.0050.0154.67
4.3.90.0020.0174.63
4.3.80.0020.0274.59
4.3.70.0040.0154.63
4.3.60.0030.0204.63
4.3.50.0050.0204.63
4.3.40.0020.0324.54
4.3.30.0020.0203.31
4.3.20.0010.0223.29
4.3.10.0020.0203.25
4.3.00.0100.0236.87

preferences:
41.93 ms | 401 KiB | 5 Q