3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file_link = array( '#theme' => 'file_link', '#file' => 'blah.html', ); $element['file'] = $file_link =+ array('#weight' => -10); var_dump($element); //$element['file'] = $file_link += array('#weight' => -10); var_dump($element);
based on 7USoN
Output for 4.3.2 - 5.4.31
Fatal error: Unsupported operand types in /in/odMlf on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Unsupported operand types in /in/odMlf on line 6