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.0270.06720.47
5.6.150.0130.07318.18
5.6.140.0130.06018.16
5.6.130.0070.04318.27
5.6.120.0000.05320.90
5.6.110.0030.08320.99
5.6.100.0070.08321.13
5.6.90.0130.07020.95
5.6.80.0030.06320.38
5.5.300.0070.08318.09
5.5.290.0070.05718.07
5.5.280.0100.08020.80
5.5.270.0030.04020.77
5.5.260.0100.04720.76
5.5.250.0070.05320.44
5.5.240.0230.07020.23

preferences:
141.62 ms | 1394 KiB | 7 Q