3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $authors = array('Johnny', 'Jim', 'Jack'); $data = array(); for ($id=0; $id<10; $id++) { $data[$id] = array( 'id' => $id, 'title' => 'Title', 'source' => 'Source', 'year' => '2013', 'type' => 'Type', 'authors' => implode(', ', $authors) ); }
Output for 4.3.0 - 7.1.0