3v4l.org

run code in 300+ PHP versions simultaneously
<?php function do_action_ref_array( $callback, &$args ) { call_user_func_array( $callback, array_slice( $args, 0, 2 ) ); } $function = function( $arg1, &$arg2 ) { return $arg1; }; $args = [1, 2, 3]; do_action_ref_array( $function, $args );

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.0070.01418.43
8.3.50.0060.01018.11
8.3.40.0070.00718.70
8.3.30.0090.00618.85
8.3.20.0040.00418.95
8.3.10.0040.00423.61
8.3.00.0070.00020.89
8.2.180.0160.00325.92
8.2.170.0120.00319.09
8.2.160.0070.01022.96
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00420.98
8.2.120.0030.00526.35
8.2.110.0040.00421.94
8.2.100.0110.00017.78
8.2.90.0040.00417.63
8.2.80.0000.00918.87
8.2.70.0090.00017.75
8.2.60.0000.00818.05
8.2.50.0060.00318.07
8.2.40.0050.00320.10
8.2.30.0000.00718.04
8.2.20.0030.00518.06
8.2.10.0000.00818.03
8.2.00.0000.00819.40
8.1.280.0040.01125.92
8.1.270.0070.00021.93
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0030.00620.62
8.1.230.0000.01117.70
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0060.00318.54
8.1.160.0000.00718.84
8.1.150.0030.00318.88
8.1.140.0040.00421.99
8.1.130.0000.00721.84
8.1.120.0040.00417.50
8.1.110.0060.00317.45
8.1.100.0000.00717.35
8.1.90.0040.00417.48
8.1.80.0000.00717.49
8.1.70.0000.00717.36
8.1.60.0030.00617.48
8.1.50.0020.00517.51
8.1.40.0080.00017.41
8.1.30.0040.00417.63
8.1.20.0070.00017.64
8.1.10.0040.00417.57
8.1.00.0040.00417.52
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0000.00718.39
8.0.270.0030.00317.10
8.0.260.0000.00618.37
8.0.250.0030.00316.82
8.0.240.0040.00416.88
8.0.230.0000.00716.85
8.0.220.0040.00416.87
8.0.210.0070.00016.86
8.0.200.0000.00617.02
8.0.190.0030.00417.01
8.0.180.0040.00416.88
8.0.170.0000.00916.95
8.0.160.0000.00716.84
8.0.150.0000.00716.89
8.0.140.0040.00416.97
8.0.130.0050.00013.36
8.0.120.0000.00816.92
8.0.110.0000.00816.91
8.0.100.0040.00416.83
8.0.90.0050.00216.96
8.0.80.0080.00816.89
8.0.70.0000.00716.77
8.0.60.0070.00017.01
8.0.50.0000.00717.05
8.0.30.0030.01417.09
8.0.20.0100.01017.40
8.0.10.0070.00017.04
8.0.00.0080.01116.71
7.4.330.0060.00015.55
7.4.320.0030.00316.60
7.4.300.0030.00316.48
7.4.290.0000.00616.52
7.4.280.0000.00716.59
7.4.270.0040.00416.51
7.4.260.0030.00316.48
7.4.250.0070.00016.60
7.4.240.0030.00316.58
7.4.230.0000.00716.66
7.4.220.0000.00816.59
7.4.210.0090.00516.65
7.4.200.0070.00016.34
7.4.160.0100.00916.44
7.4.140.0090.00917.86
7.4.130.0110.00616.54
7.4.120.0110.00916.55
7.4.110.0120.00616.46
7.4.100.0040.01416.58
7.4.90.0090.01216.38
7.4.80.0110.01219.39
7.4.70.0100.01016.50
7.4.60.0130.00316.52
7.4.50.0060.00616.53
7.4.40.0070.01016.59
7.4.00.0030.01214.99
7.3.330.0000.00513.09
7.3.320.0050.00013.29
7.3.310.0000.00716.34
7.3.300.0030.00316.24
7.3.290.0030.00316.32
7.3.280.0070.01116.29
7.3.260.0050.01216.43
7.3.240.0110.00716.38
7.3.230.0100.00716.46
7.3.210.0070.01016.56
7.3.200.0120.00316.36
7.3.190.0110.01016.56
7.3.180.0120.00816.52
7.3.170.0110.00616.63
7.3.160.0070.01016.57
7.2.330.0090.01516.64
7.2.320.0030.01516.26
7.2.310.0110.00616.16
7.2.300.0040.01716.70
7.2.290.0120.00616.40
7.2.120.0210.01116.03
7.2.110.0320.00316.32
7.2.100.0360.00316.17
7.2.90.0120.00316.46
7.2.80.0260.01216.24
7.2.70.0080.01016.41
7.2.60.0080.00616.69
7.2.50.0200.00316.56
7.2.40.0120.00416.72
7.2.30.0120.00316.70
7.2.20.0080.00816.70
7.2.10.0030.00917.00
7.2.00.0110.00416.84
7.1.240.0040.01115.57
7.1.230.0250.00315.33
7.1.220.0120.00315.17
7.1.210.0070.00715.59
7.1.200.0270.00715.31
7.1.190.0080.00515.68
7.1.180.0090.00515.60
7.1.170.0000.01515.58
7.1.160.0070.00715.45
7.1.150.0060.00615.75
7.1.140.0000.01215.71
7.1.130.0060.00615.61
7.1.120.0090.00615.70
7.1.110.0090.00315.68
7.1.100.0090.00515.74
7.1.90.0040.00815.74
7.1.80.0070.00715.68
7.1.70.0120.00415.71
7.1.60.0090.00615.75
7.1.50.0000.01515.41
7.1.40.0060.00915.73
7.1.30.0090.00615.84
7.1.20.0000.01315.68
7.1.10.0080.00515.65
7.1.00.0210.01315.57
5.6.380.0110.00013.95

preferences:
52.09 ms | 400 KiB | 5 Q