3v4l.org

run code in 150+ 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 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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: