3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (array('1' => '1') as $k => $v) { if ($k === $v) { echo (null < -1 ? 'php' : null) . "\n"; } else { var_dump($k, $v); } }
Output for 4.3.0 - 7.2.0
int(1) string(1) "1"