3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('nice_number')) { function nice_number($n) { // first strip any formatting; $n = (0 + str_replace(",", "", $n)); // is this a number? if (!is_numeric($n)) return false; // now filter it; $str = ''; if ($n > 1000000000000) { $str = round(($n / 1000000000000), 0) . ' tn '; $str .= nice_number($n % 1000000000000); return $str; } else if ($n > 1000000000) { $str = round(($n / 1000000000), 0) . ' bn '; $str .= nice_number($n % 1000000000); return $str; } else if ($n > 1000000) { $str = round(($n / 1000000), 0) . ' mn '; $str .= nice_number($n % 1000000); return $str; } else if ($n > 1000) return round(($n / 1000), 2) . ' K '; return number_format($n); } } echo nice_number(320000000);

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.0120.00618.55
8.3.50.0180.01021.91
8.3.40.0150.00018.78
8.3.30.0070.00719.05
8.3.20.0080.00020.32
8.3.10.0040.00422.15
8.3.00.0070.00022.46
8.2.180.0140.00716.38
8.2.170.0090.00622.96
8.2.160.0140.00020.76
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00417.63
8.2.110.0100.00022.25
8.2.100.0090.00317.84
8.2.90.0000.00819.22
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0050.00318.05
8.2.50.0030.00618.07
8.2.40.0050.00218.34
8.2.30.0050.00318.07
8.2.20.0000.00817.92
8.2.10.0000.00919.55
8.2.00.0040.00417.71
8.1.280.0100.01025.92
8.1.270.0080.00022.14
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00623.91
8.1.230.0080.00419.08
8.1.220.0060.00317.77
8.1.210.0080.00018.77
8.1.200.0000.01017.35
8.1.190.0060.00317.55
8.1.180.0050.00318.10
8.1.170.0050.00518.59
8.1.160.0040.00421.95
8.1.150.0040.00418.67
8.1.140.0030.00517.48
8.1.130.0000.00717.81
8.1.120.0050.00317.38
8.1.110.0030.00517.53
8.1.100.0070.00017.41
8.1.90.0000.00817.42
8.1.80.0030.00517.38
8.1.70.0030.00317.50
8.1.60.0000.00817.61
8.1.50.0040.00417.61
8.1.40.0000.00717.54
8.1.30.0030.00617.64
8.1.20.0080.00017.66
8.1.10.0000.00717.52
8.1.00.0030.00617.45
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0030.00318.54
8.0.270.0050.00317.33
8.0.260.0000.00616.95
8.0.250.0030.00316.95
8.0.240.0030.00516.98
8.0.230.0000.00717.02
8.0.220.0020.00516.97
8.0.210.0000.00716.98
8.0.200.0030.00616.83
8.0.190.0030.00417.00
8.0.180.0000.00716.98
8.0.170.0040.00417.01
8.0.160.0070.00016.89
8.0.150.0070.00016.89
8.0.140.0000.00716.83
8.0.130.0000.00713.37
8.0.120.0080.00016.91
8.0.110.0070.00016.87
8.0.100.0000.00716.91
8.0.90.0040.00416.83
8.0.80.0060.00916.92
8.0.70.0040.00416.89
8.0.60.0020.00516.85
8.0.50.0070.00017.04
8.0.30.0100.01217.19
8.0.20.0090.01017.40
8.0.10.0000.00717.09
8.0.00.0100.00816.83
7.4.330.0000.00515.08
7.4.320.0000.00616.61
7.4.300.0000.00616.59
7.4.290.0000.00716.54
7.4.280.0000.00616.41
7.4.270.0000.00716.43
7.4.260.0040.00416.66
7.4.250.0040.00416.54
7.4.240.0030.00316.53
7.4.230.0000.00716.74
7.4.220.0110.00716.71
7.4.210.0050.00916.57
7.4.200.0030.00316.45
7.4.190.0030.00316.68
7.4.160.0030.01316.55
7.4.150.0080.00817.40
7.4.140.0100.00717.86
7.4.130.0110.00716.61
7.4.120.0130.00516.59
7.4.110.0140.00316.37
7.4.100.0130.00416.55
7.4.90.0110.00716.57
7.4.80.0100.00719.39
7.4.70.0030.01316.45
7.4.60.0040.01316.54
7.4.50.0000.00816.58
7.4.40.0100.00222.77
7.4.30.0030.01516.39
7.4.00.0090.00315.17
7.3.330.0000.00513.35
7.3.320.0060.00013.52
7.3.310.0000.00716.55
7.3.300.0030.00316.56
7.3.290.0060.00916.45
7.3.280.0110.00616.54
7.3.270.0070.01117.40
7.3.260.0100.01316.57
7.3.250.0050.01316.69
7.3.240.0000.01816.58
7.3.230.0040.01216.69
7.3.210.0070.01116.48
7.3.200.0090.00616.46
7.3.190.0100.00616.85
7.3.180.0120.00316.50
7.3.170.0030.01316.48
7.3.160.0060.00916.55
7.3.120.0040.00915.02
7.2.330.0030.01316.63
7.2.320.0170.00016.58
7.2.310.0040.01316.75
7.2.300.0090.00916.57
7.2.290.0000.01616.67
7.2.00.0030.01019.34
7.1.100.0060.00618.36
7.1.70.0020.00716.95
7.1.60.0100.01419.82
7.1.50.0060.01517.11
7.1.00.0030.07322.65
7.0.200.0110.00316.65
7.0.140.0030.07722.31
7.0.110.0030.04720.27
7.0.100.0070.04020.15
7.0.90.0100.04320.15
7.0.80.0130.05020.09
7.0.70.0070.06320.11
7.0.60.0130.03320.27
7.0.50.0100.04020.20
7.0.40.0030.04019.96
7.0.30.0070.03719.97
7.0.20.0030.04019.93
7.0.10.0030.04019.87
7.0.00.0030.04019.95
5.6.280.0000.07721.12
5.6.260.0000.04320.86
5.6.250.0100.02720.66
5.6.240.0070.06720.73
5.6.230.0030.04320.80
5.6.220.0030.04320.91
5.6.210.0070.03720.83
5.6.200.0100.03720.94
5.6.190.0000.05720.85
5.6.180.0070.06320.87
5.6.170.0000.04320.85
5.6.160.0030.03720.78
5.6.150.0070.04720.63
5.6.140.0070.04020.75
5.6.130.0000.04720.75
5.6.120.0070.03720.84
5.6.110.0070.04020.84
5.6.100.0000.04721.07
5.6.90.0170.07020.76
5.6.80.0130.03320.14
5.6.70.0030.08320.21
5.6.60.0100.05720.24
5.6.50.0030.08320.16
5.6.40.0030.08020.30
5.6.30.0100.04720.07
5.6.20.0070.08020.24
5.6.10.0170.07320.08
5.6.00.0100.07720.24
5.5.380.0030.04320.64
5.5.370.0070.05320.75
5.5.360.0070.04720.58
5.5.350.0030.04020.65
5.5.340.0030.05021.19
5.5.330.0070.04020.92
5.5.320.0000.04321.06
5.5.310.0100.08021.05
5.5.300.0000.04320.98
5.5.290.0070.04721.03
5.5.280.0070.04721.07
5.5.270.0030.04321.06
5.5.260.0000.04721.04
5.5.250.0000.04320.95
5.5.240.0030.08320.50
5.5.230.0070.07020.52
5.5.220.0130.07020.51
5.5.210.0070.07720.45
5.5.200.0130.07020.43
5.5.190.0030.07320.40
5.5.180.0070.08720.54
5.5.160.0100.07320.41
5.5.150.0100.08320.53
5.5.140.0030.05320.44
5.5.130.0130.06720.39
5.5.120.0170.05720.36
5.5.110.0200.06320.48
5.5.100.0100.04320.38
5.5.90.0030.07320.31
5.5.80.0030.08020.31
5.5.70.0100.07720.23
5.5.60.0070.07020.41
5.5.50.0130.07020.36
5.5.40.0100.06720.32
5.5.30.0100.07020.32
5.5.20.0030.07720.31
5.5.10.0070.08320.16
5.5.00.0130.08020.26
5.4.450.0030.04019.69
5.4.440.0030.04719.59
5.4.430.0170.06019.76
5.4.420.0030.04319.59
5.4.410.0070.04719.33
5.4.400.0000.08719.29
5.4.390.0100.07719.27
5.4.380.0030.05019.37
5.4.370.0070.06719.30
5.4.360.0000.05719.36
5.4.350.0100.07019.19
5.4.340.0070.05319.28
5.4.320.0030.07719.36
5.4.310.0030.08019.35
5.4.300.0100.07019.18
5.4.290.0070.04719.39
5.4.280.0070.06319.18
5.4.270.0070.07719.39
5.4.260.0100.06719.30
5.4.250.0130.06719.20
5.4.240.0100.07019.19
5.4.230.0170.06319.36
5.4.220.0100.07719.17
5.4.210.0070.05019.18
5.4.200.0070.06719.18
5.4.190.0100.07319.34
5.4.180.0070.07319.36
5.4.170.0030.06719.34
5.4.160.0130.07319.11
5.4.150.0100.07719.37
5.4.140.0130.04316.62
5.4.130.0070.06316.49
5.4.120.0000.07316.64
5.4.110.0070.06716.69
5.4.100.0130.06316.71
5.4.90.0030.08016.60
5.4.80.0000.07316.65
5.4.70.0130.06316.67
5.4.60.0070.07316.67
5.4.50.0030.07316.71
5.4.40.0070.07316.66
5.4.30.0070.04716.58
5.4.20.0070.04016.52
5.4.10.0070.05016.64
5.4.00.0070.04316.16
5.3.290.0100.06714.95
5.3.280.0000.08314.88
5.3.270.0100.06714.88
5.3.260.0030.04014.88
5.3.250.0000.07314.70
5.3.240.0100.04714.81
5.3.230.0100.06714.88
5.3.220.0070.07014.77
5.3.210.0030.06714.84
5.3.200.0070.07314.71
5.3.190.0030.08314.89
5.3.180.0130.03714.67
5.3.170.0170.06314.84
5.3.160.0070.07714.68
5.3.150.0100.06314.85
5.3.140.0130.07314.84
5.3.130.0170.07014.77
5.3.120.0030.08314.88
5.3.110.0100.07314.73
5.3.100.0000.07714.24
5.3.90.0100.07014.21
5.3.80.0030.07014.30
5.3.70.0130.06714.30
5.3.60.0100.06314.23
5.3.50.0100.05714.08
5.3.40.0030.07714.05
5.3.30.0170.06014.05
5.3.20.0000.08013.96
5.3.10.0070.07313.75
5.3.00.0030.08013.91
5.2.170.0100.05011.74
5.2.160.0100.06011.74
5.2.150.0130.04311.74
5.2.140.0030.06311.74
5.2.130.0130.05711.74
5.2.120.0030.04311.74
5.2.110.0070.04711.74
5.2.100.0030.06311.74
5.2.90.0070.03311.74
5.2.80.0030.06711.74
5.2.70.0070.06311.74
5.2.60.0000.06311.74
5.2.50.0070.06711.74
5.2.40.0000.06011.74
5.2.30.0070.06311.74
5.2.20.0000.07011.74
5.2.10.0070.05311.74
5.2.00.0030.06311.74
5.1.60.0130.04011.74
5.1.50.0070.05311.74
5.1.40.0070.02711.74
5.1.30.0070.05311.74
5.1.20.0000.04711.74
5.1.10.0070.05311.74
5.1.00.0030.05711.74
5.0.50.0070.03011.74
5.0.40.0000.02311.74
5.0.30.0000.05311.74
5.0.20.0030.04311.74
5.0.10.0000.04711.74
5.0.00.0070.06011.74
4.4.90.0000.03311.74
4.4.80.0070.03011.74
4.4.70.0030.03711.74
4.4.60.0030.03311.74
4.4.50.0030.02011.74
4.4.40.0070.03311.74
4.4.30.0030.03011.74
4.4.20.0070.03311.74
4.4.10.0030.03311.74
4.4.00.0030.04311.74
4.3.110.0030.03311.74
4.3.100.0000.02011.74
4.3.90.0030.03711.74
4.3.80.0070.04311.74
4.3.70.0000.03711.74
4.3.60.0030.03311.74
4.3.50.0070.03011.74
4.3.40.0070.04711.74
4.3.30.0030.03011.74
4.3.20.0000.04011.74
4.3.10.0000.03711.74
4.3.00.0000.02311.74

preferences:
50.44 ms | 401 KiB | 5 Q