3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds_input = (int) 63; $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.40.0100.01019.01
8.3.30.0070.00719.10
8.3.20.0000.00720.16
8.3.10.0080.00023.66
8.3.00.0070.00019.13
8.2.170.0130.00622.96
8.2.160.0100.00320.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.01020.80
8.2.110.0030.00722.20
8.2.100.0040.00818.01
8.2.90.0050.00318.03
8.2.80.0000.00817.97
8.2.70.0000.00917.75
8.2.60.0000.01018.16
8.2.50.0030.00518.07
8.2.40.0060.00319.88
8.2.30.0040.00418.17
8.2.20.0050.00217.80
8.2.10.0030.00618.03
8.2.00.0040.00417.85
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0150.00322.36
8.1.230.0070.00421.07
8.1.220.0000.00817.79
8.1.210.0060.00318.89
8.1.200.0030.00617.48
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0000.00722.04
8.1.150.0070.00018.69
8.1.140.0000.00817.48
8.1.130.0000.00717.79
8.1.120.0000.00717.41
8.1.110.0040.00417.41
8.1.100.0040.00417.49
8.1.90.0020.00517.52
8.1.80.0070.00017.52
8.1.70.0000.00717.38
8.1.60.0000.00917.60
8.1.50.0050.00317.48
8.1.40.0000.00717.40
8.1.30.0060.00617.55
8.1.20.0040.00417.69
8.1.10.0070.00017.55
8.1.00.0040.00417.38
8.0.300.0030.00320.03
8.0.290.0050.00316.88
8.0.280.0030.00318.49
8.0.270.0070.00017.25
8.0.260.0000.00817.34
8.0.250.0000.00717.10
8.0.240.0100.00017.16
8.0.230.0030.00317.06
8.0.220.0030.00317.03
8.0.210.0050.00317.01
8.0.200.0030.00316.95
8.0.190.0030.00516.97
8.0.180.0000.00816.99
8.0.170.0000.00717.04
8.0.160.0040.00316.91
8.0.150.0040.00417.03
8.0.140.0030.00616.84
8.0.130.0000.00913.37
8.0.120.0030.00517.03
8.0.110.0030.00316.95
8.0.100.0000.00816.95
8.0.90.0050.00316.94
8.0.80.0080.00816.96
8.0.70.0000.00716.82
8.0.60.0020.00516.86
8.0.50.0070.00016.79
8.0.30.0140.00517.21
8.0.20.0120.00717.40
8.0.10.0030.00517.23
8.0.00.0040.01416.72
7.4.330.0000.00615.00
7.4.320.0000.00616.59
7.4.300.0000.00616.60
7.4.290.0040.00416.60
7.4.280.0000.00716.46
7.4.270.0000.00716.63
7.4.260.0000.00716.43
7.4.250.0040.00416.44
7.4.240.0020.00516.54
7.4.230.0050.00316.64
7.4.220.0090.00916.61
7.4.210.0070.00916.61
7.4.200.0000.00716.32
7.4.190.0030.00316.45
7.4.160.0070.00716.64
7.4.150.0070.01017.40
7.4.140.0070.01217.86
7.4.130.0100.00716.67
7.4.120.0060.01116.66
7.4.110.0170.00616.43
7.4.100.0060.01116.69
7.4.90.0070.01116.54
7.4.80.0130.00619.39
7.4.70.0060.01016.67
7.4.60.0060.01016.80
7.4.50.0040.00416.28
7.4.40.0110.00616.63
7.4.30.0070.01016.54
7.4.10.0120.00616.49
7.4.00.0060.01115.48
7.3.330.0030.00313.32
7.3.320.0030.00313.15
7.3.310.0000.00716.31
7.3.300.0070.00016.46
7.3.290.0060.00916.40
7.3.280.0090.00816.45
7.3.270.0030.01317.40
7.3.260.0090.01316.38
7.3.250.0110.00716.58
7.3.240.0110.00616.58
7.3.230.0060.00916.45
7.3.210.0090.01216.65
7.3.200.0030.01319.39
7.3.190.0070.01016.57
7.3.180.0130.00316.34
7.3.170.0060.01016.62
7.3.160.0100.00616.34
7.3.130.0000.01316.52
7.3.120.0110.00615.70
7.3.110.0100.01016.32
7.3.100.0100.00716.52
7.3.90.0090.00916.36
7.3.80.0000.01216.45
7.3.70.0090.00616.43
7.3.60.0030.01416.27
7.3.50.0070.00316.41
7.3.40.0060.00616.34
7.3.30.0030.01216.37
7.3.20.0060.01218.27
7.3.10.0120.00717.20
7.3.00.0110.00617.44
7.2.330.0070.01016.64
7.2.320.0170.00316.79
7.2.310.0150.01216.72
7.2.300.0080.00816.48
7.2.290.0130.00616.62
7.2.260.0130.00616.54
7.2.250.0060.01216.73
7.2.240.0100.01016.40
7.2.230.0060.00916.42
7.2.220.0110.00316.62
7.2.210.0040.01116.70
7.2.200.0060.00616.43
7.2.190.0000.01016.55
7.2.180.0080.00616.50
7.2.170.0030.01416.57
7.2.160.0080.00416.70
7.2.150.0060.00618.55
7.2.140.0030.00818.28
7.2.130.0100.00417.42
7.2.120.0120.00517.60
7.2.110.0100.00617.63
7.2.100.0050.01117.53
7.2.90.0080.00717.71
7.2.80.0050.00817.66
7.2.70.0030.01617.53
7.2.60.0060.00717.32
7.2.50.0090.00717.71
7.2.40.0060.00917.66
7.2.30.0100.00717.69
7.2.20.0080.00817.64
7.2.10.0060.01017.56
7.2.00.0080.00818.22
7.1.330.0060.01017.15
7.1.320.0110.00817.32
7.1.310.0040.00817.48
7.1.300.0000.01317.25
7.1.290.0060.00317.33
7.1.280.0070.01017.41
7.1.270.0090.00917.29
7.1.260.0060.00917.43
7.1.250.0060.00816.66
7.1.240.0060.00917.41
7.1.230.0040.01417.13
7.1.220.0080.00817.21
7.1.210.0040.00717.28
7.1.200.0110.00316.62
7.1.190.0110.00617.27
7.1.180.0040.01117.30
7.1.170.0060.00617.30
7.1.160.0090.00617.29
7.1.150.0030.01217.20
7.1.140.0000.01417.40
7.1.130.0040.01217.41
7.1.120.0070.01017.31
7.1.110.0030.00917.24
7.1.100.0080.00817.65
7.1.90.0040.01217.43
7.1.80.0080.00417.45
7.1.70.0030.00917.27
7.1.60.0040.01218.48
7.1.50.0050.01017.13
7.1.40.0060.00917.44
7.1.30.0030.01017.29
7.1.20.0030.01017.31
7.1.10.0070.00717.19
7.1.00.0070.04019.85
7.0.330.0030.01017.01
7.0.320.0040.01117.15
7.0.310.0080.00317.05
7.0.300.0100.00317.09
7.0.290.0090.00917.14
7.0.280.0030.01016.97
7.0.270.0030.01016.92
7.0.260.0110.00716.80
7.0.250.0050.00516.99
7.0.240.0030.01317.06
7.0.230.0030.01017.06
7.0.220.0140.00317.13
7.0.210.0070.01016.92
7.0.200.0060.00516.86
7.0.190.0090.00617.17
7.0.180.0090.00617.07
7.0.170.0070.00717.06
7.0.160.0030.01017.04
7.0.150.0080.00817.09
7.0.140.0050.04019.68
7.0.130.0070.00716.95
7.0.120.0110.00416.95
7.0.110.0030.01017.04
7.0.100.0140.00317.07
7.0.90.0030.00617.04
7.0.80.0030.00717.17
7.0.70.0040.00817.15
7.0.60.0060.04418.57
7.0.50.0060.04017.30
7.0.40.0060.04517.55
7.0.30.0150.04517.52
7.0.20.0260.03517.53
7.0.10.0050.04717.53
7.0.00.0050.02517.49
5.6.400.0030.01016.02
5.6.390.0000.01416.00
5.6.380.0030.00916.14
5.6.370.0100.00315.73
5.6.360.0090.00616.12
5.6.350.0060.00816.03
5.6.340.0000.01315.96
5.6.330.0140.00016.02
5.6.320.0000.01115.81
5.6.310.0000.01016.11
5.6.300.0030.01015.94
5.6.290.0080.00815.70
5.6.280.0070.03718.55
5.6.270.0000.01616.02
5.6.260.0030.01015.83
5.6.250.0090.00315.98
5.6.240.0080.00515.99
5.6.230.0000.01516.15
5.6.220.0060.00616.10
5.6.210.0030.03118.36
5.6.200.0140.03816.94
5.6.190.0080.02218.31
5.6.180.0300.03718.00
5.6.170.0180.04118.15
5.6.160.0020.04318.09
5.6.150.0070.03217.06
5.6.140.0130.03516.98
5.6.130.0030.02817.04
5.6.120.0090.04718.43
5.6.110.0050.05018.55
5.6.100.0100.04318.46
5.6.90.0050.04718.31
5.6.80.0090.03518.17
5.6.70.0130.00015.97
5.6.60.0110.00415.74
5.6.50.0030.00615.85
5.6.40.0070.00715.81
5.6.30.0040.01115.84
5.6.20.0040.00716.03
5.6.10.0030.01015.80
5.6.00.0040.01115.59
5.5.380.0050.00516.04
5.5.370.0030.01115.68
5.5.360.0070.00315.76
5.5.350.0230.03818.04
5.5.340.0080.04516.88
5.5.330.0150.04017.96
5.5.320.0110.04318.04
5.5.310.0100.02718.00
5.5.300.0070.03216.94
5.5.290.0090.04416.93
5.5.280.0070.03918.36
5.5.270.0050.03118.17
5.5.260.0120.04018.32
5.5.250.0100.04318.19
5.5.240.0030.04317.89
5.5.230.0070.00715.84
5.5.220.0040.01115.84
5.5.210.0030.01015.94
5.5.200.0060.01115.66
5.5.190.0120.00615.70
5.5.180.0100.00615.71
5.5.170.0070.00715.63
5.5.160.0110.00315.71
5.5.150.0070.01115.79
5.5.140.0130.00515.51
5.5.130.0120.00615.88
5.5.120.0100.00615.64
5.5.110.0070.01315.78
5.5.100.0000.01515.66
5.5.90.0030.01415.71
5.5.80.0100.01015.58
5.5.70.0160.00315.71
5.5.60.0060.01115.64
5.5.50.0110.00715.72
5.5.40.0040.01415.48
5.5.30.0070.01115.95
5.5.20.0100.00615.80
5.5.10.0000.01115.76
5.5.00.0040.00815.77
5.4.450.0380.03215.99
5.4.440.0490.03115.79
5.4.430.0650.03015.95
5.4.420.0150.03916.11
5.4.410.0420.02615.98
5.4.400.0300.03315.81
5.4.390.0540.03315.74
5.4.380.0070.03415.68
5.4.370.0110.02815.58
5.4.360.0080.02815.66
5.4.350.0100.03115.61
5.4.340.0100.02715.66
5.4.330.0060.00312.56
5.4.320.0050.02312.44
5.4.310.0050.02512.42
5.4.300.0070.02212.51
5.4.290.0050.02412.44
5.4.280.0050.02412.45
5.4.270.0040.02212.41
5.4.260.0040.02812.42
5.4.250.0030.02512.41
5.4.240.0070.02212.43
5.4.230.0100.02312.42
5.4.220.0080.02312.52
5.4.210.0060.02312.52
5.4.200.0100.02212.43
5.4.190.0070.02212.47
5.4.180.0070.02212.38
5.4.170.0070.02012.39
5.4.160.0070.02112.43
5.4.150.0040.02612.52
5.4.140.0050.02412.34
5.4.130.0040.02012.22
5.4.120.0020.02212.27
5.4.110.0020.02512.27
5.4.100.0080.02112.26
5.4.90.0070.02112.30
5.4.80.0070.02112.29
5.4.70.0050.02312.32
5.4.60.0040.02112.25
5.4.50.0050.02212.37
5.4.40.0050.02012.32
5.4.30.0090.02112.31
5.4.20.0070.02412.24
5.4.10.0080.01712.28
5.4.00.0100.01812.00
5.3.290.0040.02213.02
5.3.280.0050.02412.92
5.3.270.0080.02812.87
5.3.260.0070.02312.97
5.3.250.0070.02212.90
5.3.240.0030.02312.81
5.3.230.0060.02212.81
5.3.220.0060.02412.76
5.3.210.0060.02312.79
5.3.200.0050.02512.67
5.3.190.0040.02212.78
5.3.180.0050.02912.89
5.3.170.0050.02912.94
5.3.160.0050.03012.78
5.3.150.0050.02312.88
5.3.140.0040.02712.81
5.3.130.0070.02712.78
5.3.120.0060.02312.87
5.3.110.0050.02412.86
5.3.100.0050.02412.61
5.3.90.0050.02312.62
5.3.80.0030.02512.45
5.3.70.0050.02012.39
5.3.60.0050.02212.57
5.3.50.0080.02212.50
5.3.40.0040.02612.51
5.3.30.0060.03112.48
5.3.20.0110.02212.46
5.3.10.0080.01912.26
5.3.00.0060.02012.29
5.2.170.0060.0329.18
5.2.160.0020.0329.18
5.2.150.0090.0289.18
5.2.140.0050.0349.17
5.2.130.0050.0299.13
5.2.120.0060.0289.13
5.2.110.0050.0309.14
5.2.100.0050.0359.14
5.2.90.0070.0279.14
5.2.80.0060.0299.13
5.2.70.0020.0349.14
5.2.60.0010.0349.09
5.2.50.0030.0329.05
5.2.40.0030.0319.04
5.2.30.0060.0289.01
5.2.20.0030.0309.00
5.2.10.0040.0288.92
5.2.00.0050.0298.77
5.1.60.0040.0248.06
5.1.50.0080.0248.05
5.1.40.0030.0328.04
5.1.30.0030.0288.39
5.1.20.0080.0228.41
5.1.10.0020.0328.13
5.1.00.0020.0278.14
5.0.50.0050.0196.64
5.0.40.0030.0246.50
5.0.30.0030.0416.31
5.0.20.0030.0226.29
5.0.10.0010.0226.26
5.0.00.0060.0336.25
4.4.90.0030.0204.78
4.4.80.0010.0174.75
4.4.70.0020.0164.75
4.4.60.0010.0174.75
4.4.50.0040.0144.77
4.4.40.0030.0284.71
4.4.30.0030.0194.76
4.4.20.0040.0144.84
4.4.10.0030.0154.85
4.4.00.0040.0234.76
4.3.110.0020.0164.66
4.3.100.0040.0144.67
4.3.90.0030.0144.64
4.3.80.0020.0294.58
4.3.70.0020.0164.63
4.3.60.0040.0164.63
4.3.50.0050.0174.63
4.3.40.0040.0284.54
4.3.30.0020.0183.31
4.3.20.0020.0193.29
4.3.10.0020.0163.25
4.3.00.0170.01716.15

preferences:
40.36 ms | 400 KiB | 5 Q