3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Вывод:\r\n"; for ($i = 0; $i <= 100; $i++) { if (is_int($i / 3) && is_int(is_int($i /5)) { echo 'AB'; continue; } if (is_int($i / 3)) { echo 'A'; continue; } if (is_int($i / 5)) { echo 'B'; continue; } echo $i . ' '; echo 'Конец вывода'; }

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.20.0300.07720.16
7.0.10.0030.05720.09
7.0.00.0070.08720.19
5.6.170.0130.04020.52
5.6.160.0030.09020.55
5.6.150.0130.04018.19
5.6.140.0100.08018.21
5.6.130.0100.07318.18
5.6.120.0030.04721.13
5.6.110.0070.04020.98
5.6.100.0130.06321.03
5.6.90.0100.08320.96
5.6.80.0070.07320.35
5.5.310.0430.06720.51
5.5.300.0130.04718.03
5.5.290.0030.05717.92
5.5.280.0130.08020.87
5.5.270.0030.04020.87
5.5.260.0100.03720.86
5.5.250.0100.03320.62
5.5.240.0230.07720.18

preferences:
140.57 ms | 1394 KiB | 7 Q