3v4l.org

run code in 300+ PHP versions simultaneously
<?php $payload = new stdClass(); $android = new stdClass(); $android->title = "test cafe" $android->payload = array( ['$state'] => "base.messages" ); $ios = new stdClass(); $ios->title = $title; $ios->payload = array( ['$state'] => "base.messages" ); $notification = new stdClass(); $notification->alert = "title"; $notification->android = $android; $notification->ios = $ios; $data = array( "user_ids" => $userArray, "notification" => $notification );
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '$android' (T_VARIABLE) in /in/nq0vS on line 6
Process exited with code 255.

preferences:
159.44 ms | 1400 KiB | 25 Q