3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function __destruct() { echo "a dtor\n"; } } class B { function __destruct() { echo "b dtor\n"; } function doSomething() { echo "b still alive\n"; } $a = new A; $b = new B;

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.0100.04512.02
5.4.70.0100.04412.02
5.4.60.0130.04512.02
5.4.50.0120.04712.02
5.4.40.0190.05512.01
5.4.30.0080.04512.00
5.4.20.0110.04212.00
5.4.10.0090.04412.00
5.4.00.0090.04511.50
5.3.180.0100.05812.67
5.3.170.0090.05812.67
5.3.160.0150.05712.67
5.3.150.0100.04612.67
5.3.140.0200.05712.66
5.3.130.0120.05512.66
5.3.120.0120.04812.66
5.3.110.0110.04712.66
5.3.100.0130.05312.12
5.3.90.0130.05812.11
5.3.80.0150.04712.10
5.3.70.0110.04512.09
5.3.60.0130.04412.08
5.3.50.0100.04612.03
5.3.40.0110.04412.03
5.3.30.0100.04711.98
5.3.20.0130.04111.76
5.3.10.0090.04611.73
5.3.00.0110.04311.72

preferences:
138.41 ms | 1394 KiB | 7 Q