3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $client_pass = array(1); $server_pass = '1'; if ($client_pass == $server_pass) { print 'samezies 1'; } else { print 'not same 1'; } $server_pass = 'foo'; if ($client_pass == $server_pass) { print 'samezies foo'; } else { print 'not same foo'; } $client_pass = TRUE; if ($client_pass == $server_pass) { print 'samezies TRUE'; } else { print 'not same TRUE'; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
not same 1not same foosamezies TRUE