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);

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.00616.50
8.3.50.0090.01121.89
8.3.40.0180.00318.59
8.3.30.0000.01519.22
8.3.20.0070.00020.46
8.3.10.0040.00423.83
8.3.00.0040.00419.21
8.2.180.0110.01116.50
8.2.170.0090.00922.96
8.2.160.0100.00320.34
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0040.00420.95
8.2.110.0070.00322.20
8.2.100.0100.00717.67
8.2.90.0050.00319.17
8.2.80.0030.00517.97
8.2.70.0000.00917.75
8.2.60.0030.00718.05
8.2.50.0040.00418.07
8.2.40.0030.00620.07
8.2.30.0050.00318.30
8.2.20.0080.00017.74
8.2.10.0040.00418.13
8.2.00.0000.00717.91
8.1.280.0100.01025.92
8.1.270.0100.00324.09
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00620.96
8.1.230.0040.00719.20
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00417.47
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0080.00018.46
8.1.160.0000.00722.02
8.1.150.0050.00218.55
8.1.140.0000.00817.35
8.1.130.0030.00317.98
8.1.120.0000.00717.38
8.1.110.0040.00417.45
8.1.100.0050.00217.38
8.1.90.0030.00317.48
8.1.80.0040.00417.46
8.1.70.0040.00417.33
8.1.60.0050.00317.55
8.1.50.0000.00817.47
8.1.40.0030.00517.50
8.1.30.0080.00417.64
8.1.20.0000.00717.59
8.1.10.0040.00417.54
8.1.00.0000.00817.55
8.0.300.0070.00019.85
8.0.290.0080.00017.17
8.0.280.0030.00318.42
8.0.270.0000.00717.44
8.0.260.0060.00017.23
8.0.250.0030.00317.06
8.0.240.0030.00617.04
8.0.230.0030.00316.98
8.0.220.0040.00416.92
8.0.210.0030.00316.86
8.0.200.0000.00717.02
8.0.190.0040.00417.05
8.0.180.0050.00217.06
8.0.170.0050.00317.03
8.0.160.0040.00416.95
8.0.150.0040.00416.91
8.0.140.0030.00416.93
8.0.130.0000.00613.39
8.0.120.0040.00416.90
8.0.110.0040.00417.00
8.0.100.0040.00416.90
8.0.90.0070.00016.80
8.0.80.0110.00417.05
8.0.70.0000.00716.91
8.0.60.0020.00516.90
8.0.50.0000.00717.02
8.0.30.0100.00917.15
8.0.20.0100.00817.40
8.0.10.0030.00316.98
8.0.00.0110.00716.92
7.4.330.0000.00615.00
7.4.320.0000.00616.40
7.4.300.0000.00716.57
7.4.290.0000.00716.57
7.4.280.0000.00716.43
7.4.270.0030.00316.64
7.4.260.0030.00316.59
7.4.250.0070.00016.36
7.4.240.0030.00316.55
7.4.230.0030.00316.66
7.4.220.0150.00416.55
7.4.210.0130.00716.50
7.4.200.0030.00316.39
7.4.190.0040.00416.40
7.4.160.0070.01016.68
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0120.00516.50
7.4.120.0100.00616.47
7.4.110.0120.00616.66
7.4.100.0090.01316.42
7.4.90.0150.00916.34
7.4.80.0150.00319.39
7.4.70.0150.00016.43
7.4.60.0120.01216.64
7.4.50.0000.00816.34
7.4.40.0090.01216.71
7.4.30.0150.00316.54
7.4.00.0120.00314.97
7.3.330.0030.00313.32
7.3.320.0000.00513.34
7.3.310.0000.00716.43
7.3.300.0000.00716.30
7.3.290.0200.00016.42
7.3.280.0090.00916.39
7.3.270.0130.00317.40
7.3.260.0060.01116.48
7.3.250.0070.01116.44
7.3.240.0130.00316.59
7.3.230.0100.00716.40
7.3.210.0080.01116.50
7.3.200.0030.01519.39
7.3.190.0110.01116.45
7.3.180.0060.01016.39
7.3.170.0090.01216.53
7.3.160.0090.00616.52
7.3.120.0100.00315.02
7.2.330.0070.01016.52
7.2.320.0170.00716.48
7.2.310.0030.01616.29
7.2.300.0090.00916.38
7.2.290.0170.00016.57
7.2.60.0040.00716.81
7.2.00.0070.00719.45
7.1.200.0030.01015.68
7.1.100.0120.00418.26
7.1.70.0040.00416.99
7.1.60.0070.01719.46
7.1.50.0030.01016.63
7.1.00.0030.07722.28
7.0.200.0050.00316.84
7.0.140.0030.07321.99
7.0.60.0170.07719.96
7.0.50.0070.04017.80
7.0.40.0070.04319.98
7.0.30.0230.07020.20
7.0.20.0300.05320.17
7.0.10.0030.05320.33
7.0.00.0000.05720.20
5.6.280.0030.07320.77
5.6.210.0170.07020.74
5.6.200.0100.07718.18
5.6.190.0030.05720.64
5.6.180.0370.08020.33
5.6.170.0200.06320.48
5.6.160.0130.07720.33
5.6.150.0130.08018.17
5.6.140.0100.07718.21
5.6.130.0200.06718.11
5.6.120.0030.04321.11
5.6.110.0170.07321.10
5.6.100.0100.08021.07
5.6.90.0130.07721.00
5.6.80.0170.07020.53
5.5.350.0330.07320.48
5.5.340.0100.07018.02
5.5.330.0000.06020.20
5.5.320.0030.07320.13
5.5.310.0130.06020.32
5.5.300.0100.08317.96
5.5.290.0100.07317.98
5.5.280.0130.04020.73
5.5.270.0170.07320.82
5.5.260.0100.05720.75
5.5.250.0000.06720.54
5.5.240.0230.03720.15
5.4.450.0570.06019.55
5.4.440.0970.05319.11
5.4.430.1270.05319.27
5.4.420.0630.06719.46
5.4.410.0930.05319.49
5.4.400.0930.05319.28
5.4.390.0900.05319.15
5.4.380.0200.05018.50
5.4.370.0070.06018.56
5.4.360.0100.05318.62
5.4.350.0170.05018.49
5.4.340.0100.05718.72
5.4.320.0050.03812.45
5.4.310.0030.04112.45
5.4.300.0090.03412.45
5.4.290.0060.04212.45
5.4.280.0060.03812.35
5.4.270.0080.04112.34
5.4.260.0080.04212.35
5.4.250.0040.04112.35
5.4.240.0070.03712.34
5.4.230.0050.03812.34
5.4.220.0060.03612.34
5.4.210.0070.03412.34
5.4.200.0070.03712.34
5.4.190.0060.03712.33
5.4.180.0060.03612.33
5.4.170.0130.03612.34
5.4.160.0040.03812.34
5.4.150.0080.03412.34
5.4.140.0050.03812.02
5.4.130.0060.03612.01
5.4.120.0060.03511.96
5.4.110.0050.03611.96
5.4.100.0060.03411.96
5.4.90.0080.03411.96
5.4.80.0060.03711.96
5.4.70.0070.03411.96
5.4.60.0050.03611.96
5.4.50.0070.03511.96
5.4.40.0070.03411.95
5.4.30.0060.04211.95
5.4.20.0060.03411.95
5.4.10.0070.03311.95
5.4.00.0080.04411.44
5.3.290.0040.04912.80
5.3.280.0080.04112.71
5.3.270.0070.04612.73
5.3.260.0060.03912.72
5.3.250.0050.03912.72
5.3.240.0030.04112.72
5.3.230.0070.03812.71
5.3.220.0070.03712.68
5.3.210.0050.03912.68
5.3.200.0080.03612.68
5.3.190.0060.03712.68
5.3.180.0040.03912.67
5.3.170.0080.03512.67
5.3.160.0060.03612.67
5.3.150.0090.03412.67
5.3.140.0060.03512.66
5.3.130.0100.03612.66
5.3.120.0060.04012.66
5.3.110.0050.04012.66
5.3.100.0090.03912.12
5.3.90.0050.05512.08
5.3.80.0090.04812.07
5.3.70.0090.04112.07
5.3.60.0090.03612.06
5.3.50.0070.03912.00
5.3.40.0080.03712.00
5.3.30.0070.03411.94
5.3.20.0080.03311.72
5.3.10.0040.03711.69
5.3.00.0070.03711.67
5.2.170.0040.0439.18
5.2.160.0040.0319.18
5.2.150.0020.0329.18
5.2.140.0070.0299.18
5.2.130.0060.0359.13
5.2.120.0070.0369.14
5.2.110.0100.0359.14
5.2.100.0030.0319.14
5.2.90.0030.0319.14
5.2.80.0060.0319.13
5.2.70.0060.0319.14
5.2.60.0050.0319.09
5.2.50.0050.0309.06
5.2.40.0080.0269.03
5.2.30.0030.0319.01
5.2.20.0030.0319.00
5.2.10.0060.0278.92
5.2.00.0030.0308.78
5.1.60.0050.0228.06
5.1.50.0030.0258.06
5.1.40.0030.0268.04
5.1.30.0030.0278.39
5.1.20.0050.0288.41
5.1.10.0040.0338.14
5.1.00.0040.0268.14
5.0.50.0060.0186.61
5.0.40.0040.0186.47
5.0.30.0010.0336.29
5.0.20.0060.0166.26
5.0.10.0030.0206.24
5.0.00.0010.0336.23
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0050.0134.75
4.4.60.0050.0134.76
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0020.0174.75
4.4.20.0040.0144.85
4.4.10.0060.0134.85
4.4.00.0040.0244.76
4.3.110.0030.0164.67
4.3.100.0030.0144.67
4.3.90.0030.0144.64
4.3.80.0040.0244.58
4.3.70.0020.0154.63
4.3.60.0010.0164.62
4.3.50.0020.0234.63
4.3.40.0030.0234.54
4.3.30.0040.0203.29
4.3.20.0020.0223.26
4.3.10.0000.0223.21
4.3.00.0270.02316.15

preferences:
40.68 ms | 401 KiB | 5 Q