3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public int a; public function inc() { $this->a++; } } $x = new a(); $a->a=0; a->inc(); echo $a->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.0100.07016.44
5.4.30.0030.04716.34
5.4.20.0100.07016.39
5.4.10.0130.07016.55
5.4.00.0030.04315.79
5.3.140.0070.05014.63
5.3.130.0070.08014.43
5.3.120.0130.07714.57
5.3.110.0130.04314.46
5.3.100.0000.04014.03
5.3.90.0030.06714.02
5.3.80.0030.04014.03
5.3.70.0070.03314.07
5.3.60.0070.06314.03
5.3.50.0030.05013.82
5.3.40.0030.04313.94
5.3.30.0070.07713.94
5.3.20.0100.07013.68
5.3.10.0130.06313.68
5.3.00.0000.07713.58

preferences:
141.38 ms | 1394 KiB | 7 Q