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 .= $n % 1000000000000 > 0 ? nice_number($n % 1000000000000) : ''; return $str; } else if ($n > 1000000000) { $str = round(($n / 1000000000), 0) . ' bn '; $str .= $n % 1000000000 > 0 ? nice_number($n % 1000000000) : ''; return $str; } else if ($n > 1000000) { $str = round(($n / 1000000), 0) . ' mn '; $str .= $n % 1000000 > 0 ? nice_number($n % 1000000) : ''; return $str; } else if ($n > 1000) return round(($n / 1000), 0) . ' K '; return number_format($n); } } echo nice_number(1300200000);

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.43
8.3.60.0120.00618.55
8.3.50.0160.01122.00
8.3.40.0070.00718.80
8.3.30.0080.00519.17
8.3.20.0060.00320.25
8.3.10.0040.00422.12
8.3.00.0000.00822.46
8.2.190.0160.00016.75
8.2.180.0140.00716.63
8.2.170.0140.00722.96
8.2.160.0140.00720.91
8.2.150.0080.00825.66
8.2.140.0030.00624.66
8.2.130.0130.00626.16
8.2.120.0070.00418.85
8.2.110.0060.00322.41
8.2.100.0150.00017.97
8.2.90.0060.00319.30
8.2.80.0080.00018.03
8.2.70.0040.00417.63
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0080.00018.34
8.2.30.0000.00818.18
8.2.20.0040.00417.91
8.2.10.0000.00717.90
8.2.00.0070.00017.88
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0030.00528.09
8.1.240.0030.00623.98
8.1.230.0090.00319.16
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.53
8.1.180.0060.00318.10
8.1.170.0040.00418.65
8.1.160.0000.00822.05
8.1.150.0000.00818.63
8.1.140.0070.00017.40
8.1.130.0080.00017.96
8.1.120.0070.00017.53
8.1.110.0040.00417.43
8.1.100.0040.00417.47
8.1.90.0000.00717.43
8.1.80.0040.00417.39
8.1.70.0040.00417.42
8.1.60.0030.00517.67
8.1.50.0000.00817.50
8.1.40.0000.00817.61
8.1.30.0000.00717.61
8.1.20.0050.00317.56
8.1.10.0040.00417.59
8.1.00.0000.00817.55
8.0.300.0000.00818.77
8.0.290.0090.00017.18
8.0.280.0030.00318.43
8.0.270.0070.00017.33
8.0.260.0030.00316.96
8.0.250.0050.00216.99
8.0.240.0070.00017.02
8.0.230.0030.00317.05
8.0.220.0050.00216.98
8.0.210.0070.00017.02
8.0.200.0030.00517.02
8.0.190.0000.00717.07
8.0.180.0040.00417.05
8.0.170.0050.00216.95
8.0.160.0000.00716.89
8.0.150.0050.00216.87
8.0.140.0040.00416.88
8.0.130.0000.01013.47
8.0.120.0030.00516.96
8.0.110.0070.00017.00
8.0.100.0040.00416.88
8.0.90.0070.00016.90
8.0.80.0090.00617.04
8.0.70.0040.00417.05
8.0.60.0000.00716.92
8.0.50.0000.00717.09
8.0.30.0060.01617.35
8.0.20.0200.00217.40
8.0.10.0040.00417.19
8.0.00.0090.00916.75
7.4.330.0030.00215.11
7.4.320.0000.00616.59
7.4.300.0030.00316.57
7.4.290.0030.00316.65
7.4.280.0040.00416.57
7.4.270.0030.00516.73
7.4.260.0030.00316.66
7.4.250.0040.00416.49
7.4.240.0030.00416.55
7.4.230.0000.00716.47
7.4.220.0100.01016.52
7.4.210.0090.00816.62
7.4.200.0020.00516.55
7.4.190.0070.00016.75
7.4.160.0030.01316.61
7.4.150.0130.01017.40
7.4.140.0150.00617.86
7.4.130.0090.00916.51
7.4.120.0080.01016.71
7.4.110.0160.00316.58
7.4.100.0070.01116.60
7.4.90.0030.01516.54
7.4.80.0110.00719.39
7.4.70.0100.00616.61
7.4.60.0120.00316.42
7.4.50.0030.00316.53
7.4.40.0040.01122.77
7.4.30.0100.00616.61
7.4.00.0090.00915.14
7.3.330.0020.00213.26
7.3.320.0030.00313.43
7.3.310.0080.00016.34
7.3.300.0030.00316.45
7.3.290.0110.00316.40
7.3.280.0070.01216.40
7.3.270.0110.00717.40
7.3.260.0080.01116.56
7.3.250.0090.00816.66
7.3.240.0060.01016.66
7.3.230.0110.00516.67
7.3.210.0060.01016.34
7.3.200.0120.01219.39
7.3.190.0150.00916.40
7.3.180.0100.00616.48
7.3.170.0110.00516.59
7.3.160.0090.00616.66
7.3.120.0040.01114.80
7.3.10.0110.00716.39
7.3.00.0110.01016.33
7.2.330.0030.01416.79
7.2.320.0200.00616.95
7.2.310.0090.01316.86
7.2.300.0100.00816.75
7.2.290.0070.01016.44
7.2.130.0150.00516.69
7.2.120.0130.00716.82
7.2.110.0100.00616.76
7.2.100.0160.00516.80
7.2.90.0070.01116.90
7.2.80.0090.00816.63
7.2.70.0030.01416.66
7.2.60.0070.01016.68
7.2.50.0170.00616.80
7.2.40.0080.00816.61
7.2.30.0080.00816.65
7.2.20.0100.00816.81
7.2.10.0110.00816.72
7.2.00.0090.00616.70
7.1.250.0080.01215.64
7.1.240.0120.00015.75
7.1.230.0110.00615.85
7.1.220.0070.00415.88
7.1.210.0000.00915.69
7.1.200.0040.00615.73
7.1.190.0030.01415.78
7.1.180.0070.00415.89
7.1.170.0030.00615.63
7.1.160.0090.00015.75
7.1.150.0040.01115.57
7.1.140.0030.00716.00
7.1.130.0060.00615.51
7.1.120.0040.01115.77
7.1.110.0030.00915.94
7.1.100.0000.01515.71
7.1.90.0090.00615.94
7.1.80.0090.00316.07
7.1.70.0080.00616.49
7.1.60.0070.01217.86
7.1.50.0100.01125.23
7.1.40.0040.00815.84
7.1.30.0000.01415.79
7.1.20.0030.01115.81
7.1.10.0060.00315.77
7.1.00.0040.04419.01
7.0.330.0100.00315.40
7.0.320.0040.01115.23
7.0.310.0110.00615.25
7.0.300.0060.00915.57
7.0.290.0090.00315.54
7.0.280.0070.00715.08
7.0.270.0030.01015.36
7.0.260.0060.00615.21
7.0.250.0030.00915.33
7.0.240.0070.00315.36
7.0.230.0100.00315.01
7.0.220.0000.01214.93
7.0.210.0030.00915.08
7.0.200.0100.00315.95
7.0.190.0000.01315.43
7.0.180.0090.00015.34
7.0.170.0030.00715.50
7.0.160.0090.00915.52
7.0.150.0090.00415.21
7.0.140.0040.03818.57
7.0.130.0070.00715.44
7.0.120.0030.00615.17
7.0.110.0100.00315.20
7.0.100.0050.03317.60
7.0.90.0070.04217.61
7.0.80.0120.04117.66
7.0.70.0110.02617.65
7.0.60.0080.04317.71
7.0.50.0120.04517.97
7.0.40.0050.03616.74
7.0.30.0100.04316.72
7.0.20.0080.04316.74
7.0.10.0100.04216.66
7.0.00.0080.04016.72
5.6.380.0130.00314.49
5.6.370.0130.00014.18
5.6.360.0090.00614.45
5.6.350.0000.01014.05
5.6.340.0060.00314.24
5.6.330.0040.00414.02
5.6.320.0090.00014.49
5.6.310.0030.01014.42
5.6.300.0040.00914.61
5.6.290.0030.01314.62
5.6.280.0030.04217.80
5.6.270.0040.01114.45
5.6.260.0160.00014.09
5.6.250.0100.04017.47
5.6.240.0120.04517.36
5.6.230.0130.03517.49
5.6.220.0050.04717.39
5.6.210.0090.04217.45
5.6.200.0030.05217.53
5.6.190.0080.04317.56
5.6.180.0050.04317.65
5.6.170.0050.04517.69
5.6.160.0000.04417.54
5.6.150.0080.03017.65
5.6.140.0050.04817.66
5.6.130.0120.04017.59
5.6.120.0060.03617.65
5.6.110.0060.04117.62
5.6.100.0120.04017.66
5.6.90.0130.04017.79
5.6.80.0070.02917.20
5.6.70.0070.04017.47
5.6.60.0050.04717.24
5.6.50.0060.04117.35
5.6.40.0140.03817.25
5.6.30.0180.03317.24
5.6.20.0100.03917.36
5.6.10.0100.04017.33
5.6.00.0100.03817.40
5.5.380.0120.03815.96
5.5.370.0050.03515.92
5.5.360.0030.04315.87
5.5.350.0070.03015.84
5.5.340.0050.02816.03
5.5.330.0020.04716.10
5.5.320.0080.03816.00
5.5.310.0090.04016.03
5.5.300.0030.04015.88
5.5.290.0080.04216.16
5.5.280.0090.04516.18
5.5.270.0100.03815.89
5.5.260.0070.04215.88
5.5.250.0060.04316.03
5.5.240.0050.04215.67
5.5.230.0050.04215.76
5.5.220.0050.04315.55
5.5.210.0070.04415.61
5.5.200.0060.04615.60
5.5.190.0040.02515.55
5.5.180.0080.04015.70
5.5.170.0030.00610.91
5.5.160.0070.02715.74
5.5.150.0070.04215.42
5.5.140.0050.04615.49
5.5.130.0100.03815.67
5.5.120.0050.04315.63
5.5.110.0050.04815.78
5.5.100.0070.04015.61
5.5.90.0070.04215.60
5.5.80.0070.04015.62
5.5.70.0080.04015.51
5.5.60.0030.04815.62
5.5.50.0100.03915.49
5.5.40.0020.04715.54
5.5.30.0110.02515.61
5.5.20.0050.04515.50
5.5.10.0130.03815.46
5.5.00.0110.03415.54
5.4.450.0000.04415.42
5.4.440.0090.03715.21
5.4.430.0000.04115.29
5.4.420.0050.04415.39
5.4.410.0060.03515.20
5.4.400.0090.03614.96
5.4.390.0100.03715.07
5.4.380.0040.03815.22
5.4.370.0060.03915.18
5.4.360.0090.04015.08
5.4.350.0030.03215.03
5.4.340.0080.04015.14
5.4.330.0060.00011.14
5.4.320.0070.02815.08
5.4.310.0070.03715.15
5.4.300.0080.02215.03
5.4.290.0080.04015.01
5.4.280.0070.04315.06
5.4.270.0100.03814.94
5.4.260.0050.03915.01
5.4.250.0030.04415.12
5.4.240.0050.04114.87
5.4.230.0080.03815.16
5.4.220.0110.03515.14
5.4.210.0050.03715.13
5.4.200.0070.04015.25
5.4.190.0080.03815.08
5.4.180.0070.03815.16
5.4.170.0050.04015.11
5.4.160.0050.03615.16
5.4.150.0070.03314.88
5.4.140.0080.03613.78
5.4.130.0090.03113.79
5.4.120.0050.03813.65
5.4.110.0080.03813.73
5.4.100.0050.03513.79
5.4.90.0060.04013.65
5.4.80.0050.03813.80
5.4.70.0120.03313.66
5.4.60.0070.04013.67
5.4.50.0060.03813.79
5.4.40.0050.04013.66
5.4.30.0040.04013.70
5.4.20.0080.03313.79
5.4.10.0030.04013.77
5.4.00.0070.04213.53
5.3.290.0060.03912.77
5.3.280.0100.03712.71
5.3.270.0030.04312.72
5.3.260.0050.02612.73
5.3.250.0020.04512.73
5.3.240.0050.03512.68
5.3.230.0060.04312.66
5.3.220.0040.04412.65
5.3.210.0060.04212.66
5.3.200.0060.03712.67
5.3.190.0070.02612.64
5.3.180.0080.03512.65
5.3.170.0080.03512.69
5.3.160.0050.03512.69
5.3.150.0020.04212.67
5.3.140.0110.03712.69
5.3.130.0070.02312.66
5.3.120.0050.02712.65
5.3.110.0020.04312.70
5.3.100.0050.03312.46
5.3.90.0050.03812.44
5.3.80.0050.04212.37
5.3.70.0070.03912.36
5.3.60.0070.03812.41
5.3.50.0100.03512.30
5.3.40.0050.04212.40
5.3.30.0050.03312.26
5.3.20.0050.02812.22
5.3.10.0100.03012.13
5.3.00.0050.02612.19
5.2.170.0020.03611.44
5.2.160.0010.03311.44
5.2.150.0030.03511.44
5.2.140.0000.02911.44
5.2.130.0040.03211.44
5.2.120.0050.03311.44
5.2.110.0050.03311.44
5.2.100.0080.02711.44
5.2.90.0050.03011.44
5.2.80.0030.03311.44
5.2.70.0080.03111.44
5.2.60.0050.03011.44
5.2.50.0050.03411.44
5.2.40.0050.03011.44
5.2.30.0070.03111.44
5.2.20.0080.03011.44
5.2.10.0110.02711.44
5.2.00.0060.03311.44
5.1.60.0030.02811.44
5.1.50.0060.02611.44
5.1.40.0080.02511.44
5.1.30.0050.02811.44
5.1.20.0030.03111.44
5.1.10.0050.02811.44
5.1.00.0030.02911.44
5.0.50.0030.02711.44
5.0.40.0020.02411.44
5.0.30.0090.02711.44
5.0.20.0020.02611.44
5.0.10.0040.02411.44
5.0.00.0070.03011.44
4.4.90.0030.01311.44
4.4.80.0030.01711.44
4.4.70.0040.01811.44
4.4.60.0030.01711.44
4.4.50.0020.02211.44
4.4.40.0050.02811.44
4.4.30.0020.02211.44
4.4.20.0040.01911.44
4.4.10.0030.01911.44
4.4.00.0050.02811.44
4.3.110.0020.02111.44
4.3.100.0050.01711.44
4.3.90.0020.02011.44
4.3.80.0020.02811.44
4.3.70.0010.02111.44
4.3.60.0030.01811.44
4.3.50.0030.01811.44
4.3.40.0020.02511.44
4.3.30.0020.01711.44
4.3.20.0060.01511.44
4.3.10.0030.01311.44
4.3.00.0030.02011.44

preferences:
56.51 ms | 401 KiB | 5 Q