3v4l.org

run code in 300+ PHP versions simultaneously
<?php class klas { public int a; public function inc() { $this->a++; } } $x = new klas(); $x->a=0; $x->inc(); echo $x->a; ?>

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.40.0070.07316.32
5.4.30.0130.06016.24
5.4.20.0000.04316.23
5.4.10.0000.07716.32
5.4.00.0100.03316.11
5.3.140.0030.04314.77
5.3.130.0000.08314.46
5.3.120.0000.07314.44
5.3.110.0030.03714.70
5.3.100.0000.05014.08
5.3.90.0100.03314.02
5.3.80.0000.04014.10
5.3.70.0000.03714.17
5.3.60.0000.04014.22
5.3.50.0000.03713.96
5.3.40.0000.04013.85
5.3.30.0030.03314.06
5.3.20.0000.03713.77
5.3.10.0000.03313.58
5.3.00.0000.05013.65

preferences:
159.9 ms | 1394 KiB | 7 Q