3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = null; echo serialize(['brand_user_id' => 123, 'last_login_dt' => $foo ? $foo->format('Y-m-d') : null]); print_r(unserialize('a:2:{s:13:"brand_user_id";i:123;s:13:"last_login_dt";N;}'));
based on 9VJFe
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
a:2:{s:13:"brand_user_id";i:123;s:13:"last_login_dt";N;}Array ( [brand_user_id] => 123 [last_login_dt] => )