3v4l.org

run code in 200+ 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)
7.4.00.0060.00614.91
7.3.120.0110.00414.80
7.3.110.0050.01014.73
7.3.100.0070.00714.86
7.3.90.0070.00914.66
7.3.80.0090.00714.83
7.3.70.0090.00814.78
7.3.60.0080.00814.73
7.3.50.0090.00714.80
7.3.40.0110.00614.73
7.3.30.0070.00914.72
7.3.20.0120.00814.86
7.3.10.0160.00714.74
7.3.00.0090.00814.79
7.2.250.0060.00915.09
7.2.240.0060.00915.01
7.2.230.0070.00915.00
7.2.220.0090.00714.99
7.2.210.0080.01014.91
7.2.200.0080.01114.98
7.2.190.0090.00815.00
7.2.180.0100.00814.97
7.2.170.0100.00914.98
7.2.160.0110.00714.89
7.2.150.0120.00915.02
7.2.140.0120.00815.03
7.2.130.0140.00715.05
7.2.120.0220.00915.13
7.2.110.0120.00815.10
7.2.100.0160.00815.08
7.2.90.0140.01214.94
7.2.80.0120.01015.07
7.2.70.0140.00715.00
7.2.60.0140.00515.01
7.2.50.0130.00715.05
7.2.40.0150.00915.04
7.2.30.0190.00515.03
7.2.20.0120.00914.98
7.2.10.0140.00715.08
7.2.00.0140.00515.07
7.1.330.0050.00814.03
7.1.320.0070.00913.76
7.1.310.0120.00813.91
7.1.300.0150.00913.89
7.1.290.0100.00913.77
7.1.280.0100.00813.84
7.1.270.0160.00813.92
7.1.260.0100.00913.88
7.1.250.0120.00713.97
7.1.240.0370.00813.91
7.1.230.0170.00813.78
7.1.220.0190.00513.76
7.1.210.0200.00613.84
7.1.200.0180.00413.73
7.1.190.0180.00913.76
7.1.180.0150.00613.72
7.1.170.0110.01413.81
7.1.160.0190.00713.63
7.1.150.0140.00813.73
7.1.140.0160.00813.70
7.1.130.0150.01013.80
7.1.120.0300.00513.93
7.1.110.0140.01114.03
7.1.100.0180.00613.97
7.1.90.0250.00813.87
7.1.80.0200.00713.94
7.1.70.0180.00613.91
7.1.60.0210.00813.93
7.1.50.0170.00613.93
7.1.40.0190.00813.91
7.1.30.0190.00613.98
7.1.20.0190.00713.89
7.1.10.0280.00813.95
7.1.00.0180.00613.88
7.0.330.0180.00713.53
7.0.320.0220.00513.52
7.0.310.0190.00813.43
7.0.300.0370.00913.43
7.0.290.0250.00713.42
7.0.280.0150.00913.44
7.0.270.0170.00813.51
7.0.260.0170.01013.55
7.0.250.0120.01113.34
7.0.240.0140.01013.41
7.0.230.0180.00613.70
7.0.220.0130.00913.62
7.0.210.0190.00313.41
7.0.200.0140.00913.43
7.0.190.0150.00913.63
7.0.180.0200.00913.58
7.0.170.0180.01113.46
7.0.160.0190.00813.62
7.0.150.0160.01113.42
7.0.140.0140.00913.63
7.0.130.0160.01013.46
7.0.120.0340.00713.44
7.0.110.0270.00913.59
7.0.100.0160.01013.60
7.0.90.0970.00713.55
7.0.80.0180.00313.67
7.0.70.0200.00613.47
7.0.60.0120.01113.63
7.0.50.0120.00813.64
7.0.40.0150.00813.61
7.0.30.0130.01013.57
7.0.20.0110.01013.62
7.0.10.0150.00513.59
7.0.00.0160.00913.52
5.6.400.0140.01114.10
5.6.390.0160.00614.16
5.6.380.0150.00714.11
5.6.370.0140.01014.03
5.6.360.0130.01314.28
5.6.350.0140.01214.13
5.6.340.0130.01014.30
5.6.330.0120.01014.17
5.6.320.0100.01314.38
5.6.310.0120.00914.28
5.6.300.0140.00914.08
5.6.290.0150.00814.23
5.6.280.0200.00814.36
5.6.270.0140.00814.34
5.6.260.0110.01014.34
5.6.250.0130.00814.18
5.6.240.0140.00714.19
5.6.230.0160.00814.23
5.6.220.0140.00814.13
5.6.210.0150.00814.15
5.6.200.0110.00914.08
5.6.190.0090.01314.08
5.6.180.0110.00814.31
5.6.170.0110.01214.23
5.6.160.0090.01314.08
5.6.150.0200.00214.19
5.6.140.0150.00614.15
5.6.130.0120.00914.19
5.6.120.0170.00514.35
5.6.110.0160.00614.19
5.6.100.0160.00714.35
5.6.90.0110.00914.30
5.6.80.0160.00714.03
5.6.70.0100.01214.21
5.6.60.0140.00914.26
5.6.50.0150.00914.17
5.6.40.0130.00814.20
5.6.30.0140.00614.10
5.6.20.0180.00714.24
5.6.10.0140.00514.16
5.6.00.0100.00914.09
5.5.380.0150.01014.17
5.5.370.0130.00714.21
5.5.360.0120.01014.11
5.5.350.0150.00713.99
5.5.340.0080.01214.33
5.5.330.0150.00614.17
5.5.320.0090.00914.16
5.5.310.0150.00913.98
5.5.300.0150.00614.13
5.5.290.0110.00914.25
5.5.280.0140.00714.23
5.5.270.0150.00714.23
5.5.260.0160.00714.13
5.5.250.0120.00714.08
5.5.240.0160.00914.05
5.5.230.0180.00514.00
5.5.220.0140.00814.15
5.5.210.0100.01114.10
5.5.200.0110.00713.98
5.5.190.0110.01013.77
5.5.180.0120.00813.89
5.5.170.0110.00814.18
5.5.160.0150.00814.17
5.5.150.0130.00814.24
5.5.140.0180.00713.91
5.5.130.0100.01313.99
5.5.120.0130.01114.10
5.5.110.0130.01114.10
5.5.100.0150.00714.09
5.5.90.0130.00814.15
5.5.80.0100.01114.03
5.5.70.0140.01014.08
5.5.60.0140.00713.95
5.5.50.0120.00914.21
5.5.40.0120.00814.06
5.5.30.0090.01013.95
5.5.20.0120.00913.92
5.5.10.0130.01014.13
5.5.00.0120.00913.96
5.4.450.0070.00911.69
5.4.440.0100.00511.70
5.4.430.0120.00411.62
5.4.420.0100.00711.70
5.4.410.0120.00211.57
5.4.400.0080.00911.74
5.4.390.0070.01011.56
5.4.380.0120.00411.71
5.4.370.0100.00511.65
5.4.360.0060.00911.71
5.4.350.0070.00711.71
5.4.340.0130.00311.71
5.4.330.0060.00711.66
5.4.320.0140.00411.65
5.4.310.0130.00611.64
5.4.300.0110.00411.75
5.4.290.0090.00811.78
5.4.280.0080.00811.69
5.4.270.0100.00711.76
5.4.260.0090.00611.65
5.4.250.0130.00211.66
5.4.240.0110.00511.82
5.4.230.0070.00811.67
5.4.220.0110.00611.69
5.4.210.0090.00711.65
5.4.200.0090.00611.64
5.4.190.0060.00911.63
5.4.180.0060.00911.63
5.4.170.0140.00111.71
5.4.160.0090.00611.68
5.4.150.0090.00811.71
5.4.140.0110.00611.80
5.4.130.0130.00611.68
5.4.120.0090.00611.70
5.4.110.0100.00711.70
5.4.100.0120.00511.68
5.4.90.0090.00711.66
5.4.80.0130.00411.72
5.4.70.0120.00511.71
5.4.60.0130.00311.68
5.4.50.0080.00511.64
5.4.40.0060.00811.73
5.4.30.0100.00511.72
5.4.20.0140.00411.71
5.4.10.0090.00511.61
5.4.00.0060.00911.70
5.3.290.0120.00311.43
5.3.280.0090.00611.43
5.3.270.0100.00511.53
5.3.260.0090.00611.39
5.3.250.0090.00511.44
5.3.240.0100.00611.38
5.3.230.0110.00511.47
5.3.220.0140.00211.45
5.3.210.0100.00311.45
5.3.200.0090.00511.44
5.3.190.0090.00611.42
5.3.180.0110.00511.43
5.3.170.0110.00411.39
5.3.160.0120.00311.51
5.3.150.0120.00111.41
5.3.140.0090.00511.45
5.3.130.0110.00411.39
5.3.120.0090.00611.48
5.3.110.0080.00711.39
5.3.100.0070.00911.53
5.3.90.0090.00511.50
5.3.80.0070.00711.42
5.3.70.0110.00511.43
5.3.60.0060.00811.46
5.3.50.0110.00511.45
5.3.40.0110.00511.39
5.3.30.0080.00711.47
5.3.20.0070.00811.51
5.3.10.0110.00511.36
5.3.00.0100.00411.40
5.2.170.0080.00411.31
5.2.160.0090.00311.31
5.2.150.0070.00511.31
5.2.140.0080.00711.31
5.2.130.0090.00511.31
5.2.120.0110.00211.31
5.2.110.0110.00211.31
5.2.100.0080.00611.31
5.2.90.0060.00711.31
5.2.80.0090.00311.31
5.2.70.0070.00611.31
5.2.60.0110.00111.31
5.2.50.0110.00311.31
5.2.40.0080.00411.31
5.2.30.0060.00511.31
5.2.20.0090.00311.31
5.2.10.0060.00511.31
5.2.00.0080.00411.31
5.1.60.0050.00511.31
5.1.50.0040.00711.31
5.1.40.0060.00411.31
5.1.30.0070.00311.31
5.1.20.0060.00511.31
5.1.10.0060.00411.31
5.1.00.0070.00411.31
5.0.50.0040.00411.31
5.0.40.0040.00411.31
5.0.30.0050.00511.31
5.0.20.0080.00211.31
5.0.10.0050.00411.31
5.0.00.0020.00911.31
4.4.90.0030.00511.31
4.4.80.0030.00611.31
4.4.70.0040.00411.31
4.4.60.0060.00311.31
4.4.50.0060.00211.31
4.4.40.0060.00311.31
4.4.30.0050.00311.31
4.4.20.0050.00311.31
4.4.10.0020.00611.31
4.4.00.0040.00211.31
4.3.110.0030.00411.31
4.3.100.0050.00511.31
4.3.90.0040.00411.31
4.3.80.0030.00711.31
4.3.70.0040.00411.31
4.3.60.0060.00211.31
4.3.50.0050.00411.31
4.3.40.0060.00211.31
4.3.30.0020.00511.31
4.3.20.0050.00211.31
4.3.10.0030.00311.31
4.3.00.0030.00311.31