3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = 1; $id = 0; $x = ($id == true) || (($data['created'] = $now) == true); var_dump($x, $data); $id = 1; $now = 2; $x = ($id == true) || (($data['created'] = $now) == true); var_dump($x, $data);
Output for 4.3.0 - 7.3.0rc6
bool(true) array(1) { ["created"]=> int(1) } bool(true) array(1) { ["created"]=> int(1) }