3v4l.org

run code in 300+ PHP versions simultaneously
<?php class aaa{ const $a=5; public $b; function add($b) { $c=$this->a+$b; echo $c; } } $zzz=new aaa(); $zzz->add(234);

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.110.0070.06716.54
5.4.100.0100.06016.67
5.4.90.0170.06316.50
5.4.80.0100.06316.28
5.4.70.0100.05716.26
5.4.60.0030.05316.39
5.4.50.0230.04316.38
5.4.40.0030.05016.44
5.4.30.0030.07716.40
5.4.20.0070.04316.35
5.4.10.0070.07316.43
5.4.00.0030.03715.86
5.3.210.0030.04014.59
5.3.200.0130.06714.60
5.3.190.0170.06314.62
5.3.180.0000.05714.52
5.3.170.0030.05314.61
5.3.160.0070.03714.70
5.3.150.0030.04014.59
5.3.140.0130.06714.59
5.3.130.0030.06714.54
5.3.120.0000.08314.70
5.3.110.0070.03714.58
5.3.100.0030.06714.09
5.3.90.0130.06714.02
5.3.80.0000.08014.08
5.3.70.0100.06014.04
5.3.60.0030.08014.00
5.3.50.0130.06713.90
5.3.40.0030.05014.10
5.3.30.0100.07013.85
5.3.20.0030.07313.84
5.3.10.0000.05313.68
5.3.00.0070.05713.57

preferences:
136.25 ms | 1386 KiB | 7 Q