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']; exit(print_r($args, true)); call_user_func_array(array('Testme', $func_name), array_slice($args,1)); } } $test = 2; Invoker::invoke('foo', $test); 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.60.0170.00318.24
8.3.50.0120.00821.21
8.3.40.0140.00418.92
8.3.30.0130.00020.29
8.3.20.0040.00420.34
8.3.10.0040.00422.05
8.3.00.0090.00022.29
8.2.180.0150.00316.73
8.2.170.0040.01122.96
8.2.160.0070.00722.26
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00520.93
8.2.110.0060.00322.14
8.2.100.0090.00317.78
8.2.90.0070.00019.09
8.2.80.0030.00519.46
8.2.70.0050.00317.50
8.2.60.0080.00017.90
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0070.00019.46
8.2.20.0040.00417.63
8.2.10.0040.00417.81
8.2.00.0060.00317.79
8.1.280.0030.01325.92
8.1.270.0080.00023.99
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0000.00923.75
8.1.230.0040.00719.16
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0000.00917.51
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0000.00818.70
8.1.150.0040.00418.52
8.1.140.0070.00017.40
8.1.130.0030.00317.92
8.1.120.0040.00417.43
8.1.110.0040.00417.38
8.1.100.0040.00417.45
8.1.90.0040.00417.32
8.1.80.0030.00317.38
8.1.70.0040.00417.36
8.1.60.0060.00317.58
8.1.50.0000.00717.55
8.1.40.0000.00817.40
8.1.30.0000.00817.64
8.1.20.0050.00217.71
8.1.10.0000.00717.54
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0060.00317.05
8.0.280.0030.00318.25
8.0.270.0080.00017.20
8.0.260.0000.00816.89
8.0.250.0030.00316.87
8.0.240.0000.00716.97
8.0.230.0000.00817.05
8.0.220.0030.00316.90
8.0.210.0070.00016.88
8.0.200.0070.00016.96
8.0.190.0050.00216.94
8.0.180.0070.00016.95
8.0.170.0000.00816.83
8.0.160.0040.00416.80
8.0.150.0040.00416.75
8.0.140.0060.00316.74
8.0.130.0000.00513.27
8.0.120.0030.00516.84
8.0.110.0070.00016.87
8.0.100.0050.00316.89
8.0.90.0000.00816.98
8.0.80.0090.01216.91
8.0.70.0000.00716.83
8.0.60.0040.00416.89
8.0.50.0040.00416.84
8.0.30.0090.00917.07
8.0.20.0190.00417.40
8.0.10.0000.00717.08
8.0.00.0140.00716.77
7.4.330.0000.00516.79
7.4.320.0060.00016.56
7.4.300.0060.00016.47
7.4.290.0000.00716.58
7.4.280.0030.00516.49
7.4.270.0030.00616.41
7.4.260.0030.00313.29
7.4.250.0060.00316.48
7.4.240.0060.00216.49
7.4.230.0030.00316.48
7.4.220.0100.00716.59
7.4.210.0090.00616.50
7.4.200.0030.00416.54
7.4.190.0030.00316.66
7.4.160.0030.01216.56
7.4.150.0080.01017.40
7.4.140.0070.01217.86
7.4.130.0150.00516.55
7.4.120.0130.00316.56
7.4.110.0150.00416.34
7.4.100.0090.01016.54
7.4.90.0130.00616.62
7.4.80.0120.00619.39
7.4.70.0030.01316.45
7.4.60.0040.01216.35
7.4.50.0080.00016.39
7.4.40.0000.01622.77
7.4.30.0090.01216.43
7.4.00.0080.00914.89
7.3.330.0030.00313.37
7.3.320.0060.00013.38
7.3.310.0000.00716.41
7.3.300.0000.00716.31
7.3.290.0070.01016.27
7.3.280.0090.00616.38
7.3.270.0060.01217.40
7.3.260.0100.01016.34
7.3.250.0130.00616.46
7.3.240.0090.01216.35
7.3.230.0120.00416.58
7.3.210.0000.01616.31
7.3.200.0110.00819.39
7.3.190.0060.01216.44
7.3.180.0040.01416.34
7.3.170.0090.01416.29
7.3.160.0070.01416.36
7.3.120.0040.01214.74
7.3.110.0090.00514.65
7.3.100.0070.00814.74
7.3.90.0080.00314.60
7.3.80.0030.01314.58
7.3.70.0080.00814.92
7.3.60.0000.01114.69
7.3.50.0090.00414.83
7.3.40.0050.00814.63
7.3.30.0050.00514.70
7.3.20.0050.00816.52
7.3.10.0080.00516.55
7.3.00.0080.00616.60
7.2.330.0060.01316.79
7.2.320.0080.01616.79
7.2.310.0070.01016.40
7.2.300.0110.00716.86
7.2.290.0100.00616.46
7.2.250.0070.01214.90
7.2.240.0100.01014.90
7.2.230.0080.00814.93
7.2.220.0060.00615.07
7.2.210.0070.00814.93
7.2.200.0080.00315.07
7.2.190.0090.00514.90
7.2.180.0060.00715.08
7.2.170.0110.00214.90
7.2.130.0070.00316.89
7.2.120.0070.01116.58
7.2.110.0030.01016.50
7.2.100.0100.00016.52
7.2.90.0060.01016.97
7.2.80.0060.00716.48
7.2.70.0030.00616.71
7.2.60.0140.00316.78
7.2.50.0090.00616.88
7.2.40.0070.00716.85
7.2.30.0070.00716.60
7.2.20.0000.01016.64
7.2.10.0040.00816.70
7.2.00.0050.00516.84
7.1.330.0060.00615.77
7.1.320.0030.00615.72
7.1.310.0040.00915.58
7.1.300.0040.00815.64
7.1.290.0090.00415.82
7.1.280.0040.00715.47
7.1.270.0020.01015.73
7.1.260.0110.00315.66
7.1.250.0040.00815.49
7.1.200.0070.00715.88
7.1.100.0060.00918.25
7.1.70.0100.00017.27
7.1.60.0030.02119.17
7.1.50.0100.01417.09
7.1.00.0000.04322.37
7.0.200.0000.01016.39
7.0.140.0100.06722.00
7.0.100.0000.04020.00
7.0.90.0000.04719.94
7.0.80.0070.03720.00
7.0.70.0030.04319.93
7.0.60.0030.04019.98
7.0.50.0170.03020.37
7.0.40.0030.04320.05
7.0.30.0100.04020.13
7.0.20.0070.04320.13
7.0.10.0030.04320.03
7.0.00.0000.04720.04
5.6.280.0030.07021.10
5.6.250.0030.04320.60
5.6.240.0070.03720.69
5.6.230.0170.02720.60
5.6.220.0000.04320.73
5.6.210.0030.04020.64
5.6.200.0070.05020.97
5.6.190.0030.04321.04
5.6.180.0130.05321.03
5.6.170.0100.03321.05
5.6.160.0000.04321.00
5.6.150.0030.04021.08
5.6.140.0070.04020.95
5.6.130.0130.03020.95
5.6.120.0070.04021.10
5.6.110.0030.04321.00
5.6.100.0130.08321.05
5.6.90.0170.08021.12
5.6.80.0100.04320.40
5.6.70.0070.08020.38
5.6.60.0200.07020.41
5.6.50.0030.05020.34
5.6.40.0100.08020.39
5.6.30.0070.07720.48
5.6.20.0100.08020.44
5.6.10.0100.07320.44
5.6.00.0000.08720.46
5.5.380.0070.03720.36
5.5.370.0000.04320.42
5.5.360.0000.07320.35
5.5.350.0100.03720.34
5.5.340.0070.03320.91
5.5.330.0070.03320.68
5.5.320.0000.04720.89
5.5.310.0070.04020.77
5.5.300.0030.04720.88
5.5.290.0070.04020.75
5.5.280.0000.05320.87
5.5.270.0070.04320.88
5.5.260.0030.05720.75
5.5.250.0070.05720.64
5.5.240.0130.07320.31
5.5.230.0100.07720.24
5.5.220.0130.07020.11
5.5.210.0070.04320.16
5.5.200.0070.08020.23
5.5.190.0100.08020.24
5.5.180.0100.08320.18
5.5.160.0130.07020.18
5.5.150.0130.07020.27
5.5.140.0000.05720.21
5.5.130.0100.05320.27
5.5.120.0070.07320.08
5.5.110.0030.08020.23
5.5.100.0070.07020.16
5.5.90.0100.07020.06
5.5.80.0100.07020.11
5.5.70.0030.06319.96
5.5.60.0170.07720.11
5.5.50.0030.05320.15
5.5.40.0100.06720.14
5.5.30.0100.07319.95
5.5.20.0030.06720.08
5.5.10.0170.06319.97
5.5.00.0070.07319.94
5.4.450.0030.04319.56
5.4.440.0070.04019.20
5.4.430.0000.04019.53
5.4.420.0100.07719.39
5.4.410.0030.08019.37
5.4.400.0130.07719.13
5.4.390.0130.07018.94
5.4.380.0130.06019.05
5.4.370.0100.08019.04
5.4.360.0030.06719.16
5.4.350.0030.08019.15
5.4.340.0170.06718.84
5.4.320.0030.08318.90
5.4.310.0070.05318.90
5.4.300.0070.07719.04
5.4.290.0200.07318.90
5.4.280.0100.07018.87
5.4.270.0070.07319.21
5.4.260.0170.05019.24
5.4.250.0130.08018.86
5.4.240.0030.07719.13
5.4.230.0100.06719.17
5.4.220.0170.06718.87
5.4.210.0070.08019.04
5.4.200.0170.06018.84
5.4.190.0030.08319.17
5.4.180.0000.08019.02
5.4.170.0070.08319.13
5.4.160.0000.06019.10
5.4.150.0030.08319.20
5.4.140.0030.04316.47
5.4.130.0030.04716.48
5.4.120.0070.05316.48
5.4.110.0030.08716.57
5.4.100.0070.05716.34
5.4.90.0000.07716.45
5.4.80.0030.08316.39
5.4.70.0070.05716.51
5.4.60.0030.07716.47
5.4.50.0070.07716.39
5.4.40.0070.07316.50
5.4.30.0070.06016.40
5.4.20.0070.06716.46
5.4.10.0130.05316.30
5.4.00.0100.05715.87
5.3.290.0070.07714.59
5.3.280.0030.07314.53
5.3.270.0100.07314.70
5.3.260.0130.07014.59
5.3.250.0070.07714.54
5.3.240.0070.06314.68
5.3.230.0070.04714.69
5.3.220.0030.07714.64
5.3.210.0170.06314.53
5.3.200.0030.07314.63
5.3.190.0070.08714.51
5.3.180.0070.06714.50
5.3.170.0130.06314.69
5.3.160.0070.05014.66
5.3.150.0070.04014.63
5.3.140.0100.06714.62
5.3.130.0030.06014.51
5.3.120.0070.07714.63
5.3.110.0000.08314.68
5.3.100.0100.06714.01
5.3.90.0070.04014.13
5.3.80.0030.07314.17
5.3.70.0000.04013.91
5.3.60.0100.07013.90
5.3.50.0000.03713.95
5.3.40.0030.08014.02
5.3.30.0030.07313.82
5.3.20.0030.07713.77
5.3.10.0070.06313.68
5.3.00.0070.06713.57
5.2.170.0070.05711.08
5.2.160.0070.04711.21
5.2.150.0100.03711.07
5.2.140.0070.06011.24
5.2.130.0070.03311.01
5.2.120.0070.02711.14
5.2.110.0030.05310.98
5.2.100.0070.04011.16
5.2.90.0000.03711.17
5.2.80.0100.05711.11
5.2.70.0070.03311.12
5.2.60.0030.07010.96
5.2.50.0100.04010.92
5.2.40.0000.03711.01
5.2.30.0030.05310.84
5.2.20.0130.02710.84
5.2.10.0030.05011.00
5.2.00.0070.05010.79
5.1.60.0030.05310.12
5.1.50.0030.0509.89
5.1.40.0070.0479.98
5.1.30.0070.05710.40
5.1.20.0000.06310.35
5.1.10.0100.0479.88
5.1.00.0030.0579.93
5.0.50.0000.0478.40
5.0.40.0070.0438.41
5.0.30.0000.0678.22
5.0.20.0030.0438.31
5.0.10.0070.0438.26
5.0.00.0000.0678.22
4.4.90.0030.0208.22
4.4.80.0000.0338.22
4.4.70.0070.0338.22
4.4.60.0030.0308.22
4.4.50.0030.0378.22
4.4.40.0030.0278.22
4.4.30.0030.0208.22
4.4.20.0030.0178.22
4.4.10.0100.0238.22
4.4.00.0070.0508.22
4.3.110.0030.0338.22
4.3.100.0030.0238.22
4.3.90.0030.0308.22
4.3.80.0030.0408.22
4.3.70.0070.0308.22
4.3.60.0000.0308.22
4.3.50.0000.0308.22
4.3.40.0030.0538.22
4.3.30.0000.0278.22
4.3.20.0000.0378.22
4.3.10.0030.0278.22
4.3.00.0000.0378.22

preferences:
44.43 ms | 401 KiB | 5 Q