3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds_input = (int) 243; $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.0110.00316.50
8.3.50.0130.00621.03
8.3.40.0040.01518.54
8.3.30.0030.01019.09
8.3.20.0070.00020.39
8.3.10.0050.00323.73
8.3.00.0080.00019.09
8.2.180.0090.00616.38
8.2.170.0150.00022.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00318.96
8.2.110.0030.00722.21
8.2.100.0080.00419.45
8.2.90.0040.00419.35
8.2.80.0080.00017.97
8.2.70.0000.00817.61
8.2.60.0090.00517.91
8.2.50.0080.00018.07
8.2.40.0000.00919.95
8.2.30.0040.00419.97
8.2.20.0030.00517.90
8.2.10.0000.00718.09
8.2.00.0040.00417.90
8.1.280.0100.01025.92
8.1.270.0070.01022.16
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0080.00419.21
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0030.00618.73
8.1.160.0000.00721.95
8.1.150.0040.00418.59
8.1.140.0000.00717.50
8.1.130.0030.00317.75
8.1.120.0070.00017.47
8.1.110.0040.00417.39
8.1.100.0040.00417.43
8.1.90.0040.00417.41
8.1.80.0050.00317.54
8.1.70.0000.00717.43
8.1.60.0050.00517.62
8.1.50.0000.00717.45
8.1.40.0040.00417.47
8.1.30.0060.00317.48
8.1.20.0030.00617.53
8.1.10.0000.00717.47
8.1.00.0000.00717.52
8.0.300.0040.00418.77
8.0.290.0080.00017.16
8.0.280.0030.00518.39
8.0.270.0070.00017.25
8.0.260.0030.00317.22
8.0.250.0070.00017.16
8.0.240.0030.00717.02
8.0.230.0080.00017.14
8.0.220.0040.00417.05
8.0.210.0030.00316.96
8.0.200.0030.00317.11
8.0.190.0050.00317.05
8.0.180.0040.00417.06
8.0.170.0070.00017.07
8.0.160.0000.00716.97
8.0.150.0000.00716.84
8.0.140.0000.00716.98
8.0.130.0070.00013.41
8.0.120.0090.00016.97
8.0.110.0070.00016.91
8.0.100.0040.00416.81
8.0.90.0030.00316.84
8.0.80.0090.01217.02
8.0.70.0080.00016.95
8.0.60.0040.00417.05
8.0.50.0040.00417.06
8.0.30.0130.00717.22
8.0.20.0120.00917.40
8.0.10.0070.00016.97
8.0.00.0050.01116.89
7.4.330.0040.00315.00
7.4.320.0040.00416.48
7.4.300.0060.00016.37
7.4.290.0070.00016.55
7.4.280.0040.00416.62
7.4.270.0030.00316.47
7.4.260.0000.00716.58
7.4.250.0000.00816.57
7.4.240.0020.00516.56
7.4.230.0070.00016.59
7.4.220.0060.01516.67
7.4.210.0070.00816.46
7.4.200.0030.00316.66
7.4.190.0030.00316.39
7.4.160.0150.00016.43
7.4.150.0130.00317.40
7.4.140.0120.00917.86
7.4.130.0120.00516.57
7.4.120.0150.00516.55
7.4.110.0100.01316.49
7.4.100.0090.00916.66
7.4.90.0100.00616.42
7.4.80.0130.00319.39
7.4.70.0060.00916.57
7.4.60.0080.00816.76
7.4.50.0000.00716.50
7.4.40.0090.00616.55
7.4.30.0030.01316.52
7.4.00.0070.01014.72
7.3.330.0000.00613.42
7.3.320.0030.00313.36
7.3.310.0000.00716.43
7.3.300.0070.00016.43
7.3.290.0080.00616.39
7.3.280.0070.01016.42
7.3.270.0070.01017.40
7.3.260.0000.01716.49
7.3.250.0130.00716.49
7.3.240.0080.00816.44
7.3.230.0060.01016.44
7.3.210.0060.01016.41
7.3.200.0060.01219.39
7.3.190.0130.00316.60
7.3.180.0090.00616.49
7.3.170.0060.01016.59
7.3.160.0090.00616.45
7.3.120.0090.00714.90
7.3.110.0030.01315.07
7.3.100.0070.01314.70
7.3.90.0160.00314.97
7.3.80.0030.00914.57
7.3.70.0040.00814.68
7.3.60.0060.00314.90
7.3.50.0080.00414.92
7.3.40.0090.00614.79
7.3.30.0070.01014.93
7.3.20.0070.00716.46
7.3.10.0060.00316.64
7.3.00.0060.00616.64
7.2.330.0130.00616.61
7.2.320.0110.00916.51
7.2.310.0130.01016.66
7.2.300.0140.00716.71
7.2.290.0070.01416.63
7.2.250.0060.01315.15
7.2.240.0070.01115.20
7.2.230.0070.01315.19
7.2.220.0040.01115.11
7.2.210.0080.00814.72
7.2.200.0110.00714.80
7.2.190.0090.00315.05
7.2.180.0000.01614.89
7.2.170.0070.01015.08
7.2.00.0000.01219.47
7.1.330.0040.01415.63
7.1.320.0090.00315.74
7.1.310.0030.00915.66
7.1.300.0070.00415.57
7.1.290.0060.00615.87
7.1.280.0000.01415.82
7.1.270.0060.00315.76
7.1.260.0030.00915.96
7.1.100.0040.01118.10
7.1.70.0020.00517.21
7.1.60.0100.01419.46
7.1.50.0070.01417.02
7.1.00.0070.07322.33
7.0.200.0070.00016.95
7.0.140.0070.07021.95
7.0.60.0100.08320.05
7.0.50.0030.06017.77
7.0.40.0100.08320.05
7.0.30.0230.04020.09
7.0.20.0230.04020.09
7.0.10.0100.08320.16
7.0.00.0130.07020.00
5.6.280.0030.07320.88
5.6.210.0030.06020.50
5.6.200.0070.04718.20
5.6.190.0130.08020.77
5.6.180.0270.06320.61
5.6.170.0330.06720.42
5.6.160.0130.04320.51
5.6.150.0030.08318.11
5.6.140.0070.08318.11
5.6.130.0130.07718.11
5.6.120.0100.04720.99
5.6.110.0000.04321.00
5.6.100.0070.05320.98
5.6.90.0070.08020.96
5.6.80.0100.06320.39
5.5.350.4100.03720.44
5.5.340.0000.05017.93
5.5.330.0030.04020.13
5.5.320.0230.04320.41
5.5.310.0300.06020.29
5.5.300.0170.07318.04
5.5.290.0030.06718.02
5.5.280.0100.08020.97
5.5.270.0100.06320.71
5.5.260.0100.08720.79
5.5.250.0070.05320.58
5.5.240.0100.06320.18
5.4.450.0570.05019.13
5.4.440.0800.05719.57
5.4.430.0870.05719.13
5.4.420.0970.05019.13
5.4.410.1100.04319.28
5.4.400.0870.05719.09
5.4.390.0870.05719.29
5.4.380.0030.06318.65
5.4.370.0130.05018.63
5.4.360.0170.07318.58
5.4.350.0100.05718.64
5.4.340.0100.05318.68
5.4.320.0090.03412.45
5.4.310.0060.03812.45
5.4.300.0030.04112.45
5.4.290.0070.03812.45
5.4.280.0040.03812.34
5.4.270.0040.03812.34
5.4.260.0060.03812.34
5.4.250.0080.03812.34
5.4.240.0130.03512.34
5.4.230.0100.03512.34
5.4.220.0070.03712.34
5.4.210.0040.03712.34
5.4.200.0080.04012.34
5.4.190.0080.03312.33
5.4.180.0030.04712.34
5.4.170.0070.04212.35
5.4.160.0040.03812.34
5.4.150.0080.03412.34
5.4.140.0060.03712.02
5.4.130.0070.03412.01
5.4.120.0040.03611.96
5.4.110.0090.03811.96
5.4.100.0060.03511.96
5.4.90.0070.03711.96
5.4.80.0050.03811.96
5.4.70.0060.04311.96
5.4.60.0070.03411.96
5.4.50.0040.03711.96
5.4.40.0060.04111.95
5.4.30.0110.06211.95
5.4.20.0160.05311.95
5.4.10.0200.06211.95
5.4.00.0250.05711.43
5.3.290.0080.03712.80
5.3.280.0130.06312.71
5.3.270.0150.07912.72
5.3.260.0160.08312.72
5.3.250.0160.06712.72
5.3.240.0090.04612.72
5.3.230.0100.04512.70
5.3.220.0120.05612.68
5.3.210.0090.05312.68
5.3.200.0090.05912.68
5.3.190.0080.04112.68
5.3.180.0090.04512.67
5.3.170.0120.05212.67
5.3.160.0120.06412.68
5.3.150.0170.07212.68
5.3.140.0080.04612.66
5.3.130.0070.04512.66
5.3.120.0090.04512.66
5.3.110.0050.07712.66
5.3.100.0110.03612.12
5.3.90.0070.04512.09
5.3.80.0080.04812.08
5.3.70.0060.05912.07
5.3.60.0120.04512.07
5.3.50.0060.04312.00
5.3.40.0060.04412.00
5.3.30.0060.03711.94
5.3.20.0070.03911.72
5.3.10.0070.03511.69
5.3.00.0050.04011.68
5.2.170.0040.0359.18
5.2.160.0060.0349.17
5.2.150.0070.0379.18
5.2.140.0040.0319.17
5.2.130.0060.0309.13
5.2.120.0060.0349.13
5.2.110.0080.0279.14
5.2.100.0060.0359.14
5.2.90.0050.0309.14
5.2.80.0060.0339.13
5.2.70.0030.0359.14
5.2.60.0020.0409.09
5.2.50.0070.0669.05
5.2.40.0050.0339.03
5.2.30.0060.0309.00
5.2.20.0050.0299.00
5.2.10.0070.0498.92
5.2.00.0090.0368.78
5.1.60.0080.0208.06
5.1.50.0050.0258.05
5.1.40.0050.0288.04
5.1.30.0040.0268.39
5.1.20.0060.0248.41
5.1.10.0060.0238.13
5.1.00.0040.0268.13
5.0.50.0030.0226.64
5.0.40.0050.0186.50
5.0.30.0010.0346.31
5.0.20.0040.0186.29
5.0.10.0040.0216.26
5.0.00.0050.0296.25
4.4.90.0040.0144.77
4.4.80.0040.0144.75
4.4.70.0030.0164.75
4.4.60.0030.0154.75
4.4.50.0030.0164.77
4.4.40.0020.0274.71
4.4.30.0030.0164.76
4.4.20.0050.0144.84
4.4.10.0030.0164.85
4.4.00.0040.0244.76
4.3.110.0010.0184.67
4.3.100.0030.0154.67
4.3.90.0020.0164.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0010.0173.32
4.3.20.0020.0193.29
4.3.10.0020.0193.25
4.3.00.0100.02016.15

preferences:
42.81 ms | 401 KiB | 5 Q