3v4l.org

run code in 300+ PHP versions simultaneously
<?php magic = 1; function getFalse() { global $magic; $magic = 2; return false; } $a = false && getFalse(); var_dump($a); $b = true && getFalse(); var_dump($b);

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.0160.04411.97
5.4.30.0190.04311.96
5.4.20.0190.04111.96
5.4.10.0170.04411.96
5.4.00.0180.04411.46
5.3.140.0160.04912.66
5.3.130.0270.06012.66
5.3.120.0250.04212.66
5.3.110.0210.05512.66
5.3.100.0220.05712.12
5.3.90.0170.04912.08
5.3.80.0300.06412.07
5.3.70.0200.04512.07
5.3.60.0180.04812.06
5.3.50.0280.08212.00
5.3.40.0290.06412.00
5.3.30.0280.06511.94
5.3.20.0320.06811.73
5.3.10.0220.06811.68
5.3.00.0230.04911.67

preferences:
136.97 ms | 1394 KiB | 7 Q