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, &$args){ call_user_func_array(array('Testme', $func_name), $args); } } $test = 10; $args[] = &$test; Invoker::invoke('foo', $args); 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.0060.01216.50
8.3.50.0090.00818.26
8.3.40.0140.00318.82
8.3.30.0070.00718.89
8.3.20.0060.00318.51
8.3.10.0090.00020.53
8.3.00.0000.00819.25
8.2.180.0070.00716.38
8.2.170.0070.00722.96
8.2.160.0090.00918.79
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0090.00020.33
8.2.110.0070.00319.39
8.2.100.0060.00617.91
8.2.90.0030.00619.50
8.2.80.0000.00719.21
8.2.70.0000.00917.50
8.2.60.0060.00318.05
8.2.50.0030.00718.07
8.2.40.0040.00418.15
8.2.30.0070.00018.10
8.2.20.0060.00319.38
8.2.10.0000.00817.73
8.2.00.0080.00017.67
8.1.280.0060.01125.92
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0050.00522.65
8.1.230.0110.00020.96
8.1.220.0060.00317.74
8.1.210.0000.00818.79
8.1.200.0000.01017.23
8.1.190.0030.00617.52
8.1.180.0040.00418.10
8.1.170.0060.00618.46
8.1.160.0050.00318.94
8.1.150.0030.00518.56
8.1.140.0040.00417.45
8.1.130.0030.00317.82
8.1.120.0030.00517.38
8.1.110.0000.00717.51
8.1.100.0040.00417.35
8.1.90.0030.00617.52
8.1.80.0000.00817.46
8.1.70.0070.00017.45
8.1.60.0000.00817.55
8.1.50.0040.00417.45
8.1.40.0040.00417.45
8.1.30.0040.00417.51
8.1.20.0040.00417.55
8.1.10.0000.00817.57
8.1.00.0000.00717.54
8.0.300.0080.00019.86
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0030.00517.22
8.0.260.0000.00716.73
8.0.250.0040.00416.96
8.0.240.0040.00416.99
8.0.230.0030.00316.84
8.0.220.0040.00416.86
8.0.210.0080.00016.78
8.0.200.0030.00316.84
8.0.190.0040.00416.99
8.0.180.0000.00816.82
8.0.170.0040.00416.71
8.0.160.0000.00716.88
8.0.150.0000.00816.84
8.0.140.0070.00016.86
8.0.130.0000.00513.36
8.0.120.0030.00616.83
8.0.110.0040.00417.00
8.0.100.0040.00416.85
8.0.90.0000.00716.71
8.0.80.0060.00916.88
8.0.70.0080.00016.92
8.0.60.0050.00316.79
8.0.50.0040.00416.86
8.0.30.0070.01017.24
8.0.20.0110.00717.14
8.0.10.0040.00416.86
8.0.00.0110.01116.85
7.4.330.0000.00512.95
7.4.320.0000.00616.43
7.4.300.0000.00716.59
7.4.290.0050.00316.59
7.4.280.0000.00716.49
7.4.270.0070.00016.55
7.4.260.0030.00313.31
7.4.250.0040.00416.56
7.4.240.0070.00016.65
7.4.230.0000.00716.41
7.4.220.0090.01516.35
7.4.210.0060.00916.48
7.4.200.0000.00716.34
7.4.190.0030.00316.41
7.4.160.0110.00516.34
7.4.150.0130.00716.58
7.4.140.0120.00616.63
7.4.130.0090.00916.55
7.4.120.0060.01116.34
7.4.110.0090.00916.47
7.4.100.0120.00916.54
7.4.90.0140.00916.43
7.4.80.0100.00619.39
7.4.70.0080.01516.58
7.4.60.0110.00716.63
7.4.50.0040.00016.42
7.4.40.0070.01016.23
7.4.30.0100.00616.63
7.4.00.0040.01115.11
7.3.330.0060.00013.33
7.3.320.0030.00313.26
7.3.310.0000.00716.22
7.3.300.0000.00716.23
7.3.290.0060.00816.39
7.3.280.0110.00816.37
7.3.270.0050.01516.35
7.3.260.0090.00916.56
7.3.250.0080.01216.37
7.3.240.0150.00916.59
7.3.230.0100.00616.47
7.3.210.0100.00716.36
7.3.200.0090.00916.46
7.3.190.0150.00316.44
7.3.180.0030.01316.50
7.3.170.0060.01016.63
7.3.160.0090.00616.36
7.3.120.0090.00614.82
7.2.330.0030.01516.56
7.2.320.0100.01416.31
7.2.310.0100.01316.69
7.2.300.0090.00916.42
7.2.290.0100.00716.64
7.2.00.0030.01019.14
7.1.100.0060.00617.88
7.1.70.0000.00917.10
7.1.60.0100.01419.31
7.1.50.0100.01016.84
7.1.00.0070.06022.42
7.0.200.0030.00716.76
7.0.140.0070.06721.95
7.0.120.0100.06722.00
7.0.60.0030.05320.03
7.0.50.0070.08717.98
7.0.40.0000.09719.96
7.0.30.0300.07720.21
7.0.20.0230.04720.12
7.0.10.0170.09320.26
7.0.00.0070.04320.30
5.6.280.0000.07320.98
5.6.210.0070.06320.66
5.6.200.0100.06018.25
5.6.190.0030.09320.39
5.6.180.0470.06720.61
5.6.170.0400.08020.47
5.6.160.0100.07320.48
5.6.150.0100.06318.23
5.6.140.0000.04318.18
5.6.130.0100.08018.28
5.6.120.0100.06020.99
5.6.110.0030.09020.98
5.6.100.0130.07721.00
5.6.90.0100.05721.13
5.6.80.0130.06320.37
5.6.70.0300.07720.42
5.5.350.0430.06020.38
5.5.340.0030.05017.95
5.5.330.0070.04020.33
5.5.320.0230.05020.30
5.5.310.0370.07320.24
5.5.300.0070.03718.03
5.5.290.0030.04717.95
5.5.280.0030.05720.90
5.5.270.0000.05020.97
5.5.260.0100.08020.80
5.5.250.0170.05020.58
5.5.240.0100.07720.12
5.4.450.0030.04019.57
5.4.440.0000.04019.48
5.4.430.0100.07019.46
5.4.420.0030.04019.18
5.4.410.0130.05019.35
5.4.400.0170.06718.93
5.4.390.0070.03719.24
5.4.380.0070.04719.15
5.4.370.0000.04719.14
5.4.360.0070.07019.20
5.4.350.0030.07319.28
5.4.340.0070.03719.07
5.4.320.0100.06319.24
5.4.310.0130.06719.12
5.4.300.0100.07018.85
5.4.290.0100.07319.15
5.4.280.0030.04719.07
5.4.270.0070.07019.20
5.4.260.0170.05319.11
5.4.250.0070.07719.15
5.4.240.0070.08318.98
5.4.230.0100.07319.14
5.4.220.0100.03719.07
5.4.210.0130.05318.85
5.4.200.0100.07018.93
5.4.190.0030.04719.14
5.4.180.0070.05318.96
5.4.170.0270.04319.14
5.4.160.0030.04319.22
5.4.150.0030.05719.13
5.4.140.0030.03716.38
5.4.130.0100.04016.30
5.4.120.0100.07016.35
5.4.110.0200.03716.59
5.4.100.0030.06016.46
5.4.90.0000.04316.44
5.4.80.0030.03716.57
5.4.70.0130.07016.53
5.4.60.0030.04016.37
5.4.50.0030.04316.34
5.4.40.0100.06716.36
5.4.30.0030.07016.64
5.4.20.0070.03316.50
5.4.10.0070.05016.46
5.4.00.0030.07315.94
5.3.290.0030.04714.57
5.3.280.0130.04714.65
5.3.270.0030.04014.61
5.3.260.0030.08314.65
5.3.250.0070.07014.63
5.3.240.0070.08314.63
5.3.230.0000.05014.62
5.3.220.0100.03014.64
5.3.210.0030.08314.59
5.3.200.0100.06314.58
5.3.190.0030.06014.58
5.3.180.0030.04714.58
5.3.170.0000.05014.62
5.3.160.0130.03014.58
5.3.150.0000.04314.59
5.3.140.0230.03714.47
5.3.130.0070.07714.44
5.3.120.0000.05714.59
5.3.110.0070.03714.59
5.3.100.0100.07014.09
5.3.90.0130.06714.08
5.3.80.0070.04014.03
5.3.70.0100.07013.95
5.3.60.0070.07313.93
5.3.50.0030.05314.00
5.3.40.0170.06314.11
5.3.30.0030.08313.96
5.3.20.0070.06313.70
5.3.10.0070.05713.80
5.3.00.0070.03313.64
5.2.170.0130.05011.15
5.2.160.0030.03311.04
5.2.150.0030.04011.17
5.2.140.0030.06011.18
5.2.130.0030.03711.08
5.2.120.0130.05011.11
5.2.110.0000.03011.11
5.2.100.0070.02711.14
5.2.90.0000.05711.11
5.2.80.0070.06011.06
5.2.70.0100.05711.05
5.2.60.0130.05711.21
5.2.50.0100.05711.03
5.2.40.0000.03311.14
5.2.30.0070.02710.89
5.2.20.0100.06011.01
5.2.10.0030.05310.92
5.2.00.0030.03310.77
5.1.60.0300.01710.03
5.1.50.0030.0239.99
5.1.40.0130.0309.93
5.1.30.0030.05710.39
5.1.20.0070.05710.43
5.1.10.0070.05710.05
5.1.00.0070.05310.03
5.0.50.0000.0508.72
5.0.40.0100.0378.72
5.0.30.0030.0638.72
5.0.20.0070.0178.72
5.0.10.0000.0378.72
5.0.00.0070.0508.72
4.4.90.0070.0238.72
4.4.80.0030.0278.72
4.4.70.0100.0208.72
4.4.60.0070.0308.72
4.4.50.0000.0308.72
4.4.40.0000.0278.72
4.4.30.0030.0378.72
4.4.20.0000.0378.72
4.4.10.0070.0338.72
4.4.00.0030.0578.72
4.3.110.0000.0338.72
4.3.100.0070.0278.72
4.3.90.0030.0138.72
4.3.80.0170.0308.72
4.3.70.0030.0378.72
4.3.60.0000.0208.72
4.3.50.0000.0208.72
4.3.40.0070.0178.72
4.3.30.0100.0138.72
4.3.20.0100.0208.72
4.3.10.0070.0338.72
4.3.00.0030.0338.72

preferences:
89.98 ms | 401 KiB | 5 Q