3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Testme { public static function foo(&$ref) { $ref = 1; } } class Invoker { public static function invoke($func_name) { $trace = debug_backtrace(); $args = $trace[0]['args']; call_user_func_array(array('Testme', $func_name), $args); } } $test = 2; $testRef = &$test; Invoker::invoke('foo', $testRef); var_dump($test);

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.0140.00418.84
8.3.30.0090.00918.95
8.3.20.0050.00220.34
8.3.10.0050.00223.51
8.3.00.0090.00619.26
8.2.170.0140.00022.96
8.2.160.0110.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00022.21
8.2.110.0100.00722.11
8.2.100.0030.00818.03
8.2.90.0040.00419.22
8.2.80.0000.00917.97
8.2.70.0000.00817.38
8.2.60.0040.00418.03
8.2.50.0050.00318.07
8.2.40.0000.00818.28
8.2.30.0040.00418.01
8.2.20.0080.00017.87
8.2.10.0080.00317.99
8.2.00.0060.00617.67
8.1.270.0070.00323.83
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0100.00024.02
8.1.230.0030.00918.96
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.66
8.1.180.0080.00018.10
8.1.170.0000.00818.58
8.1.160.0050.00221.93
8.1.150.0040.00418.64
8.1.140.0090.00017.32
8.1.130.0070.00017.82
8.1.120.0040.00417.52
8.1.110.0040.00417.52
8.1.100.0050.00217.46
8.1.90.0050.00217.48
8.1.80.0030.00317.46
8.1.70.0030.00317.36
8.1.60.0030.00617.46
8.1.50.0040.00417.55
8.1.40.0080.00017.51
8.1.30.0040.00417.62
8.1.20.0040.00417.61
8.1.10.0000.00717.46
8.1.00.0000.00817.57
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0040.00418.48
8.0.270.0030.00317.36
8.0.260.0000.00716.88
8.0.250.0030.00317.00
8.0.240.0000.00816.93
8.0.230.0030.00516.91
8.0.220.0030.00316.95
8.0.210.0030.00316.97
8.0.200.0040.00417.03
8.0.190.0040.00416.96
8.0.180.0060.00616.98
8.0.170.0040.00416.95
8.0.160.0000.00817.03
8.0.150.0050.00216.79
8.0.140.0040.00416.96
8.0.130.0000.00513.40
8.0.120.0050.00316.84
8.0.110.0040.00416.87
8.0.100.0050.00216.84
8.0.90.0040.00417.06
8.0.80.0090.01216.95
8.0.70.0080.00016.99
8.0.60.0040.00416.81
8.0.50.0040.00417.01
8.0.30.0080.01217.11
8.0.20.0110.01017.40
8.0.10.0000.00717.04
8.0.00.0100.01016.63
7.4.330.0020.00215.14
7.4.320.0030.00316.52
7.4.300.0000.00616.50
7.4.290.0040.00416.55
7.4.280.0000.00716.50
7.4.270.0000.00716.43
7.4.260.0050.00516.50
7.4.250.0050.00216.55
7.4.240.0020.00516.50
7.4.230.0070.00016.62
7.4.220.0150.00416.56
7.4.210.0130.00416.67
7.4.200.0030.00316.62
7.4.190.0030.00316.66
7.4.160.0210.00316.65
7.4.150.0100.00717.40
7.4.140.0080.01317.86
7.4.130.0080.00816.53
7.4.120.0120.00716.59
7.4.110.0070.01416.41
7.4.100.0160.00316.38
7.4.90.0180.00316.45
7.4.80.0100.01319.39
7.4.70.0070.01516.49
7.4.60.0170.00616.41
7.4.50.0050.00316.63
7.4.40.0000.01622.77
7.4.30.0030.01316.52
7.4.00.0080.00814.91
7.3.330.0000.00513.20
7.3.320.0050.00013.23
7.3.310.0000.00716.40
7.3.300.0060.00016.28
7.3.290.0030.01216.38
7.3.280.0070.01116.40
7.3.270.0160.00317.40
7.3.260.0130.00316.58
7.3.250.0170.00516.44
7.3.240.0130.01016.57
7.3.230.0080.00816.51
7.3.210.0070.01116.46
7.3.200.0030.01419.39
7.3.190.0120.00916.42
7.3.180.0130.00316.63
7.3.170.0070.01016.54
7.3.160.0110.00516.53
7.3.120.0030.01314.89
7.2.330.0040.01416.47
7.2.320.0080.01016.78
7.2.310.0130.00416.82
7.2.300.0090.00916.83
7.2.290.0120.00416.50
7.2.60.0070.00717.08
7.1.200.0080.00315.99
7.1.70.0000.01517.21
7.1.60.0100.01319.33
7.1.50.0040.01916.97
7.1.00.0030.07722.29
7.0.200.0040.00416.55
7.0.140.0030.07321.98
7.0.60.0100.08019.80
7.0.50.0100.04017.86
7.0.40.0030.04720.11
7.0.30.0170.05720.19
7.0.20.0270.07720.12
7.0.10.0070.09020.09
7.0.00.0130.07720.25
5.6.280.0030.07321.15
5.6.210.0000.04320.50
5.6.200.0030.05718.18
5.6.190.0070.06720.57
5.6.180.0300.04720.61
5.6.170.0270.08020.57
5.6.160.0170.07020.55
5.6.150.0130.07318.25
5.6.140.0070.05318.11
5.6.130.0030.04718.17
5.6.120.0000.04321.02
5.6.110.0100.05320.99
5.6.100.0070.08321.04
5.6.90.0000.08321.00
5.6.80.0100.07020.37
5.5.350.0230.04020.41
5.5.340.0030.06317.95
5.5.330.0100.08320.40
5.5.320.0370.06720.30
5.5.310.0400.03320.37
5.5.300.0030.04017.98
5.5.290.0030.05718.03
5.5.280.0100.06720.77
5.5.270.0100.07720.73
5.5.260.0170.07320.84
5.5.250.0030.04020.43
5.5.240.0000.05320.16
5.4.450.0470.04319.32
5.4.440.0370.04719.41
5.4.430.0530.04019.52
5.4.420.1300.05019.56
5.4.410.0500.04719.17
5.4.400.0300.04018.95
5.4.390.0900.04019.09
5.4.380.0370.04318.75
5.4.370.0530.05718.78
5.4.360.0470.07318.50
5.4.350.0400.06318.72
5.4.340.0270.06018.54
5.4.320.0110.03312.50
5.4.310.0070.03712.49
5.4.300.0040.03812.50
5.4.290.0060.03812.50
5.4.280.0070.03512.39
5.4.270.0060.03612.39
5.4.260.0090.04512.39
5.4.250.0100.03412.39
5.4.240.0070.03512.39
5.4.230.0030.04212.39
5.4.220.0070.03512.38
5.4.210.0060.03512.39
5.4.200.0060.03812.38
5.4.190.0080.03412.38
5.4.180.0060.03612.38
5.4.170.0190.03812.38
5.4.160.0160.04212.37
5.4.150.0180.07012.36
5.4.140.0170.04012.05
5.4.130.0120.04512.04
5.4.120.0150.04112.00
5.4.110.0180.03911.99
5.4.100.0160.04411.99
5.4.90.0110.04911.99
5.4.80.0130.04511.99
5.4.70.0180.04111.98
5.4.60.0150.04411.98
5.4.50.0240.07411.99
5.4.40.0150.04411.97
5.4.30.0390.08211.97
5.4.20.0280.08911.97
5.4.10.0340.08311.97
5.4.00.0330.08611.46
5.3.290.0050.03912.80
5.3.280.0090.03612.71
5.3.270.0360.08712.72
5.3.260.0370.08712.71
5.3.250.0350.08712.72
5.3.240.0290.06712.72
5.3.230.0210.04312.71
5.3.220.0240.09812.68
5.3.210.0380.08312.68
5.3.200.0260.09912.68
5.3.190.0130.04812.68
5.3.180.0280.10012.67
5.3.170.0330.08712.67
5.3.160.0320.09212.68
5.3.150.0210.04312.67
5.3.140.0470.08412.66
5.3.130.0390.10512.66
5.3.120.0330.08812.66
5.3.110.0330.09512.65
5.3.100.0110.05612.12
5.3.90.0260.09412.10
5.3.80.0150.04412.09
5.3.70.0190.04312.09
5.3.60.0310.08912.07
5.3.50.0300.09512.02
5.3.40.0490.07912.02
5.3.30.0380.08811.99
5.3.20.0150.04711.77
5.3.10.0160.04311.73
5.3.00.0340.08411.71
5.2.170.0270.0809.23
5.2.160.0150.0399.22
5.2.150.0230.0359.22
5.2.140.0130.0379.22
5.2.130.0380.0719.18
5.2.120.0170.0329.18
5.2.110.0260.0699.19
5.2.100.0330.0749.18
5.2.90.0160.0359.18
5.2.80.0160.0329.17
5.2.70.0150.0339.18
5.2.60.0200.0599.13
5.2.50.0150.0369.10
5.2.40.0150.0329.08
5.2.30.0180.0439.05
5.2.20.0200.0879.05
5.2.10.0070.0428.96
5.2.00.0330.0768.80
5.1.60.0140.0248.09
5.1.50.0110.0308.09
5.1.40.0150.0308.07
5.1.30.0350.0698.42
5.1.20.0130.0298.45
5.1.10.0230.0808.16
5.1.00.0120.0298.16
5.0.50.0260.0676.64
5.0.40.0090.0246.50
5.0.30.0280.0786.32
5.0.20.0200.0466.29
5.0.10.0070.0276.26
5.0.00.0250.0736.25
4.4.90.0120.0164.78
4.4.80.0060.0204.75
4.4.70.0080.0214.75
4.4.60.0080.0194.75
4.4.50.0320.0554.77
4.4.40.0250.0794.71
4.4.30.0110.0234.76
4.4.20.0300.0574.85
4.4.10.0100.0244.85
4.4.00.0170.0834.76
4.3.110.0090.0244.67
4.3.100.0230.0684.67
4.3.90.0070.0194.64
4.3.80.0060.0304.58
4.3.70.0320.0524.63
4.3.60.0110.0144.63
4.3.50.0220.0634.63
4.3.40.0080.0254.54
4.3.30.0050.0183.30
4.3.20.0200.0633.30
4.3.10.0080.0153.26
4.3.00.0030.01715.64

preferences:
43.76 ms | 400 KiB | 5 Q