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 ) { var_dump( $a, $b ); return $arg1; }; $a = 1; $b = 2; $args = [$a, &$b]; 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.0110.01116.75
8.3.50.0100.00718.04
8.3.40.0040.01118.71
8.3.30.0090.00618.77
8.3.20.0070.00023.52
8.3.10.0050.00323.66
8.3.00.0000.00721.90
8.2.180.0110.01118.65
8.2.170.0140.00018.94
8.2.160.0070.01019.20
8.2.150.0070.00025.66
8.2.140.0030.00624.66
8.2.130.0050.00326.16
8.2.120.0060.00320.80
8.2.110.0090.00021.11
8.2.100.0040.00819.14
8.2.90.0030.00918.00
8.2.80.0040.00417.97
8.2.70.0000.00918.16
8.2.60.0030.00618.03
8.2.50.0030.00618.10
8.2.40.0000.00821.02
8.2.30.0040.00419.18
8.2.20.0080.00017.97
8.2.10.0000.00818.03
8.2.00.0030.00619.31
8.1.280.0130.00625.92
8.1.270.0000.00824.66
8.1.260.0100.01026.35
8.1.250.0040.00428.09
8.1.240.0080.00422.48
8.1.230.0110.00019.55
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0060.00317.22
8.1.180.0030.00518.10
8.1.170.0050.00318.59
8.1.160.0000.00718.91
8.1.150.0000.00718.89
8.1.140.0040.00422.05
8.1.130.0050.00320.18
8.1.120.0030.00317.36
8.1.110.0060.00317.39
8.1.100.0040.00417.37
8.1.90.0040.00417.42
8.1.80.0050.00217.45
8.1.70.0030.00317.44
8.1.60.0000.00917.52
8.1.50.0000.00717.57
8.1.40.0040.00417.41
8.1.30.0100.00017.66
8.1.20.0000.00717.62
8.1.10.0030.00617.42
8.1.00.0000.00817.44
8.0.300.0040.00418.77
8.0.290.0030.00616.88
8.0.280.0070.00018.32
8.0.270.0030.00317.32
8.0.260.0030.00318.47
8.0.250.0000.00617.03
8.0.240.0040.00416.91
8.0.230.0060.00016.96
8.0.220.0030.00316.95
8.0.210.0000.00716.93
8.0.200.0060.00017.00
8.0.190.0070.00017.00
8.0.180.0040.00416.88
8.0.170.0000.00916.86
8.0.160.0000.00916.76
8.0.150.0050.00216.95
8.0.140.0040.00416.84
8.0.130.0000.00613.39
8.0.120.0070.00016.86
8.0.110.0040.00416.88
8.0.100.0040.00416.83
8.0.90.0000.00816.83
8.0.80.0030.01416.92
8.0.70.0030.00516.93
8.0.60.0050.00316.92
8.0.50.0070.00016.90
8.0.30.0090.00717.12
8.0.20.0150.00317.40
8.0.10.0050.00216.96
8.0.00.0080.01416.90
7.4.330.0030.00316.68
7.4.320.0060.00016.61
7.4.300.0040.00416.62
7.4.290.0070.00016.63
7.4.280.0000.01116.61
7.4.270.0030.00316.57
7.4.260.0000.00716.35
7.4.250.0080.00016.49
7.4.240.0070.00016.61
7.4.230.0030.00316.41
7.4.220.0030.00516.70
7.4.210.0100.00416.57
7.4.200.0050.00216.45
7.4.160.0090.00816.51
7.4.140.0080.01217.86
7.4.130.0130.00916.62
7.4.120.0080.00916.44
7.4.110.0130.00316.65
7.4.100.0090.00916.46
7.4.90.0100.00716.61
7.4.80.0100.01019.39
7.4.70.0100.00716.52
7.4.60.0060.01016.53
7.4.50.0060.00916.26
7.4.40.0120.00616.37
7.4.00.0120.00314.88
7.3.330.0050.00013.36
7.3.320.0050.00013.37
7.3.310.0030.00316.34
7.3.300.0030.00316.45
7.3.290.0070.00016.32
7.3.280.0000.01416.32
7.3.260.0090.00916.40
7.3.240.0070.01116.39
7.3.230.0150.00316.49
7.3.210.0140.00916.46
7.3.200.0110.00616.63
7.3.190.0090.01216.46
7.3.180.0130.00616.58
7.3.170.0120.00916.39
7.3.160.0030.01216.49
7.2.330.0030.01416.48
7.2.320.0050.01316.63
7.2.310.0080.00816.38
7.2.300.0080.00816.17
7.2.290.0060.01216.66
7.2.120.1640.00714.79
7.2.110.2690.00314.61
7.2.100.2440.01014.24
7.2.90.1580.01014.01
7.2.80.2510.00714.49
7.2.70.2490.01014.84
7.2.60.3900.00714.57
7.2.50.2650.01714.68
7.2.40.3720.00714.85
7.2.30.2330.00714.68
7.2.20.3790.01014.44
7.2.10.2520.01014.46
7.2.00.3730.00714.90
5.6.380.0140.00413.78

preferences:
50.34 ms | 400 KiB | 5 Q