3v4l.org

run code in 300+ PHP versions simultaneously
<?php function do_action_ref_array( $callback, $args ) { var_dump($args); //$args[0] = 'b'; call_user_func_array( $callback, array_slice( $args, 0, 2 ) ); } function filter( $arg1, &$arg2 ) { var_dump( $arg1, $arg2 ); return $arg1; }; class Test { public function run() { do_action_ref_array( 'filter', [1, &$this] ); } } $object = new Test(); $object->run();

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.01016.50
8.3.50.0030.01318.23
8.3.40.0120.00318.68
8.3.30.0120.00318.67
8.3.20.0050.00321.85
8.3.10.0080.00023.65
8.3.00.0050.00321.85
8.2.180.0120.00618.41
8.2.170.0070.00722.96
8.2.160.0140.00318.94
8.2.150.0040.00424.18
8.2.140.0110.00424.66
8.2.130.0120.00018.03
8.2.120.0040.00426.35
8.2.110.0060.00319.45
8.2.100.0040.00717.84
8.2.90.0030.00619.76
8.2.80.0000.00817.63
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0050.00318.09
8.2.30.0000.00718.12
8.2.20.0040.00418.05
8.2.10.0040.00417.96
8.2.00.0050.00319.40
8.1.280.0000.01425.92
8.1.270.0040.00418.88
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0070.01022.38
8.1.230.0080.00322.67
8.1.220.0000.00917.74
8.1.210.0040.00418.91
8.1.200.0000.01017.47
8.1.190.0030.00617.35
8.1.180.0100.00318.10
8.1.170.0000.00718.84
8.1.160.0040.00418.80
8.1.150.0050.00318.88
8.1.140.0030.00322.20
8.1.130.0000.00720.14
8.1.120.0070.00417.43
8.1.110.0030.00517.48
8.1.100.0040.00417.35
8.1.90.0050.00217.51
8.1.80.0040.00417.51
8.1.70.0040.00417.38
8.1.60.0000.00817.55
8.1.50.0060.00317.41
8.1.40.0090.00017.41
8.1.30.0030.00617.68
8.1.20.0070.00017.66
8.1.10.0060.00317.62
8.1.00.0000.00717.39
8.0.300.0070.00019.85
8.0.290.0040.00416.75
8.0.280.0000.00718.54
8.0.270.0070.00017.18
8.0.260.0030.00318.45
8.0.250.0000.00716.97
8.0.240.0040.00416.84
8.0.230.0070.00016.90
8.0.220.0070.00016.82
8.0.210.0040.00416.89
8.0.200.0000.00716.82
8.0.190.0060.00316.91
8.0.180.0030.00516.93
8.0.170.0090.00016.88
8.0.160.0000.00716.79
8.0.150.0000.00716.79
8.0.140.0000.00716.74
8.0.130.0030.00313.32
8.0.120.0020.00516.85
8.0.110.0040.00416.87
8.0.100.0000.00816.92
8.0.90.0000.00716.73
8.0.80.0040.01316.90
8.0.70.0070.00016.84
8.0.60.0070.00016.86
8.0.50.0050.00316.76
8.0.30.0080.01117.03
8.0.20.0090.00917.00
8.0.10.0040.00416.88
8.0.00.0060.01216.78
7.4.330.0000.00516.83
7.4.320.0040.00416.52
7.4.300.0070.00016.65
7.4.290.0030.00316.45
7.4.280.0070.00016.39
7.4.270.0000.00716.49
7.4.260.0030.00316.48
7.4.250.0040.00416.53
7.4.240.0080.00016.53
7.4.230.0000.00716.58
7.4.220.0000.00816.67
7.4.210.0070.00716.49
7.4.200.0040.00416.69
7.4.160.0070.01016.46
7.4.140.0110.01217.86
7.4.130.0110.00616.62
7.4.120.0060.01216.53
7.4.110.0030.01416.39
7.4.100.0030.01616.32
7.4.90.0110.01116.33
7.4.80.0030.01619.39
7.4.70.0150.00616.36
7.4.60.0080.00816.53
7.4.50.0030.01016.47
7.4.40.0120.00416.52
7.4.00.0090.00914.82
7.3.330.0030.00313.17
7.3.320.0000.00513.15
7.3.310.0030.00316.12
7.3.300.0000.00716.32
7.3.290.0000.00616.18
7.3.280.0090.00816.28
7.3.260.0100.01016.37
7.3.240.0100.00916.40
7.3.230.0160.00616.40
7.3.210.0100.00716.62
7.3.200.0170.00616.41
7.3.190.0120.00616.51
7.3.180.0080.00816.24
7.3.170.0120.00916.35
7.3.160.0030.01316.44
7.3.120.0090.01014.77
7.3.110.0090.00914.71
7.3.100.0050.00915.00
7.3.90.0050.00814.69
7.3.80.0120.00514.60
7.3.70.0100.00714.49
7.3.60.0060.00914.66
7.3.50.0080.00514.72
7.3.40.0030.01014.80
7.3.30.0070.00714.63
7.3.20.0060.00616.54
7.3.10.0080.00616.70
7.3.00.0750.00815.88
7.2.330.0090.00816.84
7.2.320.0080.00816.84
7.2.310.0100.01016.57
7.2.300.0000.01616.59
7.2.290.0090.01516.54
7.2.250.0050.01514.88
7.2.240.0070.01014.91
7.2.230.0080.00515.03
7.2.220.0120.00314.99
7.2.210.0070.00914.93
7.2.200.0010.01314.88
7.2.190.0110.00315.03
7.2.180.0050.01314.96
7.2.170.0020.01115.07
7.2.130.1340.00914.52
7.2.120.0850.00314.72
7.2.110.0860.00714.50
7.2.100.1040.00514.69
7.2.90.0770.00614.69
7.2.80.0800.00914.62
7.2.70.0870.00914.89
7.2.60.1010.00914.89
7.2.50.0740.00714.93
7.2.40.0860.00814.83
7.2.30.0820.00714.77
7.2.20.1350.00815.00
7.2.10.0660.00314.93
7.2.00.0650.01214.99
7.1.330.0090.00315.64
7.1.320.0070.00715.69
7.1.310.0050.01115.68
7.1.300.0070.00815.78
7.1.290.0100.00415.68
7.1.280.0050.01115.71
7.1.270.0050.00815.66
7.1.260.0060.00615.71
7.1.250.0970.00413.90
7.0.330.1400.00513.43
5.6.380.0070.01114.12

preferences:
62.85 ms | 401 KiB | 5 Q