3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = array( array('Data 11', 'Data 12', 'Data 13', 'Data 14', 'Data 15'), array('Data 21', 'Data 22', 'Data 23', 'Data 24', 'Data 25'), array('Data 31', 'Data 32', 'Data 33', 'Data 34', 'Data 35'), array('Data 41', 'Data 42', 'Data 43', 'Data 44', 'Data 45'), array('Data 51', 'Data 52', 'Data 53', 'Data 54', 'Data 55') ); $data2 = array( array('Data 61', 'Data 62', 'Data 63', 'Data 64', 'Data 65'), array('Data 71', 'Data 72', 'Data 73', 'Data 74', 'Data 75'), array('Data 81', 'Data 82', 'Data 83', 'Data 84', 'Data 85'), array('Data 91', 'Data 92', 'Data 93', 'Data 94', 'Data 95'), array('Data 101', 'Data 102', 'Data 103', 'Data 104', 'Data 105') ); foreach ($data2 as $value) { $data[0][4] = $value } print_r($data);
based on BWB3i
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7
Parse error: syntax error, unexpected '}' in /in/gAb6e on line 21
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected '}' in /in/gAb6e:21 Stack trace: #0 {main}
Process exited with code 255.