3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ff(&$var) { return $var; } class A { public function __construct($f) { $this->f = $f; } public function __invoke() { $args = array(); foreach ((array) func_get_args() as &$arg) { $args[] = &$arg; } return call_user_func_array($this->f, $args); } } $a = new A('ff'); echo call_user_func_array($a, array('A'));

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.88
8.3.50.0000.01418.21
8.3.40.0140.00019.09
8.3.30.0100.00319.17
8.3.20.0040.00419.91
8.3.10.0060.00322.02
8.3.00.0120.00017.59
8.2.180.0170.00318.16
8.2.170.0140.00722.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00419.48
8.2.110.0090.00021.02
8.2.100.0000.01117.84
8.2.90.0090.00017.75
8.2.80.0000.00818.77
8.2.70.0000.00917.38
8.2.60.0000.00817.63
8.2.50.0000.01117.50
8.2.40.0000.00917.62
8.2.30.0000.00717.85
8.2.20.0030.00517.70
8.2.10.0080.00018.18
8.2.00.0000.00817.56
8.1.270.0060.00320.23
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00821.83
8.1.230.0120.00020.85
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0030.00517.62
8.1.160.0000.00718.89
8.1.150.0040.00418.89
8.1.140.0050.00317.38
8.1.130.0030.00317.80
8.1.120.0030.00317.45
8.1.110.0080.00017.45
8.1.100.0040.00417.46
8.1.90.0000.00717.41
8.1.80.0030.00317.46
8.1.70.0000.00717.45
8.1.60.0090.00017.46
8.1.50.0080.00017.48
8.1.40.0060.00317.55
8.1.30.0080.00017.55
8.1.20.0090.00017.58
8.1.10.0040.00417.45
8.1.00.0000.00817.57
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.07
8.0.270.0070.00018.00
8.0.260.0030.00317.25
8.0.250.0030.00316.98
8.0.240.0040.00416.96
8.0.230.0050.00216.84
8.0.220.0070.00016.91
8.0.210.0030.00316.88
8.0.200.0000.00616.96
8.0.190.0070.00016.95
8.0.180.0030.00316.91
8.0.170.0050.00316.92
8.0.160.0040.00416.89
8.0.150.0000.00716.76
8.0.140.0000.00716.76
8.0.130.0060.00013.40
8.0.120.0060.00316.87
8.0.110.0050.00316.91
8.0.100.0040.00416.91
8.0.90.0040.00416.69
8.0.80.0060.00916.84
8.0.70.0040.00416.71
8.0.60.0030.00516.96
8.0.50.0030.00616.78
8.0.30.0170.00617.07
8.0.20.0050.01417.40
8.0.10.0040.00416.97
8.0.00.0150.00916.83
7.4.330.0030.00315.03
7.4.320.0070.00016.49
7.4.300.0030.00316.60
7.4.290.0000.00716.52
7.4.280.0070.00016.60
7.4.270.0030.00316.60
7.4.260.0050.00216.36
7.4.250.0040.00416.60
7.4.240.0040.00416.38
7.4.230.0030.00516.42
7.4.220.0140.00416.59
7.4.210.0080.00716.63
7.4.200.0040.00416.61
7.4.160.0120.00416.47
7.4.150.0110.00917.40
7.4.140.0200.00317.86
7.4.130.0060.01416.46
7.4.120.0110.00616.43
7.4.110.0170.00916.71
7.4.100.0160.00316.60
7.4.90.0080.00816.43
7.4.80.0040.01719.39
7.4.70.0030.01216.63
7.4.60.0090.00616.37
7.4.50.0000.00716.16
7.4.40.0090.00616.37
7.4.30.0100.01416.70
7.4.00.0000.01614.90
7.3.330.0030.00313.09
7.3.320.0060.00913.30
7.3.310.0000.00716.40
7.3.300.0040.00416.24
7.3.290.0030.00316.20
7.3.280.0070.01016.34
7.3.270.0140.00317.40
7.3.260.0140.01016.32
7.3.250.0120.00716.40
7.3.240.0100.00616.39
7.3.230.0140.00416.46
7.3.210.0030.01616.50
7.3.200.0110.00519.39
7.3.190.0060.01016.43
7.3.180.0100.01016.53
7.3.170.0090.01016.45
7.3.160.0090.01216.49
7.2.330.0040.02216.80
7.2.320.0110.01116.79
7.2.310.0080.00816.79
7.2.300.0110.00516.61
7.2.290.0070.01016.80
7.2.60.0040.01216.98
7.2.00.0000.01519.53
7.1.200.0040.01215.82
7.1.100.0030.01218.13
7.1.70.0000.00817.11
7.1.60.0070.01819.50
7.1.50.0160.01016.98
7.1.00.0070.07322.41
7.0.200.0640.00314.29
7.0.140.0070.03721.95
7.0.60.0000.08719.98
7.0.50.0100.04017.86
7.0.40.0030.04320.25
7.0.30.0430.04720.07
7.0.20.0200.09020.09
7.0.10.0300.07720.12
7.0.00.0000.09720.05
5.6.280.0100.06721.12
5.6.210.0100.06720.70
5.6.200.0100.03718.29
5.6.190.0070.08320.48
5.6.180.0300.07720.42
5.6.170.0370.06720.62
5.6.160.0000.05320.43
5.6.150.0100.06318.14
5.6.140.0070.03718.17
5.6.130.0030.06318.15
5.6.120.0100.03721.10
5.6.110.0070.06721.02
5.6.100.0130.06321.15
5.6.90.0100.08020.98
5.6.80.0100.07320.52
5.5.350.0170.03720.39
5.5.340.0070.04717.98
5.5.330.0230.07020.23
5.5.320.0000.09320.30
5.5.310.0330.06720.27
5.5.300.0030.07318.05
5.5.290.0000.04318.01
5.5.280.0200.04320.78
5.5.270.0030.09020.74
5.5.260.0070.07020.85
5.5.250.0000.04320.62
5.5.240.0030.04020.23
5.4.450.0270.05719.61
5.4.440.0870.06019.61
5.4.430.0870.05019.59
5.4.420.0830.06319.27
5.4.410.0030.06719.06
5.4.400.0730.06018.55
5.4.390.0370.07718.47
5.4.380.0630.07318.78
5.4.370.0670.07018.53
5.4.360.0430.05718.55
5.4.350.0430.06318.74
5.4.340.0300.07018.80
5.4.320.0470.07318.77
5.4.310.0430.06718.81
5.4.300.0630.06018.73
5.4.290.0470.07318.77
5.4.280.0730.07318.56
5.4.270.0470.06018.58
5.4.260.1370.06318.59
5.4.250.0500.05718.73
5.4.240.1270.07318.59
5.4.230.0270.07718.49
5.4.220.0430.06718.82
5.4.210.0530.05318.73
5.4.200.0300.06016.79
5.4.190.0500.05318.71
5.4.180.0570.06318.68
5.4.170.0500.07318.73
5.4.160.0330.07018.74
5.4.150.0370.06718.54
5.4.140.0370.05316.30
5.4.130.0700.05716.44
5.4.120.0370.05016.31
5.4.110.0370.06316.29
5.4.100.0330.07016.27
5.4.90.0300.08016.34
5.4.80.2470.05316.24
5.4.70.0730.06016.15
5.4.60.2300.06716.41
5.4.50.0570.05016.17
5.4.40.0730.06716.26
5.4.30.0500.07316.28
5.4.20.0300.05316.30
5.4.10.2000.07016.20
5.4.00.0270.06315.67
5.3.290.0330.05714.70
5.3.280.1800.05014.61
5.3.270.0500.05714.82
5.3.260.0470.06714.65
5.3.250.0470.07014.71
5.3.240.0570.06014.81
5.3.230.0330.07014.58
5.3.220.0230.06714.56
5.3.210.0270.07014.62
5.3.200.0430.05314.79
5.3.190.0430.05714.58
5.3.180.0370.05014.69
5.3.170.0400.06014.66
5.3.160.0400.06014.69
5.3.150.0430.06014.56
5.3.140.0330.07014.57
5.3.130.0570.07314.71
5.3.120.0500.07014.77
5.3.110.0530.07314.68
5.3.100.0430.06714.25
5.3.90.0530.05314.21
5.3.80.0500.05314.12
5.3.70.0500.06014.12
5.3.60.0630.05714.04
5.3.50.0430.06314.17
5.3.40.0400.06713.98
5.3.30.0630.05313.94
5.3.20.0430.07013.71
5.3.10.0400.06313.88
5.3.00.0600.06013.75
5.2.170.0530.05011.36
5.2.160.0470.05311.18
5.2.150.0430.03711.17
5.2.140.0300.06011.35
5.2.130.0300.06311.33
5.2.120.0370.05711.10
5.2.110.0600.05711.16
5.2.100.1770.04711.18
5.2.90.0400.05311.13
5.2.80.0370.05311.32
5.2.70.0370.05311.11
5.2.60.0930.05311.25
5.2.50.0600.05011.22
5.2.40.0300.05311.06
5.2.30.0330.05010.99
5.2.20.0230.04711.02
5.2.10.0270.04710.86
5.2.00.0170.06010.89
5.1.60.0100.05010.10
5.1.50.0370.03710.02
5.1.40.0330.05010.09
5.1.30.0370.05310.39
5.1.20.0270.05310.35
5.1.10.0130.06010.28
5.1.00.0300.04710.06
5.0.50.0170.0308.65
5.0.40.0100.0308.55
5.0.30.0070.0538.30
5.0.20.0100.0278.39
5.0.10.0070.0378.20
5.0.00.0170.0608.28
4.4.90.0200.0235.88
4.4.80.0100.0305.88
4.4.70.0070.0276.00
4.4.60.0130.0235.86
4.4.50.0070.0276.02
4.4.40.0070.0405.88
4.4.30.0130.0235.86
4.4.20.2870.0305.93
4.4.10.0130.0205.97
4.4.00.0100.0475.90
4.3.110.0100.0235.86
4.3.100.0130.0305.84
4.3.90.0200.0235.79
4.3.80.0300.0405.82
4.3.70.0070.0305.78
4.3.60.0070.0275.78
4.3.50.0130.0235.79
4.3.40.0100.0305.75
4.3.30.0030.0275.75
4.3.20.0170.0235.75
4.3.10.0070.0305.75
4.3.00.0130.0206.89

preferences:
55.92 ms | 400 KiB | 5 Q