3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function x() { if (is_callable(array($this, "y"))) $this::y(); if (is_callable(static::y(...))) static::y(); } } class B extends A { public function y() {} } (new B())->x();

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.0120.00822.34
8.4.110.0110.00919.00
8.4.100.0060.00317.61
8.4.90.0120.00917.72
8.4.80.0030.00517.93
8.4.70.0080.01117.86
8.4.60.0100.00820.55
8.4.50.0100.01117.55
8.4.40.0060.00317.61
8.4.30.0130.00720.12
8.4.20.0100.00019.64
8.4.10.0100.00619.43
8.3.250.0120.00618.77
8.3.240.0120.00618.82
8.3.230.0120.00816.46
8.3.220.0050.00416.34
8.3.210.0090.01016.50
8.3.200.0060.00316.55
8.3.190.0090.00517.00
8.3.180.0080.01118.17
8.3.170.0070.01118.71
8.3.160.0120.00018.05
8.3.150.0070.01120.86
8.3.140.0000.01116.63
8.3.130.0130.00318.25
8.3.120.0110.00718.96
8.3.110.0060.00318.21
8.3.100.0090.00018.04
8.3.50.0060.00318.43
8.2.290.0100.01120.19
8.2.280.0060.00218.45
8.2.270.0090.00617.16
8.2.260.0140.00018.18
8.2.250.0060.00316.71
8.2.240.0000.00817.21
8.2.230.0050.00518.38
8.2.220.0000.00716.34
8.1.330.0120.00716.73
8.1.320.0110.00815.74
8.1.310.0080.00016.55
8.1.300.0090.00918.53
8.0.120.0090.00016.80
8.0.110.0030.00516.75
8.0.100.0010.00616.79
8.0.90.0000.00816.77
8.0.80.0010.00616.81
8.0.70.0040.00416.73
8.0.60.0060.00316.73
8.0.50.0020.00616.75
8.0.30.0050.00216.79
8.0.20.0040.00416.95
8.0.10.0040.00416.82
8.0.00.0060.00116.89
7.4.250.0020.00616.36
7.4.240.0020.00616.38
7.4.230.0030.00416.37
7.4.220.0040.00416.42
7.4.210.0040.00316.32
7.4.200.0040.00316.33
7.4.190.0050.00216.38
7.4.180.0000.00716.36
7.4.160.0030.00416.40
7.4.150.0030.00516.36
7.4.140.0060.00216.27
7.4.130.0030.00516.24
7.4.120.0050.00216.20
7.4.110.0040.00316.15
7.4.100.0060.00216.22
7.4.90.0020.00616.17
7.4.80.0050.00216.10
7.4.70.0040.00316.25
7.4.60.0070.00116.18
7.4.50.0060.00316.08
7.4.40.0070.00216.08
7.4.30.0020.00616.25
7.4.20.0040.00416.25
7.4.10.0040.00416.15
7.4.00.0030.00616.27
7.3.310.0040.00416.22
7.3.300.0040.00516.11
7.3.290.0030.00616.20
7.3.280.0020.00616.19
7.3.270.0030.00316.13
7.3.260.0050.00316.08
7.3.250.0040.00416.08
7.3.240.0020.00516.07
7.3.230.0020.00616.04
7.3.220.0020.00616.13
7.3.210.0040.00416.01
7.3.200.0060.00116.06
7.3.190.0040.00415.94
7.3.180.0040.00416.08
7.3.170.0040.00416.02
7.3.160.0040.00416.10
7.3.150.0040.00416.09
7.3.140.0020.00516.06
7.3.130.0030.00316.18
7.3.120.0040.00316.11
7.3.110.0060.00116.05
7.3.100.0030.00415.87
7.3.90.0010.00716.24
7.3.80.0070.00016.02
7.3.70.0020.00515.98
7.3.60.0050.00316.16
7.3.50.0060.00316.17
7.3.40.0040.00316.21
7.3.30.0030.00516.12
7.3.20.0060.00816.32
7.3.10.0040.00416.15
7.3.00.0000.00816.18

preferences:
27.23 ms | 403 KiB | 5 Q