3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(0 => "5"); $b = array(4294967296 => "5"); var_dump([0 => 0] === [0x100000000 => 0]); var_dump($a === $b);
based on ZhS3e
Output for 5.4.44 - 5.4.45, 5.5.27 - 5.5.35, 5.6.11 - 7.2.0
bool(false) bool(false)
Output for 5.4.11 - 5.4.43, 5.5.24 - 5.5.26, 5.6.8 - 5.6.10
bool(true) bool(true)
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/5memU on line 6
Process exited with code 255.