3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $user = new \StdClass; $user->name="Daria"; $user->date_birth="15/12/1993"; $user->city="Odessa"; $user->country="Ukraine"; $user->height="172"; $user->weight="52"; $user->body_type="Slim"; $user->education="College"; $user->occupation="student"; $user->drinking="Occasionally"; $user->smoking="Never"; $user->color_eye="Green"; $user->color_hair="Light-Brown"; $user->marital_status="Never married"; $user->count_children="0"; $user->eng_level="Intermediate"; $user->other_langs=""; $user->religion="Christianity"; $user->looking_for="I am looking for serious relationship here. I believe that friendship is a good base for relationship. I miss a positive, kind, romantic, faithful, honest and caring man next to me. It is very important for me to have similar outlook with my loving man and to share the same values."; $user->description="I'm a sunshine girl. I have a very active lifestyle. I prefer healthy life. I'm a very unpredictable person in a good way course! I like to make presents and look to reaction. I like to try new things and travel a lot. I m sure that I will be a good and lovely mother as I love kids very much!"; foreach ($user as $key => $value) { var_dump([$key => $vlaue]); }
Output for 5.5.0 - 7.1.0
Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["name"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["date_birth"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["city"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["country"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["height"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["weight"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["body_type"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["education"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["occupation"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["drinking"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["smoking"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["color_eye"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["color_hair"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["marital_status"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["count_children"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["eng_level"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["other_langs"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["religion"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["looking_for"]=> NULL } Notice: Undefined variable: vlaue in /in/Fc3XK on line 26 array(1) { ["description"]=> NULL }
Output for 5.4.0 - 5.4.45
array(1) { ["name"]=> NULL } array(1) { ["date_birth"]=> NULL } array(1) { ["city"]=> NULL } array(1) { ["country"]=> NULL } array(1) { ["height"]=> NULL } array(1) { ["weight"]=> NULL } array(1) { ["body_type"]=> NULL } array(1) { ["education"]=> NULL } array(1) { ["occupation"]=> NULL } array(1) { ["drinking"]=> NULL } array(1) { ["smoking"]=> NULL } array(1) { ["color_eye"]=> NULL } array(1) { ["color_hair"]=> NULL } array(1) { ["marital_status"]=> NULL } array(1) { ["count_children"]=> NULL } array(1) { ["eng_level"]=> NULL } array(1) { ["other_langs"]=> NULL } array(1) { ["religion"]=> NULL } array(1) { ["looking_for"]=> NULL } array(1) { ["description"]=> NULL }
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/Fc3XK on line 26
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/Fc3XK on line 3 Parse error: syntax error, unexpected '[', expecting ')' in /in/Fc3XK on line 26
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.2
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/Fc3XK</b> on line <b>3</b><br /> <br /> <b>Parse error</b>: syntax error, unexpected '[', expecting ')' in <b>/in/Fc3XK</b> on line <b>26</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/Fc3XK</b> on line <b>3</b><br /> <br /> <b>Parse error</b>: parse error, unexpected '[', expecting ')' in <b>/in/Fc3XK</b> on line <b>26</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1 in <b>/in/Fc3XK</b> on line <b>3</b><br /> <br /> <b>Parse error</b>: parse error, expecting `')'' in <b>/in/Fc3XK</b> on line <b>26</b><br />
Process exited with code 255.