3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "5.6.15"; $two_pow_64 = pow(2,64); echo (int) INF,"\n"; echo (int) $two_pow_64,"\n"; echo ((int) INF) % 2, "\n"; @echo ((int) INF) / ((int) $two_pow_64); try { echo intdiv((int) INF), ((int) $two_pow_64); } catch (Error $e) { echo $e->getMessage(); } try { echo ((int) INF) % ((int) $two_pow_64); } catch (Error $e) { echo $e->getMessage(); }

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.6.160.0000.04320.43
5.6.150.0030.08718.29
5.6.140.0100.03718.18
5.6.130.0100.06018.24
5.6.120.0070.06321.03
5.6.110.0100.08021.04
5.6.100.0070.08321.11
5.6.90.0070.07720.96
5.6.80.0170.06020.38
5.5.300.0070.07717.95
5.5.290.0000.05317.94
5.5.280.0070.08020.87
5.5.270.0000.04320.79
5.5.260.0130.06020.63
5.5.250.0170.05320.65
5.5.240.0200.07320.15

preferences:
140.47 ms | 1394 KiB | 7 Q