3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("precision", 52); function formatBytes($bytes, $precision = 2) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $bytes = max($bytes, 0); $pow = floor(($bytes ? log($bytes) : 0) / log(1024)); $pow = min($pow, count($units) - 1); $bytes /= pow(1024, $pow); return round($bytes, $precision) . ' ' . $units[$pow]; } echo formatBytes(1317474, 1);

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.0140.00418.52
8.3.50.0060.01316.77
8.3.40.0060.00919.27
8.3.30.0080.01219.13
8.3.20.0060.00319.63
8.3.10.0040.00423.91
8.3.00.0080.00022.55
8.2.180.0150.00618.26
8.2.170.0130.00319.33
8.2.160.0130.00322.96
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00021.38
8.2.120.0080.00026.35
8.2.110.0100.00020.63
8.2.100.0120.00618.16
8.2.90.0030.00718.28
8.2.80.0040.00418.18
8.2.70.0080.00018.25
8.2.60.0030.00618.59
8.2.50.0060.00318.10
8.2.40.0040.00419.77
8.2.30.0000.00720.89
8.2.20.0050.00318.31
8.2.10.0000.00718.63
8.2.00.0000.00819.61
8.1.280.0080.00825.92
8.1.270.0000.00824.07
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00617.77
8.1.230.0040.00723.00
8.1.220.0080.00417.74
8.1.210.0040.00418.90
8.1.200.0030.00617.72
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0050.00318.68
8.1.160.0080.00419.20
8.1.150.0040.00419.13
8.1.140.0060.00320.90
8.1.130.0070.00319.32
8.1.120.0000.00717.75
8.1.110.0030.00517.58
8.1.100.0000.00717.72
8.1.90.0040.00417.64
8.1.80.0000.00717.71
8.1.70.0000.00817.75
8.1.60.0030.00617.84
8.1.50.0000.00817.74
8.1.40.0030.00517.75
8.1.30.0030.00517.70
8.1.20.0000.00817.88
8.1.10.0000.00817.83
8.1.00.0000.00717.67
8.0.300.0000.00719.85
8.0.290.0030.00617.00
8.0.280.0060.00318.73
8.0.270.0030.00317.39
8.0.260.0030.00320.43
8.0.250.0040.00417.23
8.0.240.0000.00617.20
8.0.230.0000.00717.22
8.0.220.0000.00717.15
8.0.210.0030.00317.14
8.0.200.0040.00417.04
8.0.190.0040.00417.21
8.0.180.0100.00317.22
8.0.170.0050.00717.11
8.0.160.0040.00417.23
8.0.150.0070.00317.16
8.0.140.0030.00317.08
8.0.130.0030.00313.50
8.0.120.0040.00417.07
8.0.110.0050.00317.09
8.0.100.0000.00717.11
8.0.90.0000.00717.19
8.0.80.0050.01317.13
8.0.70.0040.00416.97
8.0.60.0040.00417.15
8.0.50.0050.00317.04
8.0.30.0100.00717.21
8.0.20.0130.00817.45
8.0.10.0080.00017.12
8.0.00.0070.01316.93
7.4.330.0000.00515.55
7.4.320.0000.00616.73
7.4.300.0030.00316.66
7.4.290.0060.00316.63
7.4.280.0000.00716.77
7.4.270.0030.00316.70
7.4.260.0020.00516.81
7.4.250.0000.00716.86
7.4.240.0070.00016.85
7.4.230.0070.00016.68
7.4.220.0040.00416.92
7.4.210.0080.01116.86
7.4.200.0030.00316.75
7.4.160.0110.00516.73
7.4.140.0090.01117.86
7.4.130.0100.01016.68
7.4.120.0120.00916.80
7.4.110.0110.00616.83
7.4.100.0140.00316.72
7.4.90.0150.00416.86
7.4.80.0150.00619.39
7.4.70.0080.00816.71
7.4.60.0000.02016.63
7.4.50.0030.01416.73
7.4.40.0040.01316.64
7.4.00.0030.01215.37
7.3.330.0050.00013.58
7.3.320.0000.00713.58
7.3.310.0000.00716.49
7.3.300.0000.00716.42
7.3.290.0000.00716.45
7.3.280.0060.00916.43
7.3.260.0080.00916.57
7.3.240.0140.00716.71
7.3.230.0030.01716.56
7.3.210.0090.00916.58
7.3.200.0030.01416.80
7.3.190.0120.00316.69
7.3.180.0090.01516.52
7.3.170.0160.00016.73
7.3.160.0100.00716.64
7.2.330.0120.01216.84
7.2.320.0100.01316.68
7.2.310.0100.01316.88
7.2.300.0160.02116.97
7.2.290.0100.00617.11
7.2.110.0160.00617.06
7.2.90.0730.00714.99
7.2.80.0680.00715.01
7.2.70.0180.00615.36
7.2.60.0140.00315.27
7.2.50.2170.00914.97
7.2.40.0120.00815.32
7.2.30.3100.00715.21
7.2.20.2350.01015.35
7.2.10.1100.00615.27
7.2.00.0120.00615.23
7.1.210.0100.00514.05
7.1.200.1270.00714.22
7.1.190.0130.00314.01
7.1.180.0720.00714.18
7.1.170.0100.00714.10
7.1.160.0260.00614.18
7.1.150.3700.01014.05
7.1.140.0120.00614.01
7.1.130.0250.00014.22
7.1.120.1960.01014.21
7.1.110.0330.00614.05
7.1.100.0900.01014.00
7.1.90.0470.00714.27
7.1.80.0110.00714.14
7.1.70.0440.01314.21
7.1.60.0490.00031.92
7.1.50.0270.01031.87
7.1.40.1520.00332.27
7.1.30.0730.00331.94
7.1.20.0290.00732.13
7.1.10.0350.00614.06
7.1.00.0910.01014.17

preferences:
60.81 ms | 400 KiB | 5 Q