3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = [ 'headers' => [ 'Authorization' => 'key=' . config('pushNotifications.provider_key'), ], 'json' => [ 'priority' => 'high', 'notification' => [ 'tag' => $data['id'], 'body' => $data['message'], 'sound' => 'default', 'icon' => 'fcm_push_icon', 'color' => '#71cc98', 'click_action' => 'FCM_PLUGIN_ACTIVITY', ], 'data' => [ 'post_id' => $data['target_id'], 'target_id' => $data['target_id'], 'target_type' => $data['target_type'], ], ], ]; var_dump(array_merge($data, ['json' => ['to' => $device->token]]);
based on PaGOv
Output for 7.0.0 - 7.0.12
Parse error: syntax error, unexpected ';', expecting ',' or ')' in /in/a02ad on line 25
Process exited with code 255.
Output for 5.6.0 - 5.6.27
Parse error: syntax error, unexpected ';' in /in/a02ad on line 25
Process exited with code 255.