3v4l.org

run code in 300+ PHP versions simultaneously
<?php function createAnd(...$args) { var_dump($args); } function foo() { createAnd(func_get_args()[0]); } class Cl { public static function createAnd(...$args) { var_dump($args); } public function bar() { static::createAnd(func_get_args()[0]); } } foo('x'); (new Cl())->bar('y');

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.5.00.0130.00819.93
8.4.150.0020.00014.05
8.4.140.0140.00717.43
8.4.130.0100.01117.76
8.4.120.0100.00922.44
8.4.110.0110.00622.64
8.4.100.0110.01017.92
8.4.90.0140.00617.64
8.4.80.0100.01017.80
8.4.70.0080.01219.46
8.4.60.0130.00719.54
8.4.50.0050.00322.22
8.4.40.0150.00617.61
8.4.30.0060.01322.42
8.4.20.0030.01317.76
8.4.10.0060.00319.45
8.3.280.0080.01320.16
8.3.270.0100.00916.50
8.3.260.0070.01116.54
8.3.250.0140.00418.77
8.3.240.0100.00616.66
8.3.230.0070.00316.57
8.3.220.0130.00617.23
8.3.210.0110.00716.65
8.3.200.0060.00216.52
8.3.190.0110.00816.33
8.3.180.0110.00716.43
8.3.170.0090.00018.92
8.3.160.0180.00316.43
8.3.150.0030.01516.44
8.3.140.0070.00419.10
8.3.130.0000.00818.24
8.3.120.0060.00320.71
8.3.110.0060.00318.30
8.3.100.0000.00918.38
8.3.50.0080.00018.43
8.2.290.0080.00820.46
8.2.280.0070.00420.31
8.2.270.0060.00917.00
8.2.260.0130.00616.36
8.2.250.0090.00618.06
8.2.240.0040.00418.75
8.2.230.0110.00418.42
8.2.220.0150.00317.98
8.2.110.0040.00820.45
8.2.100.0120.00818.29
8.2.90.0160.00518.40
8.2.80.0150.00518.18
8.2.70.0130.00718.25
8.2.60.0140.00718.26
8.2.50.0130.00518.22
8.2.40.0140.00418.28
8.2.30.0130.00418.30
8.2.20.0100.00618.50
8.2.10.0140.00418.26
8.2.00.0140.00418.24
8.1.330.0130.00616.48
8.1.320.0160.01115.94
8.1.310.0040.00415.98
8.1.300.0030.00616.34
8.1.240.0050.00918.46
8.1.230.0060.00719.52
8.1.220.0130.00518.09
8.1.210.0120.00619.02
8.1.200.0120.00718.08
8.1.190.0100.00818.17
8.1.180.0110.00618.03
8.1.170.0120.00618.10
8.1.160.0140.00418.14
8.1.150.0120.00518.19
8.1.140.0160.00118.40
8.1.130.0110.00718.42
8.1.120.0150.00318.19
8.1.110.0120.00618.17
8.1.100.0120.00618.19
8.1.90.0120.00618.19
8.1.80.0130.00518.19
8.1.70.0130.00618.18
8.1.60.0120.00718.27
8.1.50.0130.00518.21
8.1.40.0140.00518.50
8.1.30.0110.00718.57
8.1.20.0120.00618.63
8.1.10.0120.00618.48
8.1.00.0110.00718.22
8.0.300.0130.00417.74
8.0.290.0140.00317.87
8.0.280.0120.00417.80
8.0.270.0110.00617.82
8.0.260.0090.00717.80
8.0.250.0150.00117.84
8.0.240.0130.00617.81
8.0.230.0110.00617.83
8.0.220.0130.00617.80
8.0.210.0140.00317.73
8.0.200.0120.00717.79
8.0.190.0130.00617.75
8.0.180.0100.00717.98
8.0.170.0150.00217.85
8.0.160.0130.00418.02
8.0.150.0140.00417.80
8.0.140.0140.00417.84
8.0.130.0120.00617.81
8.0.120.0130.00617.77
8.0.110.0120.00517.92
8.0.100.0130.00417.98
8.0.90.0100.00517.80
8.0.80.0110.00517.80
8.0.70.0110.00519.41
8.0.60.0100.00617.76
8.0.50.0120.00617.78
8.0.30.0120.00617.76
8.0.20.0140.00317.85
8.0.10.0160.00118.01

preferences:
39.5 ms | 403 KiB | 5 Q