3v4l.org

run code in 300+ PHP versions simultaneously
<?php $internal_functions = get_defined_functions()['internal']; $lengths = array_map( function ($name) { return strlen($name); }, $internal_functions ); $length_variance = array_count_values($lengths); ksort($length_variance); echo 'Total Function Count: '. count($length_variance) . PHP_EOL . PHP_EOL; foreach ($length_variance as $length => $count) { echo 'Name Length: '. $length; echo "\t\t Count: ". $count; echo PHP_EOL; }

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.00418.55
8.3.50.0100.01222.04
8.3.40.0150.00618.84
8.3.30.0070.00719.27
8.3.20.0050.00220.21
8.3.10.0050.00322.14
8.3.00.0090.00022.57
8.2.180.0120.00316.63
8.2.170.0090.00622.96
8.2.160.0090.00621.07
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0090.00026.16
8.2.120.0030.00619.36
8.2.110.0050.00522.12
8.2.100.0140.00019.64
8.2.90.0060.00319.29
8.2.80.0070.00317.97
8.2.70.0050.00517.63
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0030.00618.28
8.2.30.0050.00218.11
8.2.20.0000.00817.67
8.2.10.0000.00919.56
8.2.00.0040.00417.85
8.1.280.0070.01325.92
8.1.270.0090.00022.03
8.1.260.0000.00926.35
8.1.250.0000.00928.09
8.1.240.0100.00023.87
8.1.230.0080.00419.27
8.1.220.0000.00817.79
8.1.210.0090.00318.77
8.1.200.0090.00317.60
8.1.190.0040.00417.64
8.1.180.0050.00318.10
8.1.170.0080.00318.71
8.1.160.0040.00421.99
8.1.150.0030.00618.60
8.1.140.0050.00317.42
8.1.130.0030.00317.82
8.1.120.0080.00017.48
8.1.110.0000.00717.46
8.1.100.0000.00817.54
8.1.90.0000.00717.36
8.1.80.0050.00317.43
8.1.70.0000.00717.51
8.1.60.0030.00617.68
8.1.50.0030.00517.61
8.1.40.0000.00817.57
8.1.30.0050.00317.62
8.1.20.0000.00917.65
8.1.10.0000.00717.55
8.1.00.0030.00617.48
8.0.300.0000.00718.77
8.0.290.0050.00217.30
8.0.280.0040.00418.49
8.0.270.0050.00317.38
8.0.260.0030.00316.86
8.0.250.0030.00317.02
8.0.240.0030.00716.96
8.0.230.0020.00516.92
8.0.220.0040.00416.97
8.0.210.0000.00716.87
8.0.200.0000.00717.05
8.0.190.0050.00316.95
8.0.180.0030.00516.96
8.0.170.0040.00416.96
8.0.160.0050.00316.86
8.0.150.0040.00416.88
8.0.140.0060.00316.95
8.0.130.0050.00213.40
8.0.120.0000.00716.80
8.0.110.0080.00017.01
8.0.100.0000.00717.09
8.0.90.0000.00816.76
8.0.80.0140.00716.93
8.0.70.0060.00317.01
8.0.60.0050.00316.98
8.0.50.0050.00316.85
8.0.30.0100.01417.33
8.0.20.0150.00717.40
8.0.10.0040.00417.16
8.0.00.0090.01016.87
7.4.330.0060.00015.08
7.4.320.0080.00016.49
7.4.300.0000.00616.74
7.4.290.0000.00716.72
7.4.280.0000.00816.71
7.4.270.0000.00816.61
7.4.260.0040.00416.44
7.4.250.0090.00016.66
7.4.240.0030.00416.66
7.4.230.0040.00416.53
7.4.220.0000.01916.47
7.4.210.0070.00816.72
7.4.200.0030.00516.46
7.4.190.0040.00416.66
7.4.160.0090.00916.44
7.4.150.0150.00917.40
7.4.140.0170.00317.86
7.4.130.0080.01216.60
7.4.120.0130.00416.57
7.4.110.0090.00916.46
7.4.100.0080.01516.66
7.4.90.0100.01016.62
7.4.80.0100.01019.39
7.4.70.0080.01016.78
7.4.60.0080.01116.53
7.4.50.0000.01016.54
7.4.40.0030.01322.77
7.4.30.0030.01316.51
7.4.00.0040.01115.05
7.3.330.0000.00713.46
7.3.320.0000.00513.39
7.3.310.0000.00816.27
7.3.300.0000.00816.43
7.3.290.0060.00916.51
7.3.280.0090.01016.46
7.3.270.0120.00617.40
7.3.260.0050.01416.73
7.3.250.0110.00716.55
7.3.240.0060.01316.48
7.3.230.0070.01016.46
7.3.210.0160.00516.55
7.3.200.0140.01119.39
7.3.190.0090.00916.61
7.3.180.0120.00816.66
7.3.170.0070.01116.77
7.3.160.0170.00616.48
7.3.120.0110.00415.25
7.2.330.0060.01416.89
7.2.320.0070.01316.55
7.2.310.0120.00816.90
7.2.300.0040.01316.94
7.2.290.0030.01516.92
7.2.110.0270.00416.21
7.2.100.0220.01115.82
7.2.90.0130.01016.06
7.2.80.0100.00815.96
7.2.70.0200.01016.52
7.2.60.0160.00516.63
7.2.50.0120.00615.98
7.2.40.0170.00716.46
7.2.30.0140.00616.43
7.2.20.0140.00616.39
7.2.10.0170.00016.15
7.2.00.0100.00818.11
7.1.230.0050.01015.13
7.1.220.0250.00815.41
7.1.210.0280.00715.23
7.1.200.0140.00815.52
7.1.190.0020.01915.41
7.1.180.0110.01115.29
7.1.170.0190.00315.21
7.1.160.0170.00715.06
7.1.150.0140.00715.16
7.1.140.0230.00015.27
7.1.130.0280.00015.35
7.1.120.0200.00815.19
7.1.110.0190.00815.40
7.1.100.0110.00816.71
7.1.90.0180.00015.45
7.1.80.0050.01415.62
7.1.70.0130.00516.27
7.1.60.0090.01517.67
7.1.50.0140.01015.92
7.1.40.1890.01015.70
7.1.30.0110.00415.31
7.1.20.0130.00815.39
7.1.10.0130.01315.19
7.1.00.0090.04119.00
7.0.310.0180.00814.63
7.0.300.0100.00714.78
7.0.290.0000.01514.68
7.0.280.0120.00314.84
7.0.270.0120.01414.85
7.0.260.0130.00314.93
7.0.250.0150.00814.66
7.0.240.0120.01614.59
7.0.230.0170.00715.08
7.0.220.0060.01315.03
7.0.210.0130.01315.00
7.0.200.0100.00515.82
7.0.190.0120.01214.56
7.0.180.0140.00614.79
7.0.170.0080.00814.90
7.0.160.0140.00414.95
7.0.150.0140.00714.82
7.0.140.0110.04118.52
7.0.130.0160.00714.89
7.0.120.0190.00315.29
7.0.110.0190.00715.07
7.0.100.0160.00614.69
7.0.90.0090.01215.12
7.0.80.0140.00614.74
7.0.70.0160.00615.00
7.0.60.0090.03617.48
7.0.50.0120.02516.55
7.0.40.0100.04316.68
7.0.30.0160.04216.74
7.0.20.0180.03116.79
7.0.10.0120.04316.86
7.0.00.0040.02516.86
5.6.380.0060.01714.25
5.6.370.0090.01414.47
5.6.360.0070.01014.26
5.6.350.0060.00914.28
5.6.340.0100.01014.34
5.6.330.0100.01014.45
5.6.320.0060.01614.50
5.6.310.0120.00914.54
5.6.300.0090.01314.61
5.6.290.0140.00714.29
5.6.280.0120.03417.96
5.6.270.0090.00614.16
5.6.260.0040.01514.50
5.6.250.0060.01314.68
5.6.240.0110.00814.45
5.6.230.0110.00914.49
5.6.220.0030.01314.35
5.6.210.0070.04017.64
5.6.200.0040.03516.41
5.6.190.0120.04317.64
5.6.180.0250.02717.63
5.6.170.0190.02117.65
5.6.160.0080.04517.74
5.6.150.0120.04016.33
5.6.140.0030.04716.44
5.6.130.0120.03716.35
5.6.120.0050.03517.91
5.6.110.0100.02318.02
5.6.100.0120.03818.07
5.6.90.0100.04518.09
5.6.80.0110.04117.69
5.6.70.0060.00914.65
5.6.60.0130.00714.25
5.6.50.0060.01414.23
5.6.40.0110.00714.51
5.6.30.0110.00614.42
5.6.20.0060.01314.29
5.6.10.0100.00714.37
5.6.00.0060.00914.48
5.5.380.0070.00711.09
5.5.370.0080.00510.80
5.5.360.0090.00611.03
5.5.350.0110.03215.85
5.5.340.0140.03414.60
5.5.330.0060.02615.88
5.5.320.0220.03815.79
5.5.310.0140.02516.09
5.5.300.0040.04914.82
5.5.290.0090.02014.49
5.5.280.0070.03616.24
5.5.270.0050.02816.09
5.5.260.0080.03516.10
5.5.250.0120.03816.08
5.5.240.0120.04015.87
5.5.230.0060.00911.22
5.5.220.0120.00311.11
5.5.210.0040.01110.95
5.5.200.0090.00610.88
5.5.190.0030.01011.43
5.5.180.0090.00611.47
5.5.170.0100.00514.32
5.5.160.0030.01010.78
5.5.150.0080.00810.71
5.5.140.0060.00910.95
5.5.130.0040.00911.19
5.5.120.0110.00310.98
5.5.110.0100.00510.80
5.5.100.0120.00311.18
5.5.90.0080.00810.96
5.5.80.0090.00610.89
5.5.70.0040.01210.60
5.5.60.0070.00710.98
5.5.50.0090.00610.80
5.5.40.0030.01011.03
5.5.30.0150.00011.04
5.5.20.0090.00611.21
5.5.10.0110.00411.21
5.5.00.0090.00610.97
5.4.450.0260.02115.41
5.4.440.0160.03115.48
5.4.430.0180.03015.30
5.4.420.0260.02615.42
5.4.410.0080.03015.35
5.4.400.0090.03115.10
5.4.390.0080.02915.31
5.4.380.0170.03015.21
5.4.370.0060.03415.02
5.4.360.0160.02515.26
5.4.350.0100.03115.22
5.4.340.0060.03315.03
5.4.330.0040.00811.34
5.4.320.0060.02412.03
5.4.310.0040.02311.94
5.4.300.0080.02412.01
5.4.290.0050.02512.09
5.4.280.0080.02112.02
5.4.270.0060.03715.14
5.4.260.0060.03515.24
5.4.250.0040.03815.38
5.4.240.0140.02314.95
5.4.230.0070.03715.28
5.4.220.0150.02415.28
5.4.210.0100.03715.02
5.4.200.0080.04015.09
5.4.190.0040.03515.26
5.4.180.0170.02715.19
5.4.170.0090.04215.04
5.4.160.0080.03115.23
5.4.150.0090.03315.21
5.4.140.0060.03313.85
5.4.130.0030.03213.82
5.4.120.0080.04014.00
5.4.110.0130.02213.98
5.4.100.0070.03514.09
5.4.90.0110.02613.93
5.4.80.0030.03113.98
5.4.70.0080.02814.04
5.4.60.0130.02914.00
5.4.50.0080.03813.96
5.4.40.0100.02914.03
5.4.30.0130.02513.94
5.4.20.0100.02613.97
5.4.10.0110.02514.05
5.4.00.0060.02913.60
5.3.290.0080.02311.54
5.3.280.0070.02812.38
5.3.270.0040.03112.38
5.3.260.0070.02712.44
5.3.250.0060.03012.49
5.3.240.0060.02812.38
5.3.230.0060.02812.39
5.3.220.0070.03312.30
5.3.210.0110.02512.28
5.3.200.0090.03112.38
5.3.190.0040.04012.34
5.3.180.0070.02812.31
5.3.170.0100.03312.45
5.3.160.0060.03012.36
5.3.150.0150.02512.54
5.3.140.0040.02912.38
5.3.130.0030.03212.40
5.3.120.0100.03712.25
5.3.110.0110.02412.39
5.3.100.0120.02512.17
5.3.90.0070.03712.20
5.3.80.0080.02612.16
5.3.70.0030.02812.12
5.3.60.0070.03012.14
5.3.50.0050.03312.00
5.3.40.0060.02812.12
5.3.30.0080.03212.00
5.3.20.0150.02011.79
5.3.10.0110.02311.76
5.3.00.0060.02611.80
5.2.170.0030.02710.13
5.2.160.0050.02210.22
5.2.150.0060.02010.28
5.2.140.0060.02810.18
5.2.130.0060.02310.24
5.2.120.0080.02210.22
5.2.110.0100.02010.29
5.2.100.0040.02810.23
5.2.90.0030.02310.13
5.2.80.0020.02710.04
5.2.70.0070.02110.22
5.2.60.0100.0279.92
5.2.50.0060.02610.03
5.2.40.0080.01810.19
5.2.30.0060.02810.09
5.2.20.0080.0239.91
5.2.10.0050.02410.03
5.2.00.0020.0259.67
5.1.60.0030.0209.35
5.1.50.0070.0159.35
5.1.40.0070.0209.37
5.1.30.0070.0189.64
5.1.20.0010.0239.55
5.1.10.0130.0139.54
5.1.00.0030.0249.45
5.0.50.0080.0178.76
5.0.40.0060.0138.65
5.0.30.0030.0278.60
5.0.20.0080.0138.62
5.0.10.0080.0158.59
5.0.00.0080.0238.59
4.4.90.0050.0098.62
4.4.80.0020.0188.62
4.4.70.0030.0128.62
4.4.60.0010.0138.62
4.4.50.0050.0118.62
4.4.40.0010.0248.60
4.4.30.0060.0138.60
4.4.20.0020.0138.60
4.4.10.0050.0108.60
4.4.00.0040.0178.60
4.3.110.0060.0138.60
4.3.100.0060.0108.59
4.3.90.0010.0148.59
4.3.80.0010.0208.59
4.3.70.0030.0158.59
4.3.60.0020.0128.59
4.3.50.0050.0108.59
4.3.40.0030.0208.58
4.3.30.0030.0118.56
4.3.20.0030.0138.61
4.3.10.0040.0138.61
4.3.00.0030.0106.63

preferences:
47.96 ms | 400 KiB | 5 Q