3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static public function a() { return 1; } static public function geta() { return static::a(); } } class B extends A { static public function a() { return 2; } } echo B::geta();

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.40.0120.00618.54
8.3.30.0120.00318.54
8.3.20.0000.00818.53
8.3.10.0040.00420.84
8.3.00.0030.00519.56
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00421.05
8.2.110.0030.00622.20
8.2.100.0030.00718.84
8.1.270.0050.00323.99
8.1.260.0060.00926.35
8.1.250.0000.00728.09
8.1.240.0060.00318.50
8.1.230.0100.00018.36
5.4.140.0110.04612.06
5.4.130.0100.04112.05
5.4.120.0110.04012.00
5.4.110.0090.04212.00
5.4.100.0090.04212.00
5.4.90.0150.04912.00
5.4.80.0090.04312.00
5.4.70.0090.04212.00
5.4.60.0090.04112.00
5.4.50.0120.03812.00
5.4.40.0080.04611.98
5.4.30.0120.03911.98
5.4.20.0070.04411.98
5.4.10.0090.04311.98
5.4.00.0100.05111.47
5.3.240.0100.04212.72
5.3.230.0100.04512.71
5.3.220.0110.04312.68
5.3.210.0170.05912.68
5.3.200.0090.04312.68
5.3.190.0100.04212.67
5.3.180.0090.04512.67
5.3.170.0090.04112.67
5.3.160.0130.04812.68
5.3.150.0110.03912.67
5.3.140.0090.04212.66
5.3.130.0120.04612.66
5.3.120.0090.04412.66
5.3.110.0120.04012.66
5.3.100.0120.03912.12
5.3.90.0200.05112.09
5.3.80.0070.04112.09
5.3.70.0090.03912.08
5.3.60.0090.04312.07
5.3.50.0100.04112.02
5.3.40.0140.04612.01
5.3.30.0090.04111.98
5.3.20.0070.04111.75
5.3.10.0110.04211.72
5.3.00.0100.04211.70

preferences:
33.36 ms | 400 KiB | 5 Q