3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { $fn = static::methodName(...); if (is_callable($fn)) { $fn(); } } } (new Foo())->bar();

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.4.120.0020.00624.11
8.4.110.0060.00319.02
8.4.100.0100.00917.85
8.4.90.0120.00920.54
8.4.80.0100.00819.10
8.4.70.0130.00620.42
8.4.60.0160.00620.69
8.4.50.0140.00717.90
8.4.40.0060.00917.88
8.4.30.0100.00720.34
8.4.20.0070.00317.73
8.4.10.0170.00323.70
8.3.250.0110.00718.89
8.3.240.0110.00917.06
8.3.230.0060.00316.86
8.3.220.0100.00718.93
8.3.210.0130.00616.59
8.3.200.0050.00416.32
8.3.190.0050.00316.74
8.3.180.0110.00818.38
8.3.170.0130.00718.81
8.3.160.0090.00918.38
8.3.150.0110.00417.12
8.3.140.0110.00716.96
8.3.130.0120.00418.38
8.3.120.0070.00320.86
8.3.110.0150.00622.58
8.3.100.0040.00422.58
8.3.90.0040.00422.58
8.3.50.0050.00322.58
8.2.290.0120.00720.45
8.2.280.0130.00618.55
8.2.270.0130.00717.04
8.2.260.0140.00416.64
8.2.250.0080.00016.57
8.2.240.0060.00318.95
8.2.230.0130.00322.58
8.2.220.0040.00422.58
8.2.210.0050.00322.58
8.1.330.0090.00321.71
8.1.320.0140.00516.13
8.1.310.0060.00316.34
8.1.300.0130.00620.30
8.1.60.0050.00517.47
8.1.50.0040.00417.41
8.1.40.0140.00017.35
8.1.30.0160.00317.56
8.1.20.0140.00317.58
8.1.10.0120.00617.36
8.1.00.0150.00217.44
8.0.190.0100.00316.83
8.0.180.0090.00316.86
8.0.170.0100.00016.82
8.0.160.0030.00616.74
8.0.150.0000.00916.72
8.0.140.0070.00316.76
8.0.130.0100.00316.67
8.0.120.0070.00716.84
8.0.110.0090.00316.78
8.0.100.0070.00716.67
8.0.90.0110.00016.88
8.0.80.0150.00016.85
8.0.70.0140.00016.80
8.0.60.0120.00416.72
8.0.50.0120.00316.68
8.0.30.0100.00516.70
8.0.20.0100.00516.81
8.0.10.0110.00516.71
7.4.290.0060.00916.35
7.4.280.0070.01016.22
7.4.270.0150.00016.38
7.4.260.0140.00516.41
7.4.250.0140.00516.38
7.4.240.0130.00316.22
7.4.230.0180.00016.36
7.4.220.0110.00516.44
7.4.210.0110.00416.34
7.4.200.0060.00816.24
7.4.190.0030.00616.22
7.4.180.0120.00316.31
7.4.160.0120.00416.48
7.4.150.0070.00716.14
7.4.140.0060.00616.27
7.4.130.0060.01016.21
7.4.120.0120.00316.29
7.4.110.0090.00516.20
7.4.100.0060.00016.21
7.4.90.0120.00016.02
7.4.80.0050.00516.21
7.4.70.0000.01216.25
7.4.60.0060.00616.21
7.4.50.0070.00416.13
7.4.40.0100.00316.07
7.4.30.0140.00016.16
7.4.20.0110.00316.18
7.4.10.0120.00316.26
7.4.00.0140.00016.20

preferences:
26.71 ms | 403 KiB | 5 Q