3v4l.org

run code in 300+ PHP versions simultaneously
<?php phpversion() >= "7.0.0beta1" or die(); $two_pow_64 = pow(2,64); echo "(int) INF: ",(int) INF,"\n"; echo "(int) $two_pow64", (int) $two_pow_64,"\n";
Output for 7.0.1 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
(int) INF: 0 Notice: Undefined variable: two_pow64 in /in/fq3jB on line 7 (int) 0
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0

preferences:
170.15 ms | 402 KiB | 193 Q