3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = array("array_reduce"=>1, "array_diff_uassoc"=>1, "array_diff_ukey"=>1, "array_udiff"=>1, "array_udiff_assoc"=>1, "array_intersect_uassoc"=>1, "array_intersect_ukey"=>1, "array_uintersect"=>1, "array_uintersect_assoc"=>1, "array_walk"=>1, "array_walk_recursive"=>1, "iterator_apply"=>1, "usort"=>1, "uasort"=>1, "uksort"=>1, "iterator_apply"=>1, "array_map"=>1, "array_filter"=>1, "register_shutdown_function"=>1, "filter_var"=>1, "filter_var_array"=>1, "filter_input"=>1, "filter_input_array"=>1, "call_user_func"=>1, "call_user_func_array"=>1, ); function show_all($keys){ global $result; foreach ($keys as $key) { if(is_array($key)) show_all($key); else{ $refFunc = new ReflectionFunction($key); foreach( $refFunc->getParameters() as $param ){ if(preg_match('/callback/',$param->name)) $result[$key] = 1; } } } } show_all(get_defined_functions()); foreach (array_keys($result) as $key) { print "$key:\n"; $refFunc = new ReflectionFunction($key); foreach( $refFunc->getParameters() as $param ){ print "\t$param\n"; } } ?>

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.0060.00916.75
8.3.60.0140.01018.56
8.3.50.0130.00622.02
8.3.40.0080.00819.15
8.3.30.0000.01519.02
8.3.20.0080.00020.35
8.3.10.0040.00421.92
8.3.00.0040.00422.57
8.2.180.0220.00017.00
8.2.170.0130.01022.96
8.2.160.0090.00621.20
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00519.73
8.2.110.0100.00022.25
8.2.100.0060.00618.16
8.2.90.0000.00819.36
8.2.80.0090.00018.16
8.2.70.0000.01018.00
8.2.60.0060.00318.05
8.2.50.0000.00918.07
8.2.40.0000.00818.21
8.2.30.0040.00418.13
8.2.20.0030.00617.99
8.2.10.0000.00917.90
8.2.00.0070.00318.09
8.1.280.0180.00625.92
8.1.270.0060.00322.32
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01024.04
8.1.230.0100.00419.22
8.1.220.0060.00318.03
8.1.210.0060.00318.77
8.1.200.0090.00017.73
8.1.190.0090.00017.76
8.1.180.0060.00318.10
8.1.170.0000.00918.90
8.1.160.0030.00622.17
8.1.150.0030.00518.92
8.1.140.0000.01017.63
8.1.130.0040.00417.84
8.1.120.0060.00317.69
8.1.110.0050.00317.73
8.1.100.0030.00617.72
8.1.90.0040.00417.66
8.1.80.0000.00817.76
8.1.70.0080.00017.64
8.1.60.0000.00917.88
8.1.50.0030.00617.68
8.1.40.0000.01017.77
8.1.30.0030.00617.91
8.1.20.0030.00617.82
8.1.10.0040.00417.81
8.1.00.0030.00617.59
8.0.300.0030.00618.77
8.0.290.0030.00517.16
8.0.280.0080.00018.49
8.0.270.0030.00617.32
8.0.260.0000.00716.96
8.0.250.0000.00817.14
8.0.240.0030.00517.02
8.0.230.0030.00617.12
8.0.220.0000.00816.96
8.0.210.0040.00417.05
8.0.200.0040.00817.11
8.0.190.0080.00017.12
8.0.180.0050.00317.00
8.0.170.0090.00017.08
8.0.160.0040.00417.11
8.0.150.0030.00517.00
8.0.140.0030.00517.05
8.0.130.0110.00013.59
8.0.120.0000.01016.92
8.0.110.0060.00317.14
8.0.100.0040.00417.05
8.0.90.0030.00517.13
8.0.80.0060.01417.07
8.0.70.0060.00316.91
8.0.60.0040.00417.10
8.0.50.0000.00917.01
8.0.30.0060.01617.47
8.0.20.0140.00617.40
8.0.10.0030.00517.09
8.0.00.0120.00916.88
7.4.330.0030.00315.09
7.4.320.0000.00716.96
7.4.300.0100.00016.95
7.4.290.0000.00816.90
7.4.280.0040.00416.90
7.4.270.0060.00316.80
7.4.260.0050.00316.66
7.4.250.0040.00416.88
7.4.240.0040.00416.88
7.4.230.0000.00816.91
7.4.220.0170.01016.91
7.4.210.0100.00816.90
7.4.200.0080.00016.92
7.4.190.0000.00816.72
7.4.160.0090.00916.65
7.4.150.0130.00717.40
7.4.140.0090.01217.86
7.4.130.0100.01316.72
7.4.120.0120.01116.87
7.4.110.0140.01416.88
7.4.100.0160.01316.86
7.4.90.0090.01816.82
7.4.80.0060.01319.39
7.4.70.0030.01516.75
7.4.60.0070.01516.72
7.4.50.0000.00616.98
7.4.40.0070.00722.77
7.4.30.0030.01416.85
7.4.00.0070.00715.01
7.3.330.0060.00013.55
7.3.320.0030.00313.58
7.3.310.0000.00816.51
7.3.300.0000.00816.49
7.3.290.0120.00316.50
7.3.280.0080.01316.58
7.3.270.0110.00717.40
7.3.260.0060.01216.86
7.3.250.0030.02016.89
7.3.240.0070.01416.75
7.3.230.0070.01316.98
7.3.210.0040.01516.87
7.3.200.0100.01416.64
7.3.190.0070.01716.70
7.3.180.0060.01316.84
7.3.170.0140.00316.88
7.3.160.0110.00716.65
7.3.120.0160.00315.27
7.3.10.0090.00616.76
7.3.00.0060.00316.76
7.2.330.0140.00716.92
7.2.320.0080.01216.77
7.2.310.0110.00816.90
7.2.300.0140.00616.77
7.2.290.0110.01117.02
7.2.130.0030.01017.34
7.2.120.0160.00716.93
7.2.110.0060.00917.21
7.2.100.0030.00917.18
7.2.90.0040.01117.18
7.2.80.0080.00817.16
7.2.70.0140.00317.23
7.2.60.0050.01517.04
7.2.50.0080.00617.01
7.2.40.0030.01417.23
7.2.30.0040.01517.16
7.2.20.0000.01517.18
7.2.10.0030.01616.97
7.2.00.0060.00718.40
7.1.250.0030.01015.88
7.1.200.0030.01215.97
7.1.100.0070.01018.56
7.1.70.0030.01417.37
7.1.60.0130.01319.82
7.1.50.0070.01717.32
7.1.00.0070.07322.33
7.0.200.0070.01017.04
7.0.140.0030.07721.91
7.0.100.0030.06719.95
7.0.90.0100.04719.98
7.0.80.0300.08719.96
7.0.70.0000.06019.88
7.0.60.0070.09019.97
7.0.50.0130.07720.44
7.0.40.0100.07720.05
7.0.30.0030.08720.14
7.0.20.0030.09020.14
7.0.10.0130.07320.04
7.0.00.0100.06020.04
5.6.280.0030.07721.49
5.6.250.0070.08720.95
5.6.240.0070.08321.02
5.6.230.0100.08721.02
5.6.220.0070.04721.00
5.6.210.0170.07720.84
5.6.200.0100.08021.41
5.6.190.0100.06721.31
5.6.180.0070.04021.41
5.6.170.0030.04321.43
5.6.160.0030.08721.45
5.6.150.0070.04021.39
5.6.140.0100.07321.39
5.6.130.0100.05021.36
5.6.120.0100.07321.41
5.6.110.0130.07321.25
5.6.100.0070.08721.50
5.6.90.0070.08721.38
5.6.80.0100.05720.79
5.6.70.0100.07320.71
5.6.60.0170.06020.86
5.6.50.0070.09020.82
5.6.40.0130.04720.86
5.6.30.0070.06020.67
5.6.20.0100.04720.65
5.6.10.0100.04320.64
5.6.00.0130.06020.68
5.5.380.0070.08020.66
5.5.370.0170.06720.66
5.5.360.0230.07320.84
5.5.350.0030.05720.68
5.5.340.0070.07721.19
5.5.330.0030.08021.20
5.5.320.0100.07721.05
5.5.310.0030.08321.09
5.5.300.0100.09021.16
5.5.290.0030.07021.17
5.5.280.0100.07321.17
5.5.270.0100.05720.92
5.5.260.0000.07021.05
5.5.250.0100.08021.01
5.5.240.0030.05320.50
5.5.230.0000.06720.57
5.5.220.0100.06720.56
5.5.210.0070.08020.55
5.5.200.0100.05320.44
5.5.190.0000.07720.38
5.5.180.0030.07320.41
5.5.160.0000.04720.55
5.5.150.0030.07320.56
5.5.140.0070.07720.55
5.5.130.0030.08020.43
5.5.120.0130.06720.44
5.5.110.0170.04320.39
5.5.100.0130.07020.27
5.5.90.0170.07720.29
5.5.80.0030.08720.44
5.5.70.0030.05320.35
5.5.60.0130.07020.37
5.5.50.0000.08720.29
5.5.40.0070.07720.34
5.5.30.0130.08320.40
5.5.20.0100.08320.32
5.5.10.0070.08020.35
5.5.00.0100.08020.30
5.4.450.0000.06019.66
5.4.440.0100.04719.66
5.4.430.0070.08319.43
5.4.420.0070.07019.50
5.4.410.0070.08019.49
5.4.400.0000.05019.34
5.4.390.0070.08019.11
5.4.380.0070.06319.23
5.4.370.0130.05719.27
5.4.360.0030.05319.20
5.4.350.0030.08019.23
5.4.340.0030.08719.10
5.4.320.0170.07019.36
5.4.310.0030.07319.24
5.4.300.0130.06719.30
5.4.290.0070.07019.43
5.4.280.0230.07019.33
5.4.270.0000.08719.25
5.4.260.0070.06319.24
5.4.250.0070.05719.07
5.4.240.0030.05319.06
5.4.230.0130.07019.27
5.4.220.0030.08319.20
5.4.210.0170.06319.29
5.4.200.0100.04319.31
5.4.190.0100.06019.26
5.4.180.0070.08019.42
5.4.170.0100.06719.16
5.4.160.0070.04319.08
5.4.150.0100.05319.15
5.4.140.0070.07316.51
5.4.130.0000.05016.64
5.4.120.0100.07016.48
5.4.110.0070.04716.64
5.4.100.0070.06716.73
5.4.90.0100.07316.57
5.4.80.0100.03016.63
5.4.70.0030.03716.70
5.4.60.0000.07716.74
5.4.50.0070.05016.70
5.4.40.0070.07716.71
5.4.30.0100.08016.73
5.4.20.0000.05716.54
5.4.10.0170.06316.73
5.4.00.0100.07016.11
5.3.290.0130.07715.07
5.3.280.0070.05314.93
5.3.270.0070.05714.98
5.3.260.0130.06315.04
5.3.250.0030.05715.05
5.3.240.0100.07714.89
5.3.230.0100.07314.98
5.3.220.0070.05714.81
5.3.210.0030.07714.86
5.3.200.0030.04714.92
5.3.190.0070.03714.89
5.3.180.0070.08014.84
5.3.170.0070.06714.79
5.3.160.0030.07014.95
5.3.150.0030.03714.95
5.3.140.0070.08014.86
5.3.130.0070.07714.88
5.3.120.0030.08314.85
5.3.110.0030.04014.92
5.3.100.0030.03714.49
5.3.90.0030.06314.48
5.3.80.0000.05714.38
5.3.70.0030.07714.38
5.3.60.0030.04314.37
5.3.50.0130.07314.19
5.3.40.0100.06714.18
5.3.30.0100.07314.36
5.3.20.0000.07013.89
5.3.10.0300.04014.07
5.3.00.0070.07713.93
5.2.170.0000.07012.29
5.2.160.0070.06312.29
5.2.150.0100.06012.29
5.2.140.0030.06712.29
5.2.130.0030.04312.29
5.2.120.0000.06712.29
5.2.110.0000.05312.29
5.2.100.0100.03012.29
5.2.90.0070.06712.29
5.2.80.0070.06312.29
5.2.70.0130.05712.29
5.2.60.0030.03312.29
5.2.50.0070.05312.29
5.2.40.0100.04012.29
5.2.30.0030.05012.29
5.2.20.0100.05712.29
5.2.10.0030.03312.29
5.2.00.0000.04012.29
5.1.60.0070.03312.29
5.1.50.0030.05012.29
5.1.40.0070.04012.29
5.1.30.0000.03712.29
5.1.20.0030.05012.29
5.1.10.0030.05012.29
5.1.00.0130.04712.29
5.0.50.0070.04012.29
5.0.40.0070.03312.29
5.0.30.0000.03312.29
5.0.20.0100.03712.29
5.0.10.0000.04012.29
5.0.00.0030.06312.29
4.4.90.0000.02012.29
4.4.80.0000.01712.29
4.4.70.0070.03012.29
4.4.60.0000.02012.29
4.4.50.0000.02712.29
4.4.40.0000.05312.29
4.4.30.0070.03312.29
4.4.20.0000.03312.29
4.4.10.0030.02712.29
4.4.00.0030.04712.29
4.3.110.0070.01012.29
4.3.100.0070.03312.29
4.3.90.0000.03012.29
4.3.80.0030.05712.29
4.3.70.0000.02312.29
4.3.60.0000.02312.29
4.3.50.0000.03712.29
4.3.40.0030.04012.29
4.3.30.0000.01712.29
4.3.20.0030.03312.29
4.3.10.0000.03712.29
4.3.00.0000.03012.29

preferences:
83.94 ms | 401 KiB | 5 Q