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.0040.01118.43
8.3.50.0130.00821.97
8.3.40.0120.00318.84
8.3.30.0100.00319.22
8.3.20.0000.00720.20
8.3.10.0050.00221.80
8.3.00.0040.00422.34
8.2.180.0070.01016.50
8.2.170.0070.00722.96
8.2.160.0090.00620.87
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0100.00726.16
8.2.120.0060.00319.63
8.2.110.0100.00021.86
8.2.100.0060.00618.16
8.2.90.0030.00619.34
8.2.80.0080.00019.66
8.2.70.0050.00317.50
8.2.60.0070.00417.74
8.2.50.0000.00918.07
8.2.40.0060.00318.34
8.2.30.0060.00318.23
8.2.20.0060.00317.64
8.2.10.0050.00319.55
8.2.00.0000.00917.85
8.1.280.0060.00925.92
8.1.270.0050.00322.27
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0060.00620.89
8.1.230.0120.00019.23
8.1.220.0050.00317.79
8.1.210.0080.00018.77
8.1.200.0060.00317.60
8.1.190.0030.00617.75
8.1.180.0040.00418.10
8.1.170.0130.00018.49
8.1.160.0040.00422.01
8.1.150.0040.00418.79
8.1.140.0000.00817.54
8.1.130.0030.00318.02
8.1.120.0040.00417.43
8.1.110.0000.00817.42
8.1.100.0040.00417.43
8.1.90.0060.00317.41
8.1.80.0000.00817.51
8.1.70.0000.00717.51
8.1.60.0080.00017.67
8.1.50.0080.00017.50
8.1.40.0030.00517.65
8.1.30.0090.00017.73
8.1.20.0060.00317.73
8.1.10.0050.00317.67
8.1.00.0050.00317.64
8.0.300.0060.00318.77
8.0.290.0000.00717.30
8.0.280.0030.00318.54
8.0.270.0030.00517.34
8.0.260.0000.00716.81
8.0.250.0000.00817.00
8.0.240.0030.00617.07
8.0.230.0030.00517.00
8.0.220.0000.00716.97
8.0.210.0000.00716.99
8.0.200.0080.00016.96
8.0.190.0000.00716.88
8.0.180.0000.00716.99
8.0.170.0000.00916.90
8.0.160.0000.00816.96
8.0.150.0000.00816.85
8.0.140.0030.00616.91
8.0.130.0060.00013.41
8.0.120.0070.00016.83
8.0.110.0040.00417.05
8.0.100.0000.00716.81
8.0.90.0030.00617.02
8.0.80.0030.01716.90
8.0.70.0020.00516.97
8.0.60.0040.00416.86
8.0.50.0000.00717.04
8.0.30.0130.00717.12
8.0.20.0130.00617.40
8.0.10.0050.00217.14
8.0.00.0100.01016.91
7.4.330.0020.00215.20
7.4.320.0040.00416.72
7.4.300.0000.00616.59
7.4.290.0070.00016.62
7.4.280.0000.00816.67
7.4.270.0040.00416.62
7.4.260.0030.00316.57
7.4.250.0000.00816.70
7.4.240.0020.00616.65
7.4.230.0050.00316.39
7.4.220.0060.01316.78
7.4.210.0060.01116.76
7.4.200.0000.00716.46
7.4.190.0070.00016.71
7.4.160.0130.00316.46
7.4.150.0040.01617.40
7.4.140.0070.01217.86
7.4.130.0110.00916.56
7.4.120.0060.01216.73
7.4.110.0070.01016.54
7.4.100.0150.00316.62
7.4.90.0110.00716.75
7.4.80.0100.01019.39
7.4.70.0070.01016.63
7.4.60.0160.00316.52
7.4.50.0060.00316.40
7.4.40.0080.00822.77
7.4.30.0120.00316.54
7.4.00.0070.01014.95
7.3.330.0040.00413.31
7.3.320.0000.00513.45
7.3.310.0040.00416.35
7.3.300.0040.00416.41
7.3.290.0120.00316.47
7.3.280.0140.00516.37
7.3.270.0120.00617.40
7.3.260.0050.01416.56
7.3.250.0150.00216.57
7.3.240.0150.00616.52
7.3.230.0090.00916.70
7.3.210.0130.00416.56
7.3.200.0170.00719.39
7.3.190.0090.00916.43
7.3.180.0170.00016.59
7.3.170.0060.01016.51
7.3.160.0070.01016.58
7.3.120.0040.01114.83
7.3.00.0100.00316.67
7.2.330.0100.01016.60
7.2.320.0060.01316.84
7.2.310.0070.01016.57
7.2.300.0070.01016.85
7.2.290.0140.00316.83
7.2.130.0100.00316.73
7.2.120.0060.00916.99
7.2.110.0090.00616.99
7.2.100.0070.00716.89
7.2.90.0040.01117.23
7.2.80.0060.00916.67
7.2.70.0090.00617.00
7.2.60.0070.00516.99
7.2.50.0000.00917.04
7.2.40.0070.00716.98
7.2.30.0110.00416.96
7.2.20.0100.00616.92
7.2.10.0040.00817.17
7.2.00.0060.00818.06
7.1.250.0060.00815.89
7.1.240.0060.00615.82
7.1.230.0070.00715.91
7.1.220.0060.00615.74
7.1.210.0060.00915.79
7.1.200.0020.00715.76
7.1.190.0120.00615.79
7.1.180.0030.00915.88
7.1.170.0030.00615.84
7.1.160.0100.00615.76
7.1.150.0080.00415.82
7.1.140.0040.01115.57
7.1.130.0030.01015.79
7.1.120.0120.00315.83
7.1.110.0070.01015.93
7.1.100.0030.00916.87
7.1.90.0000.01015.89
7.1.80.0060.00915.55
7.1.70.0080.00616.61
7.1.60.0070.01217.88
7.1.50.0040.00816.51
7.1.40.0000.01215.79
7.1.30.0110.00315.95
7.1.20.0040.00715.75
7.1.10.0000.01015.72
7.1.00.0060.04019.13
7.0.330.0060.00915.39
7.0.320.0030.00615.32
7.0.310.0070.01015.38
7.0.300.0090.00615.39
7.0.290.0060.00615.31
7.0.280.0080.00315.43
7.0.270.0030.00915.24
7.0.260.0030.00915.43
7.0.250.0030.00615.55
7.0.240.0040.00815.57
7.0.230.0070.00715.27
7.0.220.0030.01015.52
7.0.210.0030.01015.47
7.0.200.0040.00715.96
7.0.190.0040.01115.23
7.0.180.0000.00715.22
7.0.170.0000.01115.38
7.0.160.0030.01015.26
7.0.150.0100.00315.40
7.0.140.0070.03818.74
7.0.130.0000.01615.39
7.0.120.0000.01115.39
7.0.110.0030.00615.59
7.0.100.0040.00815.49
7.0.90.0110.00415.36
7.0.80.0000.00915.51
7.0.70.0000.01115.10
7.0.60.0160.03817.63
7.0.50.0050.02316.56
7.0.40.0040.04416.71
7.0.30.0160.02116.91
7.0.20.0180.02816.74
7.0.10.0030.04816.82
7.0.00.0080.02016.86
5.6.380.0030.00915.05
5.6.370.0030.01014.83
5.6.360.0070.00714.75
5.6.350.0090.00614.76
5.6.340.0070.01014.50
5.6.330.0090.00314.78
5.6.320.0100.00314.69
5.6.310.0060.00614.77
5.6.300.0030.01314.54
5.6.290.0070.00714.85
5.6.280.0050.04018.10
5.6.270.0110.00015.25
5.6.260.0060.00614.65
5.6.250.0030.01014.88
5.6.240.0120.00314.60
5.6.230.0120.00314.85
5.6.220.0060.00614.91
5.6.210.0060.03617.85
5.6.200.0070.03216.93
5.6.190.0070.04517.82
5.6.180.0050.02817.79
5.6.170.0220.03117.68
5.6.160.0070.02517.93
5.6.150.0130.03416.66
5.6.140.0040.04716.69
5.6.130.0070.03016.68
5.6.120.0150.03718.14
5.6.110.0100.04318.08
5.6.100.0020.03518.21
5.6.90.0070.04918.09
5.6.80.0050.02617.71
5.6.70.0090.00014.92
5.6.60.0070.01014.78
5.6.50.0120.00314.67
5.6.40.0060.00914.83
5.6.30.0110.00414.75
5.6.20.0100.00314.96
5.6.10.0030.01214.74
5.6.00.0000.01314.77
5.5.380.0090.00611.48
5.5.370.0050.00211.38
5.5.360.0080.00011.27
5.5.350.0060.04316.19
5.5.340.0070.04714.69
5.5.330.0050.04816.17
5.5.320.0170.02216.15
5.5.310.0160.02116.21
5.5.300.0080.02014.72
5.5.290.0000.04714.79
5.5.280.0020.02516.22
5.5.270.0030.03916.29
5.5.260.0020.03916.36
5.5.250.0020.02816.18
5.5.240.0040.04416.09
5.5.230.0030.00711.18
5.5.220.0000.01011.56
5.5.210.0040.01111.53
5.5.200.0060.00311.59
5.5.190.0040.00411.46
5.5.180.0110.00011.56
5.5.170.0030.00311.18
5.5.160.0100.00311.61
5.5.150.0060.00611.54
5.5.140.0000.01311.52
5.5.130.0030.01011.56
5.5.120.0000.00811.29
5.5.110.0030.00611.35
5.5.100.0040.00811.30
5.5.90.0030.00911.55
5.5.80.0070.00711.44
5.5.70.0030.00611.50
5.5.60.0030.01211.27
5.5.50.0030.01011.54
5.5.40.0130.00011.30
5.5.30.0000.01411.18
5.5.20.0000.00711.30
5.5.10.0100.00311.25
5.5.00.0040.00711.20
5.4.450.0210.02515.41
5.4.440.0670.02415.40
5.4.430.0500.02315.57
5.4.420.0280.02115.54
5.4.410.0220.02515.51
5.4.400.0190.02215.23
5.4.390.0200.01815.47
5.4.380.0230.02815.19
5.4.370.0100.03615.24
5.4.360.0190.02915.26
5.4.350.0230.02815.50
5.4.340.0210.02615.29
5.4.330.0060.00311.27
5.4.320.0070.02112.07
5.4.310.0040.02412.06
5.4.300.0060.02112.17
5.4.290.0060.02212.11
5.4.280.0040.02112.12
5.4.270.0050.03515.25
5.4.260.0050.03315.17
5.4.250.0020.04415.23
5.4.240.0140.03615.31
5.4.230.0070.04215.17
5.4.220.0110.03715.35
5.4.210.0100.03515.24
5.4.200.0100.03915.13
5.4.190.0070.04415.28
5.4.180.0050.03215.30
5.4.170.0080.02915.30
5.4.160.0030.03315.21
5.4.150.0050.03815.40
5.4.140.0040.03414.12
5.4.130.0080.02614.17
5.4.120.0050.03614.19
5.4.110.0100.02613.91
5.4.100.0110.02714.01
5.4.90.0030.03214.10
5.4.80.0080.03114.00
5.4.70.0050.03514.01
5.4.60.0090.03314.07
5.4.50.0080.02514.04
5.4.40.0060.02714.11
5.4.30.0030.03114.06
5.4.20.0030.03314.00
5.4.10.0070.03614.14
5.4.00.0030.03313.90
5.3.290.0060.02611.99
5.3.280.0040.03812.95
5.3.270.0120.02412.98
5.3.260.0100.02812.89
5.3.250.0050.03012.91
5.3.240.0100.02512.97
5.3.230.0050.02912.94
5.3.220.0140.02212.78
5.3.210.0040.02712.98
5.3.200.0030.03212.97
5.3.190.0030.03012.87
5.3.180.0020.03212.96
5.3.170.0070.02512.95
5.3.160.0020.03512.87
5.3.150.0100.02312.79
5.3.140.0030.03212.94
5.3.130.0050.03412.91
5.3.120.0030.03212.95
5.3.110.0010.04412.93
5.3.100.0050.03712.69
5.3.90.0080.02812.63
5.3.80.0030.03012.65
5.3.70.0050.02812.63
5.3.60.0070.02712.55
5.3.50.0070.02512.62
5.3.40.0060.03512.55
5.3.30.0000.03012.62
5.3.20.0050.02812.52
5.3.10.0070.03212.41
5.3.00.0030.03812.45
5.2.170.0080.02211.21
5.2.160.0070.02011.12
5.2.150.0070.02011.24
5.2.140.0020.02811.23
5.2.130.0020.03311.20
5.2.120.0040.02111.19
5.2.110.0080.01811.24
5.2.100.0050.03211.21
5.2.90.0070.02511.24
5.2.80.0070.02711.21
5.2.70.0020.02711.10
5.2.60.0030.02211.14
5.2.50.0050.03111.21
5.2.40.0050.02111.16
5.2.30.0030.02411.14
5.2.20.0050.02311.14
5.2.10.0020.02411.13
5.2.00.0080.03111.08
5.1.60.0030.01810.68
5.1.50.0010.02510.66
5.1.40.0070.02510.63
5.1.30.0020.02110.69
5.1.20.0060.01810.83
5.1.10.0080.02110.78
5.1.00.0030.02410.72
5.0.50.0020.01710.00
5.0.40.0030.0179.82
5.0.30.0050.0209.82
5.0.20.0060.0139.82
5.0.10.0000.0209.82
5.0.00.0010.0319.82
4.4.90.0050.0109.82
4.4.80.0070.0129.82
4.4.70.0000.0139.82
4.4.60.0050.0129.82
4.4.50.0000.0159.82
4.4.40.0050.0189.82
4.4.30.0050.0109.82
4.4.20.0000.0199.82
4.4.10.0030.0169.82
4.4.00.0030.0219.82
4.3.110.0030.0129.82
4.3.100.0000.0159.82
4.3.90.0060.0089.82
4.3.80.0030.0209.82
4.3.70.0030.0139.82
4.3.60.0070.0119.82
4.3.50.0020.0139.82
4.3.40.0030.0169.82
4.3.30.0000.0159.82
4.3.20.0000.0159.82
4.3.10.0030.0139.82
4.3.00.0020.00913.38

preferences:
39.41 ms | 401 KiB | 5 Q