3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originalArray = [ [ 'entity_id' => '131813' ], [ 'entity_id' => '213808' ], [ 'entity_id' => '712885' ] ]; $newArray = []; foreach($originalArray AS $entity) { $newArray[] = $entity['entity_id']; } print_r($newArray);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
200.77 ms | 2130 KiB | 9 Q