3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["name"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["date_birth"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["city"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["country"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["height"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["weight"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["body_type"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["education"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["occupation"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["drinking"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["smoking"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["color_eye"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["color_hair"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["marital_status"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["count_children"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["eng_level"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["other_langs"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["religion"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["looking_for"]=> NULL } Warning: Undefined variable $vlaue in /in/Fc3XK on line 26 array(1) { ["description"]=> NULL }
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
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, 7.3.32 - 7.3.33, 7.4.26
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.1.6, 5.2.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.3.11, 4.4.0 - 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.

preferences:
302.93 ms | 402 KiB | 373 Q