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),0) . ' K '; return number_format($n); } } echo nice_number(300000000);

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.0060.01318.68
8.3.50.0170.00722.04
8.3.40.0120.00618.84
8.3.30.0080.00819.13
8.3.20.0040.00420.33
8.3.10.0030.00621.92
8.3.00.0080.00022.51
8.2.180.0030.01716.50
8.2.170.0070.00722.96
8.2.160.0070.00720.94
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00817.88
8.2.110.0000.00920.14
8.2.100.0080.00418.03
8.2.90.0050.00319.17
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0030.00518.34
8.2.30.0000.00718.22
8.2.20.0040.00417.72
8.2.10.0000.00817.71
8.2.00.0000.00717.84
8.1.280.0140.00325.92
8.1.270.0040.00421.98
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00721.02
8.1.230.0110.00017.58
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.40
8.1.180.0000.00818.10
8.1.170.0050.00318.71
8.1.160.0000.00722.05
8.1.150.0000.00818.71
8.1.140.0040.00417.49
8.1.130.0000.00617.89
8.1.120.0020.00517.55
8.1.110.0000.00717.48
8.1.100.0040.00417.48
8.1.90.0030.00517.50
8.1.80.0070.00017.49
8.1.70.0070.00017.44
8.1.60.0080.00017.60
8.1.50.0060.00317.43
8.1.40.0050.00317.45
8.1.30.0040.00417.67
8.1.20.0060.00317.52
8.1.10.0050.00317.58
8.1.00.0000.00817.52
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.48
8.0.270.0030.00517.20
8.0.260.0030.00316.82
8.0.250.0000.00616.98
8.0.240.0070.00017.05
8.0.230.0030.00317.00
8.0.220.0000.00716.89
8.0.210.0000.00717.04
8.0.200.0060.00317.03
8.0.190.0030.00516.98
8.0.180.0000.00716.99
8.0.170.0030.00617.00
8.0.160.0040.00416.92
8.0.150.0000.00716.81
8.0.140.0000.00716.84
8.0.130.0050.00313.44
8.0.120.0040.00416.78
8.0.110.0030.00517.05
8.0.100.0050.00216.83
8.0.90.0020.00517.02
8.0.80.0060.00916.97
8.0.70.0080.00017.01
8.0.60.0070.00016.82
8.0.50.0040.00416.85
8.0.30.0130.00717.13
8.0.20.0140.00617.40
8.0.10.0070.00017.17
8.0.00.0130.00416.81
7.4.330.0000.00615.14
7.4.320.0030.00316.61
7.4.300.0040.00416.54
7.4.290.0070.00016.52
7.4.280.0000.00716.62
7.4.270.0050.00216.68
7.4.260.0070.00016.47
7.4.250.0080.00016.48
7.4.240.0020.00516.66
7.4.230.0000.00716.57
7.4.220.0110.00716.63
7.4.210.0050.01016.56
7.4.200.0030.00316.53
7.4.190.0000.00716.63
7.4.160.0030.01316.53
7.4.150.0090.01317.40
7.4.140.0100.00917.86
7.4.130.0110.01216.54
7.4.120.0110.00916.60
7.4.110.0170.00316.32
7.4.100.0070.01016.53
7.4.90.0110.00716.46
7.4.80.0060.01219.39
7.4.70.0090.00616.57
7.4.60.0170.00016.59
7.4.50.0080.00016.56
7.4.40.0030.01022.77
7.4.30.0090.00616.63
7.4.00.0100.00715.05
7.3.330.0020.00213.34
7.3.320.0050.00013.36
7.3.310.0040.00416.52
7.3.300.0030.00316.53
7.3.290.0040.01116.48
7.3.280.0110.01216.49
7.3.270.0070.01017.40
7.3.260.0100.00716.58
7.3.250.0060.01116.59
7.3.240.0140.00316.52
7.3.230.0070.01116.75
7.3.210.0030.01316.48
7.3.200.0120.00919.39
7.3.190.0060.01116.53
7.3.180.0090.00616.48
7.3.170.0120.00316.59
7.3.160.0030.01216.45
7.3.120.0030.01014.97
7.2.330.0080.00816.77
7.2.320.0070.01616.84
7.2.310.0090.01316.61
7.2.300.0090.00916.74
7.2.290.0100.00716.81
7.2.60.0060.00617.11
7.1.200.0030.01016.03
7.1.70.0060.00916.97
7.1.60.0030.02019.82
7.1.50.0170.01335.00
7.1.00.0000.07722.70
7.0.200.0120.00016.85
7.0.140.0000.07322.25
7.0.60.0000.08020.09
7.0.50.0000.04718.22
7.0.40.0100.05320.38
7.0.30.0300.06020.18
7.0.20.0270.07720.43
7.0.10.0370.08020.35
7.0.00.0070.05020.32
5.6.280.0000.07721.05
5.6.210.0170.07320.93
5.6.200.0130.08018.43
5.6.190.0070.08020.68
5.6.180.3570.04320.88
5.6.170.0330.07720.76
5.6.160.0130.07720.73
5.6.150.0030.06018.36
5.6.140.0070.04718.30
5.6.130.0170.07718.27
5.6.120.0070.07721.23
5.6.110.0070.04021.21
5.6.100.0130.07321.15
5.6.90.0070.08321.27
5.6.80.0030.08320.58
5.6.70.0230.02720.66
5.5.350.0070.08020.61
5.5.340.0170.04018.20
5.5.330.0170.05020.32
5.5.320.0300.06720.43
5.5.310.0170.04020.49
5.5.300.0030.08318.11
5.5.290.0100.06318.14
5.5.280.0000.06020.99
5.5.270.0030.04720.88
5.5.260.0100.07320.88
5.5.250.0030.08320.82
5.5.240.0100.07020.43
5.4.450.0570.03319.32
5.4.440.1030.03319.67
5.4.430.1400.00019.61
5.4.420.1730.00019.62
5.4.410.0100.05319.02
5.4.400.0100.07718.79
5.4.390.0100.05318.59
5.4.380.0330.04718.83
5.4.370.0100.05718.83
5.4.360.0200.05018.63
5.4.350.0130.05718.88
5.4.340.0170.05018.90
5.4.320.0070.04512.54
5.4.310.0070.05612.53
5.4.300.0080.04312.53
5.4.290.0080.03612.52
5.4.280.0090.03612.42
5.4.270.0040.03812.39
5.4.260.0090.03412.39
5.4.250.0050.04112.39
5.4.240.0040.03912.39
5.4.230.0060.04412.39
5.4.220.0030.03912.38
5.4.210.0060.03512.38
5.4.200.0040.03912.39
5.4.190.0030.03912.38
5.4.180.0070.04512.38
5.4.170.0040.05712.39
5.4.160.0050.03812.39
5.4.150.0050.03712.38
5.4.140.0060.03612.06
5.4.130.0090.04012.05
5.4.120.0090.03212.01
5.4.110.0060.03512.00
5.4.100.0060.03512.01
5.4.90.0070.03612.01
5.4.80.0040.04212.01
5.4.70.0040.03612.00
5.4.60.0080.03212.00
5.4.50.0060.03412.00
5.4.40.0040.03611.99
5.4.30.0030.03811.98
5.4.20.0020.03911.98
5.4.10.0060.03611.99
5.4.00.0050.03711.48
5.3.290.0110.04212.80
5.3.280.0080.03812.71
5.3.270.0070.03912.73
5.3.260.0050.03912.72
5.3.250.0100.03612.72
5.3.240.0060.03712.72
5.3.230.0060.03712.70
5.3.220.0080.03712.68
5.3.210.0080.03712.68
5.3.200.0070.03412.68
5.3.190.0080.03512.68
5.3.180.0050.03712.68
5.3.170.0050.03712.67
5.3.160.0060.03712.67
5.3.150.0070.03512.67
5.3.140.0080.03312.66
5.3.130.0040.04012.66
5.3.120.0020.04212.66
5.3.110.0090.03512.66
5.3.100.0060.03612.12
5.3.90.0060.03512.09
5.3.80.0030.03912.08
5.3.70.0060.03712.08
5.3.60.0090.04412.07
5.3.50.0110.05112.01
5.3.40.0060.03712.01
5.3.30.0020.03911.98
5.3.20.0060.03611.76
5.3.10.0050.03911.71
5.3.00.0080.04111.70
5.2.170.0070.0429.21
5.2.160.0080.0419.21
5.2.150.0070.0449.21
5.2.140.0080.0339.21
5.2.130.0040.0459.17
5.2.120.0040.0329.17
5.2.110.0040.0299.17
5.2.100.0050.0289.18
5.2.90.0050.0299.18
5.2.80.0060.0299.18
5.2.70.0050.0309.17
5.2.60.0050.0319.12
5.2.50.0030.0339.09
5.2.40.0030.0329.07
5.2.30.0030.0319.05
5.2.20.0030.0329.05
5.2.10.0040.0298.98
5.2.00.0050.0298.82
5.1.60.0040.0258.10
5.1.50.0050.0248.11
5.1.40.0010.0288.09
5.1.30.0030.0278.44
5.1.20.0040.0278.46
5.1.10.0040.0278.19
5.1.00.0060.0308.18
5.0.50.0020.0236.67
5.0.40.0020.0226.53
5.0.30.0040.0316.34
5.0.20.0030.0206.31
5.0.10.0050.0186.29
5.0.00.0010.0336.28
4.4.90.0030.0154.78
4.4.80.0010.0174.76
4.4.70.0010.0174.75
4.4.60.0020.0164.75
4.4.50.0050.0214.77
4.4.40.0060.0224.70
4.4.30.0040.0154.76
4.4.20.0040.0214.84
4.4.10.0020.0174.85
4.4.00.0020.0264.76
4.3.110.0030.0204.67
4.3.100.0030.0164.67
4.3.90.0020.0164.64
4.3.80.0010.0264.59
4.3.70.0040.0134.63
4.3.60.0030.0154.63
4.3.50.0010.0174.63
4.3.40.0040.0234.54
4.3.30.0020.0193.34
4.3.20.0020.0193.32
4.3.10.0020.0153.27
4.3.00.0100.01313.28

preferences:
39.46 ms | 401 KiB | 5 Q