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; echo "Name Length \t\t Count" . PHP_EOL . PHP_EOL; foreach ($length_variance as $length => $count) { echo $length ."\t\t\t". $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.70.0090.01316.63
8.3.60.0160.00618.55
8.3.50.0110.01121.97
8.3.40.0130.00318.63
8.3.30.0070.00719.09
8.3.20.0080.00020.37
8.3.10.0080.00021.97
8.3.00.0040.00422.46
8.2.180.0090.00618.43
8.2.170.0090.00622.96
8.2.160.0090.00620.91
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0060.00326.16
8.2.120.0080.00017.63
8.2.110.0090.00022.11
8.2.100.0080.00417.91
8.2.90.0040.00419.35
8.2.80.0040.00419.66
8.2.70.0000.01017.75
8.2.60.0060.00318.05
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0040.00418.17
8.2.20.0080.00017.70
8.2.10.0040.00419.45
8.2.00.0080.00017.73
8.1.280.0180.00025.92
8.1.270.0040.00422.31
8.1.260.0040.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.87
8.1.230.0110.00019.22
8.1.220.0030.00617.77
8.1.210.0050.00318.77
8.1.200.0000.00917.48
8.1.190.0000.00817.79
8.1.180.0000.00818.10
8.1.170.0050.00518.71
8.1.160.0000.00822.10
8.1.150.0030.00518.77
8.1.140.0040.00417.45
8.1.130.0080.00017.93
8.1.120.0000.00717.46
8.1.110.0000.00917.54
8.1.100.0040.00417.55
8.1.90.0070.00017.48
8.1.80.0050.00217.55
8.1.70.0080.00017.56
8.1.60.0000.00917.73
8.1.50.0000.00817.57
8.1.40.0030.00617.65
8.1.30.0060.00317.67
8.1.20.0080.00017.72
8.1.10.0000.00817.68
8.1.00.0000.00817.61
8.0.300.0070.00018.77
8.0.290.0040.00417.29
8.0.280.0070.00018.57
8.0.270.0030.00317.45
8.0.260.0000.00716.91
8.0.250.0050.00317.04
8.0.240.0000.01016.95
8.0.230.0030.00316.97
8.0.220.0030.00317.00
8.0.210.0070.00016.94
8.0.200.0040.00416.90
8.0.190.0090.00017.07
8.0.180.0040.00416.90
8.0.170.0050.00316.97
8.0.160.0080.00017.04
8.0.150.0040.00417.01
8.0.140.0050.00516.90
8.0.130.0000.00613.40
8.0.120.0040.00416.83
8.0.110.0040.00416.93
8.0.100.0050.00216.93
8.0.90.0030.00517.02
8.0.80.0150.00716.95
8.0.70.0040.00416.92
8.0.60.0050.00217.09
8.0.50.0000.00717.01
8.0.30.0130.00917.29
8.0.20.0090.01017.40
8.0.10.0000.00716.95
8.0.00.0090.01116.72
7.4.330.0020.00215.15
7.4.320.0070.00016.46
7.4.300.0000.00616.61
7.4.290.0040.00416.68
7.4.280.0030.00316.73
7.4.270.0070.00016.68
7.4.260.0040.00416.51
7.4.250.0030.00516.66
7.4.240.0030.00516.70
7.4.230.0040.00416.70
7.4.220.0090.00916.73
7.4.210.0090.00916.72
7.4.200.0000.00716.49
7.4.190.0040.00416.69
7.4.160.0110.01416.62
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0090.01016.50
7.4.120.0110.00816.64
7.4.110.0150.00316.74
7.4.100.0120.00916.68
7.4.90.0060.01216.74
7.4.80.0290.03819.39
7.4.70.0080.00816.45
7.4.60.0090.00916.74
7.4.50.0030.00616.56
7.4.40.0080.01122.77
7.4.30.0130.00416.71
7.4.00.0030.01015.26
7.3.330.0070.00013.43
7.3.320.0000.00513.39
7.3.310.0040.00416.45
7.3.300.0070.00016.51
7.3.290.0070.01016.47
7.3.280.0080.01216.47
7.3.270.0120.00617.40
7.3.260.0130.00316.39
7.3.250.0150.00416.63
7.3.240.0050.01516.47
7.3.230.0080.00816.47
7.3.210.0150.00416.45
7.3.200.0050.01719.39
7.3.190.0120.00616.79
7.3.180.0120.00616.48
7.3.170.0130.00316.46
7.3.160.0060.01816.46
7.3.120.0030.01214.87
7.3.10.0160.00816.30
7.3.00.0180.00616.74
7.2.330.0040.01416.73
7.2.320.0090.00916.84
7.2.310.0150.00416.88
7.2.300.0100.01316.81
7.2.290.0060.01216.68
7.2.130.0150.00317.15
7.2.120.0140.00416.64
7.2.110.0150.00916.81
7.2.100.0120.00817.06
7.2.90.0160.00416.74
7.2.80.0150.00316.99
7.2.70.0140.00416.40
7.2.60.0090.00916.84
7.2.50.0040.01116.90
7.2.40.0190.00017.04
7.2.30.0100.01016.90
7.2.20.0150.00317.00
7.2.10.0130.00616.95
7.2.00.0080.00818.17
7.1.250.0120.00915.90
7.1.200.0100.00315.73
7.1.100.0060.00617.99
7.1.70.0000.01017.30
7.1.60.0090.01219.82
7.1.50.0110.01116.93
7.1.00.0000.08022.28
7.0.200.0030.00716.78
7.0.140.0030.07321.96
7.0.60.0030.07319.94
7.0.50.0130.07317.93
7.0.40.0030.08020.20
7.0.30.0070.04320.07
7.0.20.0400.05320.19
7.0.10.0070.04020.12
7.0.00.0030.05720.25
5.6.280.0070.07321.33
5.6.210.0000.05020.99
5.6.200.0100.07718.43
5.6.190.0030.04320.93
5.6.180.0230.07020.96
5.6.170.0170.06720.90
5.6.160.0130.06720.85
5.6.150.0130.07318.42
5.6.140.0030.06318.45
5.6.130.0100.08018.27
5.6.120.0000.04321.54
5.6.110.0070.09021.57
5.6.100.0100.08021.54
5.6.90.0070.05021.54
5.6.80.0130.08021.04
5.5.350.4200.04320.76
5.5.340.0070.06018.29
5.5.330.0030.06020.71
5.5.320.0300.08320.68
5.5.310.0300.05320.44
5.5.300.0000.04318.23
5.5.290.0130.08018.08
5.5.280.0030.08721.27
5.5.270.0170.05721.16
5.5.260.0070.07321.38
5.5.250.0030.08321.13
5.5.240.0130.07320.64
5.4.450.0200.08019.64
5.4.440.0200.06719.86
5.4.430.0230.06019.54
5.4.420.0200.04719.53
5.4.410.0200.08319.26
5.4.400.0270.04319.31
5.4.390.0230.06319.28
5.4.380.0300.07319.07
5.4.370.0270.07019.35
5.4.360.0270.05019.32
5.4.350.0330.03319.30
5.4.340.0270.07019.10
5.4.320.0200.04719.36
5.4.310.0170.05019.32
5.4.300.0300.04319.45
5.4.290.0170.07319.24
5.4.280.0330.06719.30
5.4.270.0270.06719.30
5.4.260.0270.06719.22
5.4.250.0200.04719.29
5.4.240.0230.07319.52
5.4.230.0300.07019.29
5.4.220.0200.06019.29
5.4.210.0230.03719.45
5.4.200.0170.04019.05
5.4.190.0300.06719.30
5.4.180.0170.04319.43
5.4.170.0100.04719.29
5.4.160.0330.04019.29
5.4.150.0200.04019.53
5.4.140.0200.03316.58
5.4.130.0200.05016.58
5.4.120.0130.03716.59
5.4.110.0170.03716.58
5.4.100.0170.03716.74
5.4.90.0200.07316.80
5.4.80.0170.04016.80
5.4.70.0200.04016.53
5.4.60.0170.04016.78
5.4.50.0270.06316.63
5.4.40.0200.04716.63
5.4.30.0270.06316.79
5.4.20.0300.04016.59
5.4.10.0130.04316.50
5.4.00.0230.04716.00
5.3.290.0170.08014.61
5.3.280.0100.05714.46
5.3.270.0270.07014.45
5.3.260.0200.07714.46
5.3.250.0270.07014.55
5.3.240.0300.05014.59
5.3.230.0230.07014.61
5.3.220.0270.07014.59
5.3.210.0230.06314.40
5.3.200.0170.04014.42
5.3.190.0330.03714.43
5.3.180.0200.05714.42
5.3.170.0200.03714.61
5.3.160.0300.04314.40
5.3.150.0330.06014.50
5.3.140.0230.05714.57
5.3.130.0200.06014.57
5.3.120.0130.04714.48
5.3.110.0130.04314.39
5.3.100.0230.07314.14
5.3.90.0230.07014.13
5.3.80.0170.06313.87
5.3.70.0230.03713.94
5.3.60.0170.04013.96
5.3.50.0270.03013.99
5.3.40.0270.06713.97
5.3.30.0270.06713.84
5.3.20.0270.06313.46
5.3.10.0200.05313.61
5.3.00.0200.07313.68
5.2.170.0130.03313.19
5.2.160.0130.04013.19
5.2.150.0130.03013.19
5.2.140.0170.04713.19
5.2.130.0130.04013.19
5.2.120.0200.02713.19
5.2.110.0170.06313.19
5.2.100.0200.06013.19
5.2.90.0270.03313.19
5.2.80.0230.06013.19
5.2.70.0230.05013.19
5.2.60.0200.05013.19
5.2.50.0200.05713.19
5.2.40.0130.06313.19
5.2.30.0130.06013.19
5.2.20.0170.04313.19
5.2.10.0130.06013.19
5.2.00.0200.05313.19
5.1.60.0200.04713.19
5.1.50.0170.05313.19
5.1.40.0100.03713.19
5.1.30.0170.02713.19
5.1.20.0200.05013.19
5.1.10.0230.04313.19
5.1.00.0170.02713.19
5.0.50.0100.04713.19
5.0.40.0100.04313.19
5.0.30.0130.04713.19
5.0.20.0100.02313.19
5.0.10.0100.04013.19
5.0.00.0070.05013.19
4.4.90.0170.02713.19
4.4.80.0030.03713.19
4.4.70.0100.02013.19
4.4.60.0100.01713.19
4.4.50.0100.03013.19
4.4.40.0030.05313.19
4.4.30.0000.03313.19
4.4.20.0130.01713.19
4.4.10.0130.03313.19
4.4.00.0100.04013.19
4.3.110.0100.03713.19
4.3.100.0070.02313.19
4.3.90.0070.03313.19
4.3.80.0100.03013.19
4.3.70.0030.02313.19
4.3.60.0100.03713.19
4.3.50.0100.01313.19
4.3.40.0000.02713.19
4.3.30.0000.03313.19
4.3.20.0070.02713.19
4.3.10.0000.02313.19
4.3.00.0000.02013.19

preferences:
40.3 ms | 401 KiB | 5 Q