3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cond { public static function and (...) { // using an "and" or "or" as name currently fails // some logic here return $andCondition; } public static function or (...) { // some logic here return $orCondition; } } Cond::and($cond1, $cond2);

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)
7.0.00.0070.06020.15
5.6.160.0000.04720.48
5.6.150.0070.04318.19
5.6.140.0070.03718.27
5.6.130.0030.05018.15
5.6.120.0070.06021.14
5.6.110.0130.05020.97
5.6.100.0100.04321.10
5.6.90.0100.08720.96
5.6.80.0130.07020.37
5.5.300.0100.07717.98
5.5.290.0100.04017.98
5.5.280.0070.09020.76
5.5.270.0030.07720.97
5.5.260.0070.05320.64
5.5.250.0030.09020.54
5.5.240.0330.06320.14

preferences:
140.28 ms | 1398 KiB | 7 Q