3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __call($name, $args){ echo "__call " . $name . PHP_EOL; } public static function __callStatic($name, $args) { echo "__callStatic " . $name . PHP_EOL; } function make_call() { $this->bob(); } function ted() { echo ":: doesn't always mean static" . PHP_EOL; } public static function ted() { echo "I know I should be static". PHP_EOL; } function make_call_static() { $this::ted(); } } $x = new foo(); $x->jim(); $x->make_call(); $x->make_call_static(); foo::sam();

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)
5.4.70.0180.04411.99
5.4.60.0320.06411.99
5.4.50.0190.04811.99
5.4.40.0370.07511.99
5.4.30.0320.04611.98
5.4.20.0260.05711.98
5.4.10.0210.05311.98
5.4.00.0220.04611.47
5.3.170.0270.07312.67
5.3.160.0380.06812.67
5.3.150.0210.04712.68
5.3.140.0260.07112.66
5.3.130.0200.04912.66
5.3.120.0400.08712.66
5.3.110.0300.06712.66
5.3.100.0210.04612.12
5.3.90.0230.05712.11
5.3.80.0220.04412.10
5.3.70.0260.05012.10
5.3.60.0260.07112.08
5.3.50.0270.04412.02
5.3.40.0190.04612.02
5.3.30.0320.04811.99
5.3.20.0260.05911.77
5.3.10.0290.06711.74
5.3.00.0200.05011.72

preferences:
139.98 ms | 1386 KiB | 7 Q