3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ba = Array(false => 'false', true => 'true'); echo "\"1\" == 1: ".$ba["1" == 1]."\n"; echo "\"1\" === 1: ".$ba["1" === 1]."\n";
based on frKGM
Output for 4.3.2 - 7.2.0
"1" == 1: true "1" === 1: false
Output for 4.3.0 - 4.3.1
Notice: Undefined offset: 1 in /in/mVMLA on line 3 "1" == 1: Notice: Undefined offset: 0 in /in/mVMLA on line 4 "1" === 1: