3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_var = str_repeat("A",$my_var[0]->errormsg = "xyz"); var_dump($my_var); ?>
based on Kd09H
Output for 7.0.0 - 7.1.0
Warning: Creating default object from empty value in /in/9Sico on line 2 Warning: str_repeat() expects parameter 2 to be integer, string given in /in/9Sico on line 2 NULL
Output for 5.4.0 - 5.6.28
Warning: Creating default object from empty value in /in/9Sico on line 2 Warning: str_repeat() expects parameter 2 to be long, string given in /in/9Sico on line 2 NULL
Output for 5.3.0 - 5.3.29
Strict Standards: Creating default object from empty value in /in/9Sico on line 2 Warning: str_repeat() expects parameter 2 to be long, string given in /in/9Sico on line 2 NULL
Output for 5.0.0 - 5.2.17
Strict Standards: Creating default object from empty value in /in/9Sico on line 2 string(0) ""
Output for 4.3.0 - 4.4.9
string(0) ""