3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds = 300; $hours = floor($seconds / 3600); $minutes = floor($seconds % 3600 / 60); $seconds = $seconds % 60; sprintf("%d:%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.70.0110.00418.16
8.3.60.0040.01816.63
8.3.50.0090.00922.85
8.3.40.0150.00018.66
8.3.30.0120.00319.00
8.3.20.0090.00920.12
8.3.10.0070.01120.46
8.3.00.0040.00420.94
8.2.190.0130.00618.16
8.2.180.0090.00916.50
8.2.170.0070.00722.96
8.2.160.0150.00320.44
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0030.01326.16
8.2.120.0080.00417.50
8.2.110.0070.00419.20
8.2.100.0000.01217.84
8.2.90.0040.00419.22
8.2.80.0000.00818.16
8.2.70.0090.00017.50
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0000.00818.28
8.2.30.0000.00719.54
8.2.20.0070.00317.59
8.2.10.0040.00418.12
8.2.00.0070.00017.86
8.1.280.0000.01425.92
8.1.270.0090.00022.26
8.1.260.0110.00726.35
8.1.250.0100.01028.09
8.1.240.0030.00622.54
8.1.230.0110.00020.97
8.1.220.0040.00418.77
8.1.210.0080.00018.99
8.1.200.0060.00317.24
8.1.190.0030.00517.52
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0040.00418.92
8.1.150.0050.00318.93
8.1.140.0030.00617.43
8.1.130.0000.00717.75
8.1.120.0000.00717.38
8.1.110.0070.00017.49
8.1.100.0060.00317.42
8.1.90.0000.00717.35
8.1.80.0040.00417.48
8.1.70.0000.00717.45
8.1.60.0060.00317.52
8.1.50.0040.00417.43
8.1.40.0120.00017.44
8.1.30.0000.00817.49
8.1.20.0040.00417.61
8.1.10.0040.00417.43
8.1.00.0080.00017.37
8.0.300.0050.00319.94
8.0.290.0090.00017.30
8.0.280.0000.00718.50
8.0.270.0000.00717.32
8.0.260.0070.00317.29
8.0.250.0070.00017.02
8.0.240.0070.00017.05
8.0.230.0070.00017.05
8.0.220.0030.00316.97
8.0.210.0000.00716.89
8.0.200.0030.00317.02
8.0.190.0030.00516.99
8.0.180.0040.00416.93
8.0.170.0040.00416.98
8.0.160.0000.00817.01
8.0.150.0080.00016.86
8.0.140.0040.00416.79
8.0.130.0060.00013.38
8.0.120.0040.00416.93
8.0.110.0040.00416.89
8.0.100.0040.00416.82
8.0.90.0050.00316.92
8.0.80.0130.00316.98
8.0.70.0030.00516.74
8.0.60.0070.00016.82
8.0.50.0000.00816.82
8.0.30.0100.00816.97
8.0.20.0140.00317.40
8.0.10.0040.00417.04
8.0.00.0080.01016.76
7.4.330.0050.00015.02
7.4.320.0000.00616.42
7.4.300.0030.00316.50
7.4.290.0030.00316.42
7.4.280.0000.00716.62
7.4.270.0000.00816.59
7.4.260.0000.00716.60
7.4.250.0040.00416.41
7.4.240.0050.00216.56
7.4.230.0000.00716.48
7.4.220.0140.00316.69
7.4.210.0040.01116.51
7.4.200.0040.00416.59
7.4.160.0040.01216.62
7.4.150.0190.00017.40
7.4.140.0080.00917.86
7.4.130.0130.00516.53
7.4.120.0090.00816.53
7.4.110.0130.00316.62
7.4.100.0100.00716.50
7.4.90.0100.01016.64
7.4.80.0080.01019.39
7.4.70.0130.00316.50
7.4.60.0000.01616.34
7.4.50.0030.00516.53
7.4.40.0100.00716.52
7.4.30.0030.01416.42
7.4.00.0050.00814.77
7.3.330.0030.00313.26
7.3.320.0030.00313.11
7.3.310.0060.00016.29
7.3.300.0040.00416.43
7.3.290.0070.01116.42
7.3.280.0090.00916.37
7.3.270.0070.01117.40
7.3.260.0060.01016.45
7.3.250.0050.01616.30
7.3.240.0110.00616.39
7.3.230.0140.00716.39
7.3.210.0060.01316.37
7.3.200.0110.00519.39
7.3.190.0160.00716.41
7.3.180.0090.00616.35
7.3.170.0060.01116.40
7.3.160.0030.01216.60
7.2.330.0100.00716.62
7.2.320.0040.01416.68
7.2.310.0170.00316.63
7.2.300.0120.01216.62
7.2.290.0030.01416.45
7.2.00.0030.01019.18
7.1.100.0120.00617.85
7.1.70.0000.01117.20
7.1.60.0060.01019.34
7.1.50.0040.01816.85
7.1.00.0030.07722.45
7.0.200.0130.00316.51
7.0.140.0070.04022.04
7.0.60.0130.08319.95
7.0.50.0100.05317.86
7.0.40.0070.09320.41
7.0.30.0300.04720.30
7.0.20.0200.04320.16
7.0.10.0300.07720.33
7.0.00.0000.05019.99
5.6.280.0030.07320.89
5.6.210.0130.07320.49
5.6.200.0130.03318.23
5.6.190.0030.04320.63
5.6.180.0030.05720.41
5.6.170.0270.07720.71
5.6.160.0070.05020.61
5.6.150.0100.07318.11
5.6.140.0100.06018.16
5.6.130.0070.08018.11
5.6.120.0130.04320.99
5.6.110.0200.05021.00
5.6.100.0000.07021.00
5.6.90.0130.07020.98
5.6.80.0070.07720.34
5.6.70.4700.03720.39
5.5.350.0100.07320.41
5.5.340.0070.03718.02
5.5.330.0070.08020.29
5.5.320.0170.04320.35
5.5.310.0230.04720.41
5.5.300.0070.08317.95
5.5.290.0000.08017.96
5.5.280.0170.07320.84
5.5.270.0070.08320.86
5.5.260.0070.08020.73
5.5.250.0100.03320.57
5.5.240.0070.07320.25
5.4.450.0330.06319.46
5.4.440.0570.05319.11
5.4.430.0400.03719.41
5.4.420.0330.07319.13
5.4.410.0270.06019.27
5.4.400.0300.04019.25
5.4.390.0370.04019.25
5.4.380.0300.04719.17
5.4.370.0370.04319.25
5.4.360.0400.06018.79
5.4.350.0330.06719.16
5.4.340.0270.05019.16
5.4.320.0300.03719.09
5.4.310.0300.04319.16
5.4.300.0270.07319.04
5.4.290.0370.06719.13
5.4.280.0470.03719.09
5.4.270.0270.05719.21
5.4.260.0330.06319.25
5.4.250.0300.05719.23
5.4.240.0370.06319.09
5.4.230.0300.06319.12
5.4.220.0370.06719.05
5.4.210.0330.07018.88
5.4.200.0300.05319.11
5.4.190.0330.04019.07
5.4.180.0270.04018.87
5.4.170.0370.04019.12
5.4.160.0370.07019.05
5.4.150.0400.06319.22
5.4.140.0200.04316.16
5.4.130.0570.03716.46
5.4.120.0230.06716.16
5.4.110.0230.07316.43
5.4.100.0300.07316.47
5.4.90.0300.04716.06
5.4.80.0200.04316.29
5.4.70.0300.04016.18
5.4.60.0230.03316.20
5.4.50.0200.04016.40
5.4.40.0300.06316.32
5.4.30.0300.05016.43
5.4.20.0330.06316.36
5.4.10.0300.07016.18
5.4.00.0300.06715.70
5.3.290.0300.03714.52
5.3.280.0200.07014.62
5.3.270.0270.05014.44
5.3.260.0270.06314.52
5.3.250.0330.07314.45
5.3.240.0300.06314.44
5.3.230.0230.04314.64
5.3.220.0370.06014.40
5.3.210.0370.06714.40
5.3.200.0400.06014.59
5.3.190.0330.06714.44
5.3.180.0300.03314.39
5.3.170.0300.03014.46
5.3.160.0270.03714.65
5.3.150.0330.04714.61
5.3.140.0200.04014.48
5.3.130.0330.07014.38
5.3.120.0270.07314.57
5.3.110.0270.08014.50
5.3.100.0300.07314.08
5.3.90.0300.05313.87
5.3.80.0300.04713.89
5.3.70.0230.05313.85
5.3.60.0370.06313.80
5.3.50.0300.06013.88
5.3.40.0300.06713.72
5.3.30.0330.06313.89
5.3.20.0400.06013.48
5.3.10.0400.06013.60
5.3.00.0270.02713.43
5.2.170.0200.04011.72
5.2.160.0300.05711.72
5.2.150.0270.03711.72
5.2.140.0300.05311.72
5.2.130.0330.04311.72
5.2.120.0200.03311.72
5.2.110.0200.05011.72
5.2.100.0170.03011.72
5.2.90.0200.03011.72
5.2.80.0130.03011.72
5.2.70.0200.02311.72
5.2.60.0200.02711.72
5.2.50.0270.01711.72
5.2.40.0130.02711.72
5.2.30.0070.03311.72
5.2.20.0200.02311.72
5.2.10.0130.02711.72
5.2.00.0100.03311.72
5.1.60.0170.02011.72
5.1.50.0170.02711.72
5.1.40.0100.02311.72
5.1.30.0100.02711.72
5.1.20.0100.03011.72
5.1.10.0070.03011.72
5.1.00.0130.02711.72
5.0.50.0170.01311.72
5.0.40.0070.02011.72
5.0.30.0100.02711.72
5.0.20.0100.01711.72
5.0.10.0030.02311.72
5.0.00.0030.03011.72
4.4.90.0070.01711.72
4.4.80.0030.01711.72
4.4.70.0070.01311.72
4.4.60.0070.01311.72
4.4.50.0100.01011.72
4.4.40.0070.02311.72
4.4.30.0070.01311.72
4.4.20.0070.01711.72
4.4.10.0030.01711.72
4.4.00.0070.03011.72
4.3.110.0070.01311.72
4.3.100.0070.01311.72
4.3.90.0030.01711.72
4.3.80.0070.02311.72
4.3.70.0070.01711.72
4.3.60.0070.01711.72
4.3.50.0070.01311.72
4.3.40.0070.02711.72
4.3.30.0000.01711.72
4.3.20.0030.01711.72
4.3.10.0000.02011.72
4.3.00.0030.01711.72

preferences:
46.91 ms | 401 KiB | 5 Q