3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( 0xefffffffffffffff ); var_dump( (int) 0xefffffffffffffff ); var_dump( (int) 0x8ffffffffffffffe ); var_dump( (int) 0x8ffffffffffffffd );
Output for 4.3.0 - 5.0.1, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
float(1.7293822569103E+19) int(-1152921504606846976) int(-8070450532247928832) int(-8070450532247928832)
Output for 5.0.2
float(1.7293822569103E+19) int(9223372036854775807) int(9223372036854775807) int(9223372036854775807)