3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doWork(callable $f){ $f(); } class P { function test(){ echo 'parent'; } } class C extends P{ function register(){ doWork([$this, 'test']); } } (new C)->register();

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.0160.00919.73
8.4.150.0020.00014.05
8.4.140.0130.00917.52
8.4.130.0150.00317.68
8.4.120.0110.01120.37
8.4.110.0100.01022.15
8.4.100.0070.00418.58
8.4.90.0120.00718.68
8.4.80.0100.00920.49
8.4.70.0100.00918.12
8.4.60.0100.00618.92
8.4.50.0060.00718.57
8.4.40.0110.01117.38
8.4.30.0140.00420.77
8.4.20.0120.00920.23
8.4.10.0030.00619.39
8.3.280.0110.00918.12
8.3.270.0090.00916.48
8.3.260.0070.01216.33
8.3.250.0100.00819.04
8.3.240.0080.00820.69
8.3.230.0100.01016.52
8.3.220.0080.00918.73
8.3.210.0080.01016.39
8.3.200.0050.00316.29
8.3.190.0100.00616.85
8.3.180.0120.00617.22
8.3.170.0150.00418.89
8.3.160.0090.00017.24
8.3.150.0160.00317.36
8.3.140.0110.00720.39
8.3.130.0100.00018.36
8.3.120.0030.00620.67
8.3.110.0080.00020.94
8.3.100.0070.00724.06
8.3.90.0080.00026.77
8.3.80.0040.00418.31
8.3.70.0110.00318.30
8.3.60.0130.00316.43
8.3.50.0110.00616.69
8.3.40.0100.00321.98
8.3.30.0170.00722.96
8.3.20.0110.00722.96
8.3.10.0120.00622.96
8.3.00.0130.00722.96
8.2.290.0120.00520.61
8.2.280.0120.00718.26
8.2.270.0130.00617.19
8.2.260.0060.00316.45
8.2.250.0000.00818.54
8.2.240.0030.00617.20
8.2.230.0050.00322.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0060.00316.50
8.2.190.0160.00618.13
8.2.180.0120.00616.63
8.2.170.0090.00622.96
8.2.160.0090.00922.96
8.2.150.0110.00722.96
8.2.140.0030.01422.96
8.2.130.0100.01022.96
8.2.120.0180.00322.96
8.2.110.0030.01222.96
8.2.100.0110.00422.96
8.2.90.0140.00322.96
8.2.80.0070.00722.96
8.2.70.0140.00422.96
8.2.60.0150.00322.96
8.2.50.0110.00422.96
8.2.40.0040.01122.96
8.2.30.0120.00622.96
8.2.20.0140.00422.96
8.2.10.0120.00322.96
8.2.00.0060.00922.96
8.1.330.0120.00621.75
8.1.320.0110.00615.96
8.1.310.0040.00418.18
8.1.300.0060.00316.09
8.1.290.0000.00930.84
8.1.280.0100.00725.92
8.1.270.0110.00422.96
8.1.260.0100.00322.96
8.1.250.0130.00022.96
8.1.240.0150.00622.96
8.1.230.0140.00722.96
8.1.220.0080.00822.96
8.1.210.0160.00622.96
8.1.200.0140.00722.96
8.1.190.0110.01122.96
8.1.180.0060.00922.96
8.1.170.0110.00322.96
8.1.160.0070.01422.96
8.1.150.0100.00322.96
8.1.140.0110.01122.96
8.1.130.0110.01122.96
8.1.120.0100.01022.96
8.1.110.0090.00922.96
8.1.100.0040.01122.96
8.1.90.0070.01122.96
8.1.80.0070.01322.96
8.1.70.0110.00722.96
8.1.60.0070.01022.96
8.1.50.0090.00622.96
8.1.40.0090.00622.96
8.1.30.0110.00422.96
8.1.20.0040.01222.96
8.1.10.0070.00722.96
8.1.00.0110.00422.96

preferences:
31.85 ms | 403 KiB | 5 Q