3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func_get_args_in_current_user_can( $capability ) { $args = array_slice( func_get_args(), 1 ); $args = array_merge( array( $capability ), $args ); var_dump($args); } function func_get_args_simplified( $capability ) { $args = func_get_args(); var_dump($args); } // Passing 1 arg. func_get_args_in_current_user_can( 'edit_posts' ); func_get_args_simplified( 'edit_posts' ); // Passing 2 args. func_get_args_in_current_user_can( 'edit_post', 10 ); func_get_args_simplified( 'edit_post', 10 ); // Passing 3 args. func_get_args_in_current_user_can( 'edit_post_meta', 10, 'meta_key' ); func_get_args_simplified( 'edit_post_meta', 10, 'meta_key' );

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.0100.00718.56
8.3.50.0120.00521.26
8.3.40.0110.00418.80
8.3.30.0110.00418.68
8.3.20.0090.00522.69
8.3.10.0080.00521.81
8.3.00.0060.00722.13
8.2.180.0160.00316.38
8.2.170.0130.00318.79
8.2.160.0030.01022.96
8.2.150.0070.00723.29
8.2.140.0090.00523.37
8.2.130.0040.00824.21
8.2.120.0100.00220.52
8.2.110.0030.00921.59
8.2.100.0100.00319.32
8.2.90.0080.00519.19
8.2.80.0100.00319.59
8.2.70.0040.00719.17
8.2.60.0130.00319.22
8.2.50.0050.00619.40
8.2.40.0070.00419.86
8.2.30.0040.00719.87
8.2.20.0080.00719.26
8.2.10.0110.00419.95
8.2.00.0090.00718.96
8.1.280.0120.00425.92
8.1.270.0100.00322.19
8.1.260.0060.00624.24
8.1.250.0040.00725.16
8.1.240.0120.00322.12
8.1.230.0080.00520.71
8.1.220.0000.01219.12
8.1.210.0080.00719.55
8.1.200.0060.00918.90
8.1.190.0090.00218.04
8.1.180.0070.00418.21
8.1.170.0080.00618.57
8.1.160.0070.00418.73
8.1.150.0050.00918.78
8.1.140.0050.01020.33
8.1.130.0110.00318.06
8.1.120.0070.00517.82
8.1.110.0070.00517.99
8.1.100.0040.00917.99
8.1.90.0030.01018.01
8.1.80.0090.00418.59
8.1.70.0080.00517.94
8.1.60.0050.00718.13
8.1.50.0070.00517.99
8.1.40.0090.00318.10
8.1.30.0040.00818.11
8.1.20.0040.00718.79
8.1.10.0090.00218.13
8.1.00.0060.00617.92
8.0.300.0070.00318.73
8.0.290.0130.00317.32
8.0.280.0100.00717.95
8.0.270.0070.00317.37
8.0.260.0100.00517.31
8.0.250.0120.00417.42
8.0.240.0090.00817.39
8.0.230.0080.00617.38
8.0.220.0070.00517.30
8.0.210.0080.00917.31
8.0.200.0130.00517.40
8.0.190.0090.00717.44
8.0.180.0090.00617.29
8.0.170.0110.00617.27
8.0.160.0030.00917.34
8.0.150.0090.00717.13
8.0.140.0100.00617.28
8.0.130.0090.00615.55
8.0.120.0150.00117.30
8.0.110.0070.00418.27
8.0.100.0100.00517.33
8.0.90.0150.00117.35
8.0.80.0130.00717.39
8.0.70.0040.00717.38
8.0.60.0110.00517.36
8.0.50.0120.00417.35
8.0.30.0140.00417.42
8.0.20.0100.00817.51
8.0.10.0130.00317.52
8.0.00.0100.00717.48
7.4.330.0120.00314.84
7.4.320.0230.00416.97
7.4.300.0090.00817.06
7.4.290.0120.00717.00
7.4.280.0100.00917.03
7.4.270.0120.00917.00
7.4.260.0170.00516.96
7.4.250.0180.00416.91
7.4.240.0100.00716.82
7.4.230.0130.00916.98
7.4.220.0140.00716.95
7.4.210.0100.01116.75
7.4.200.0120.00617.01
7.4.190.0160.01217.67
7.4.180.0230.00417.46
7.4.160.0150.01217.65
7.4.150.0200.00717.56
7.4.140.0170.01017.37
7.4.130.0160.01016.96
7.4.120.0160.00616.91
7.4.110.0180.00517.02
7.4.100.0160.00717.04
7.4.90.0200.00616.90
7.4.80.0110.01218.41
7.4.70.0190.00317.04
7.4.60.0170.00417.06
7.4.50.0210.00016.83
7.4.40.0170.00517.04
7.4.30.0230.00417.32
7.4.20.0230.00417.39
7.4.10.0240.00317.41
7.4.00.0120.00715.70
7.3.330.0120.00815.26
7.3.320.0130.00815.16
7.3.310.0140.00716.66
7.3.300.0130.00516.81
7.3.290.0080.00816.82
7.3.280.0150.00816.70
7.3.270.0240.00317.34
7.3.260.0100.01016.53
7.3.250.0200.00717.22
7.3.240.0110.00916.65
7.3.230.0190.00616.79
7.3.220.0280.00017.14
7.3.210.0140.00816.68
7.3.200.0240.00516.82
7.3.190.0190.00816.72
7.3.180.0240.00416.68
7.3.170.0200.00717.11
7.3.160.0200.00816.86
7.3.150.0290.00717.20
7.3.140.0310.00017.06
7.3.130.0300.00316.99
7.3.120.0210.00515.93
7.3.110.0200.00516.16
7.3.100.0120.00715.39
7.3.90.0110.00915.15
7.3.80.0100.00915.21
7.3.70.0110.00715.10
7.3.60.0100.00815.05
7.3.50.0110.00715.08
7.3.40.0130.00515.05
7.3.30.0080.00915.04
7.3.20.0140.00815.39
7.3.10.0170.00715.29
7.3.00.0110.00715.30
7.2.340.0230.00417.54
7.2.330.0200.00616.84
7.2.320.0150.01216.98
7.2.310.0220.00416.81
7.2.300.0130.01217.13
7.2.290.0180.00916.77
7.2.280.0270.00817.12
7.2.270.0240.01217.41
7.2.260.0270.00817.22
7.2.250.0190.00816.15
7.2.240.0200.00416.10
7.2.230.0130.00815.55
7.2.220.0110.00815.37
7.2.210.0100.01015.30
7.2.200.0100.01015.32
7.2.190.0110.00815.32
7.2.180.0110.00815.32
7.2.170.0110.00815.32
7.2.160.0110.00915.23
7.2.150.0130.00915.56
7.2.140.0130.00715.57
7.2.130.0150.00715.61
7.2.120.0230.00815.67
7.2.110.0140.00815.62
7.2.100.0160.00815.64
7.2.90.0160.01115.48
7.2.80.0140.01015.62
7.2.70.0150.00815.53
7.2.60.0150.00615.56
7.2.50.0150.00715.60
7.2.40.0170.00915.55
7.2.30.0210.00515.56
7.2.20.0140.00815.49
7.2.10.0160.00715.61
7.2.00.0130.00615.62
7.1.330.0120.00716.01
7.1.320.0090.00814.52
7.1.310.0120.00814.65
7.1.300.0160.00814.43
7.1.290.0110.00914.34
7.1.280.0120.00714.40
7.1.270.0170.00814.60
7.1.260.0120.00814.41
7.1.250.0140.00714.50
7.1.240.0360.00714.75
7.1.230.0180.00914.70
7.1.220.0200.00414.63
7.1.210.0220.00614.73
7.1.200.0200.00414.57
7.1.190.0190.00914.65
7.1.180.0180.00614.61
7.1.170.0140.01314.73
7.1.160.0210.00614.51
7.1.150.0170.00814.54
7.1.140.0180.00814.60
7.1.130.0160.01014.69
7.1.120.0280.00614.79
7.1.110.0170.00914.85
7.1.100.0180.00714.85
7.1.90.0240.00814.71
7.1.80.0200.00614.75
7.1.70.0190.00614.71
7.1.60.0230.00714.80
7.1.50.0170.00714.76
7.1.40.0190.00814.78
7.1.30.0220.00614.81
7.1.20.0200.00814.77
7.1.10.0260.00814.76
7.1.00.0170.00714.73

preferences:
58.09 ms | 404 KiB | 6 Q