3v4l.org

run code in 300+ PHP versions simultaneously
<?php class chen{ function chen1($a,$b) { $c=$a*$b; echo $c; } } $xin=new chen() $xin->chen1(2,5);

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.0030.06716.65
5.4.100.0100.03016.64
5.4.90.0030.07016.46
5.4.80.0030.03716.42
5.4.70.0030.07316.48
5.4.60.0100.07316.30
5.4.50.0030.05716.39
5.4.40.0030.07316.45
5.4.30.0100.05316.44
5.4.20.0100.07716.41
5.4.10.0030.06716.34
5.4.00.0030.07715.82
5.3.210.0030.08014.60
5.3.200.0070.03714.67
5.3.190.0000.04714.64
5.3.180.0000.04714.63
5.3.170.0000.08314.60
5.3.160.0170.06714.78
5.3.150.0130.07014.61
5.3.140.0000.07714.54
5.3.130.0100.03314.50
5.3.120.0070.07314.59
5.3.110.0030.07714.57
5.3.100.0030.05014.04
5.3.90.0070.07313.86
5.3.80.0000.05014.03
5.3.70.0030.07314.00
5.3.60.0030.05014.20
5.3.50.0070.08013.93
5.3.40.0170.06013.99
5.3.30.0100.06713.98
5.3.20.0030.03713.75
5.3.10.0070.06713.70
5.3.00.0200.06013.84

preferences:
142.74 ms | 1394 KiB | 7 Q