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.40.0110.00418.59
8.3.30.0110.00418.84
8.3.20.0060.00319.07
8.3.10.0040.00423.66
8.3.00.0040.00420.83
8.2.170.0110.00422.96
8.2.160.0100.00322.17
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00419.77
8.2.110.0060.00321.12
8.2.100.0130.00017.72
8.2.90.0080.00017.91
8.2.80.0030.00817.97
8.2.70.0000.00817.63
8.2.60.0030.00618.05
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0020.00518.12
8.2.20.0080.00017.98
8.2.10.0040.00418.14
8.2.00.0000.00919.43
8.1.270.0040.00422.18
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0030.00622.46
8.1.230.0070.00721.02
8.1.220.0080.00017.79
8.1.210.0030.00618.85
8.1.200.0030.00617.35
8.1.190.0100.00317.22
8.1.180.0040.00418.10
8.1.170.0030.00618.46
8.1.160.0070.00018.94
8.1.150.0040.00418.93
8.1.140.0070.00022.12
8.1.130.0030.00321.86
8.1.120.0030.00317.38
8.1.110.0000.00817.43
8.1.100.0000.00717.36
8.1.90.0000.00717.48
8.1.80.0050.00317.44
8.1.70.0000.00717.43
8.1.60.0090.00017.64
8.1.50.0060.00317.53
8.1.40.0040.00417.55
8.1.30.0050.00317.67
8.1.20.0000.00717.65
8.1.10.0040.00417.51
8.1.00.0000.00817.30
8.0.300.0040.00419.90
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0000.00717.14
8.0.260.0030.00318.38
8.0.250.0000.00616.96
8.0.240.0000.00716.80
8.0.230.0050.00216.91
8.0.220.0030.00516.94
8.0.210.0040.00416.79
8.0.200.0040.00416.99
8.0.190.0030.00517.02
8.0.180.0030.00616.96
8.0.170.0030.00616.95
8.0.160.0040.00416.98
8.0.150.0030.00616.93
8.0.140.0070.00016.86
8.0.130.0030.00313.33
8.0.120.0070.00016.95
8.0.110.0000.00717.00
8.0.100.0070.00016.82
8.0.90.0000.00716.95
8.0.80.0050.01116.95
8.0.70.0050.00316.94
8.0.60.0000.00817.01
8.0.50.0000.00716.98
8.0.30.0030.01517.12
8.0.20.0140.01117.40
8.0.10.0050.00216.88
8.0.00.0080.01016.79
7.4.330.0020.00215.55
7.4.320.0000.00716.50
7.4.300.0030.00316.57
7.4.290.0030.00316.52
7.4.280.0060.00316.48
7.4.270.0000.00816.48
7.4.260.0000.00816.40
7.4.250.0030.00316.55
7.4.240.0000.00716.57
7.4.230.0040.00416.38
7.4.220.0000.00816.70
7.4.210.0060.01016.66
7.4.200.0000.00716.37
7.4.160.0070.01016.48
7.4.140.0110.00917.86
7.4.130.0070.01016.49
7.4.120.0120.00716.54
7.4.110.0080.01216.53
7.4.100.0060.01216.59
7.4.90.0170.00616.50
7.4.80.0070.01019.39
7.4.70.0100.01216.41
7.4.60.0080.00816.50
7.4.50.0130.00316.52
7.4.40.0110.01016.43
7.4.30.0100.00716.66
7.4.20.0120.00316.33
7.4.10.0130.00516.61
7.4.00.0080.01015.74
7.3.330.0000.00513.33
7.3.320.0000.00513.26
7.3.310.0000.00716.30
7.3.300.0040.00416.18
7.3.290.0000.00616.31
7.3.280.0080.00816.24
7.3.260.0090.01016.44
7.3.240.0090.00916.40
7.3.230.0070.01116.42
7.3.210.0070.01016.36
7.3.200.0060.01016.63
7.3.190.0090.00816.35
7.3.180.0040.01416.23
7.3.170.0090.00816.53
7.3.160.0050.01216.56
7.3.150.0040.01316.40
7.3.140.0100.01016.33
7.3.130.0110.00516.42
7.3.120.0110.00416.45
7.3.110.0110.00516.52
7.3.100.0070.01016.31
7.3.90.0100.00716.52
7.3.80.0030.01316.64
7.3.70.0120.00316.46
7.3.60.0100.00716.40
7.3.50.0150.00616.40
7.3.40.0070.01016.27
7.3.30.0070.01016.38
7.3.20.0060.01016.28
7.3.10.0120.00416.31
7.3.00.0080.00816.35
7.2.330.0100.00716.31
7.2.320.0070.01016.66
7.2.310.0070.01016.52
7.2.300.0060.01016.37
7.2.290.0110.00916.43
7.2.280.0080.01216.55
7.2.270.0140.00716.61
7.2.260.0040.01316.54
7.2.250.0160.00016.22
7.2.240.0110.00616.56
7.2.230.0040.01916.37
7.2.220.0120.00616.65
7.2.210.0130.00416.22
7.2.200.0090.00816.44
7.2.190.0030.01416.38
7.2.180.0030.01416.41
7.2.170.0160.00016.60
7.2.160.0170.00516.42
7.2.150.0060.01016.49
7.2.140.0000.01716.52
7.2.130.0110.01116.57
7.2.120.0090.00716.39
7.2.110.0070.01116.46
7.2.100.0110.00816.29
7.2.90.0080.00916.47
7.2.80.0690.00816.58
7.2.70.0080.01116.63
7.2.60.0110.00516.60
7.2.50.0110.00716.58
7.2.40.0100.00816.55
7.2.30.0100.00816.63
7.2.20.0120.00716.64
7.2.10.0080.01016.68
7.2.00.0020.01316.68
7.1.330.0300.00315.61
7.1.320.0160.01315.65
7.1.310.0250.00615.48
7.1.300.0260.01015.55
7.1.290.0150.01515.59
7.1.280.0190.00915.57
7.1.270.0260.00315.52
7.1.260.0110.02215.50
7.1.250.0200.00715.37
7.1.240.0140.00615.47
7.1.230.0150.00515.47
7.1.220.0150.00615.36
7.1.210.0070.01315.52
7.1.200.0140.00915.43
7.1.190.0100.01115.45
7.1.180.0130.00915.47
7.1.170.0150.00815.58
7.1.160.0140.00915.63
7.1.150.0130.00815.51
7.1.140.0150.00815.60
7.1.130.0100.01215.67
7.1.120.0130.00715.43
7.1.110.0140.00915.60
7.1.100.0140.00915.63
7.1.90.0130.00915.52
7.1.80.0150.00715.65
7.1.70.0160.00515.59
7.1.60.0130.01015.55
7.1.50.0130.01015.65
7.1.40.0160.00515.58
7.1.30.0170.00815.51
7.1.20.0190.00215.68
7.1.10.0130.00815.59
7.1.00.0150.00815.58
7.0.330.0250.00015.17
7.0.320.0240.00015.35
7.0.310.0160.01015.36
7.0.300.0270.00315.17
7.0.290.0230.00515.17
7.0.280.0210.00515.23
7.0.270.0130.01315.20
7.0.260.0190.00615.17
7.0.250.0310.00315.21
7.0.240.0300.00515.34
7.0.230.0190.00815.24
7.0.220.0180.00915.23
7.0.210.0440.01815.17
7.0.200.0190.01115.19
7.0.190.0280.00415.25
7.0.180.0200.01015.17
7.0.170.0200.00715.36
7.0.160.0440.01015.28
7.0.150.0240.00515.17
7.0.140.0260.00415.17
7.0.130.0100.01515.39
7.0.120.0240.00615.17
7.0.110.0210.00815.23
7.0.100.0280.00415.17
7.0.90.0170.01215.36
7.0.80.0220.00515.34
7.0.70.0160.01315.40
7.0.60.0180.00615.18
7.0.50.0200.00715.34
7.0.40.0180.00715.19
7.0.30.0250.00615.20
7.0.20.0220.00415.17
7.0.10.0160.01115.25
7.0.00.0210.00415.17
5.6.400.0150.01215.46
5.6.390.0170.01016.13
5.6.380.0120.00914.96
5.6.370.0240.01115.69
5.6.360.0230.01116.03
5.6.350.0140.01315.88
5.6.340.0160.01715.93
5.6.330.0180.00815.73
5.6.320.0180.00915.65
5.6.310.0290.01115.46
5.6.300.0280.00015.74
5.6.290.0190.00816.03
5.6.280.0220.00716.00
5.6.270.0230.00715.93
5.6.260.0190.01215.84
5.6.250.0140.01415.84
5.6.240.0130.01715.86
5.6.230.0190.00915.91
5.6.220.0190.00815.90
5.6.210.0190.01015.64
5.6.200.0240.00415.80
5.6.190.0240.00515.66
5.6.180.0140.01416.03
5.6.170.0210.00815.70
5.6.160.0190.01015.63
5.6.150.0190.00815.59
5.6.140.0190.00915.91
5.6.130.0210.00915.86
5.6.120.0220.00515.96
5.6.110.0250.00615.74
5.6.100.0200.00716.10
5.6.90.0220.01115.68
5.6.80.0160.01015.73
5.6.70.0150.01815.59
5.6.60.0230.00515.84
5.6.50.0260.00715.79
5.6.40.0200.00415.67
5.6.30.0210.00615.87
5.6.20.0250.00715.85
5.6.10.0160.01315.73
5.6.00.0300.00015.91

preferences:
55.83 ms | 400 KiB | 5 Q