3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function foo($a = 1) { echo __METHOD__;} static function bar($a = 1) { echo __METHOD__;} } $x = new x(); $x->foo(); // classic method call $x::bar(); // static method call on object X::bar(); // static method call on class name ?>

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.10.0350.00917.37
8.3.140.0360.00916.52
8.3.130.0340.00416.40
8.3.120.0280.00616.27
8.3.110.0290.00516.22
8.3.100.0300.00916.38
8.3.90.0340.00516.18
8.3.80.0340.00616.23
8.3.70.0320.00716.36
8.3.60.0290.00916.33
8.3.50.0340.00616.46
8.3.40.0300.00217.30
8.3.30.0210.00717.33
8.3.20.0320.00217.26
8.3.10.0260.01017.11
8.3.00.0120.00917.29
8.2.260.0270.00716.42
8.2.250.0280.00616.54
8.2.240.0230.00916.60
8.2.230.0230.01116.33
8.2.220.0260.00516.55
8.2.210.0240.00816.31
8.2.200.0200.00716.54
8.2.190.0210.00516.66
8.2.180.0230.00416.37
8.2.170.0270.00317.58
8.2.160.0270.00317.46
8.2.150.0300.00617.40
8.2.140.0280.00717.28
8.2.130.0290.00817.31
8.2.120.0280.00617.43
8.2.110.0280.00517.48
8.2.100.0280.00317.35
8.2.90.0260.00517.52
8.2.80.0260.00617.43
8.2.70.0270.00617.36
8.2.60.0280.00717.21
8.2.50.0280.00417.22
8.2.40.0250.00617.44
8.2.30.0240.00617.24
8.2.20.0190.01017.26
8.2.10.0250.00617.29
8.2.00.0240.00717.27
4.3.00.0010.00414.15

preferences:
34.79 ms | 403 KiB | 5 Q