3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'title' => 'Ireland - Wikipedia, the free encyclopedia', 'url' => 'http://example.com/wiki/Ireland' ], [ 'title' => 'Ireland\'s home for accommodation, activities.', 'url' => 'http://www.example.com/' ] ]; foreach ($array as &$row) { $row += ['score' => 0]; } var_export($array);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
148.56 ms | 1488 KiB | 9 Q