3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function &myFunction() { $string = "MyString"; var_dump($string); return ($undefined); } for($i = 0; $i < 10; $i++) { $retval = myFunction(); }
Output for 5.1.0 - 7.1.0
string(8) "MyString" string(8) "MyString" string(8) "MyString" string(8) "MyString" string(8) "MyString" string(8) "MyString" string(8) "MyString" string(8) "MyString" string(8) "MyString" string(8) "MyString"
Output for 5.0.4 - 5.0.5
string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6
Output for 5.0.0 - 5.0.3
string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Strict Standards: Only variable references should be returned by reference in /in/Ovcnf on line 6
Output for 4.4.0 - 4.4.9
string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 Notice: Only variable references should be returned by reference in /in/Ovcnf on line 6
Output for 4.3.0 - 4.3.11
string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 string(8) "MyString" Notice: Undefined variable: undefined in /in/Ovcnf on line 6 NULL Notice: Undefined variable: undefined in /in/Ovcnf on line 6 NULL Notice: Undefined variable: undefined in /in/Ovcnf on line 6 NULL Notice: Undefined variable: undefined in /in/Ovcnf on line 6 NULL Notice: Undefined variable: undefined in /in/Ovcnf on line 6 NULL Notice: Undefined variable: undefined in /in/Ovcnf on line 6 NULL Notice: Undefined variable: undefined in /in/Ovcnf on line 6 NULL Notice: Undefined variable: undefined in /in/Ovcnf on line 6 NULL Notice: Undefined variable: undefined in /in/Ovcnf on line 6