3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo PHP_VERSION; namespace MyProject { const CONNECT_OK = 1; class Connection { static public function start() { echo 'started'; } } function connect() { /* ... */ } } namespace { // global code session_start(); $a = MyProject\connect(); echo MyProject\Connection::start(); }

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.80.0130.04311.97
5.4.70.0090.04211.96
5.4.60.0090.04511.96
5.4.50.0110.04911.96
5.4.40.0120.04711.95
5.4.30.0120.05511.95
5.4.20.0140.04311.95
5.4.10.0110.04411.95
5.4.00.0100.04411.44
5.3.180.0130.05012.67
5.3.170.0150.06112.67
5.3.160.0110.04312.68
5.3.150.0090.04612.67
5.3.140.0180.05212.66
5.3.130.0090.04812.66
5.3.120.0110.04512.66
5.3.110.0110.04812.66
5.3.100.0120.04312.12
5.3.90.0160.05212.08
5.3.80.0100.04712.07
5.3.70.0120.04112.08
5.3.60.0150.04012.07
5.3.50.0100.04412.00
5.3.40.0130.04312.00
5.3.30.0100.04311.94
5.3.20.0130.03911.72
5.3.10.0150.03611.69
5.3.00.0090.04811.67

preferences:
137.81 ms | 1394 KiB | 7 Q