3v4l.org

run code in 300+ PHP versions simultaneously
<?php $command = array( 'sys_type' => 'PIS', 'list_type' => 'server_online', 'list_id' => 1234567, 'opcode' => 'recv', 'cksum' => strtoupper(md5('PIS'.'server_online1234567recv')), 'aop' => '', 'operation' => array('CHANGE_DNS'), 'dev_table' => 'server_info', 'attrs' => array('pis1'=>array( 'country' => 'China', 'area'=>'', 'city'=>'', 'wh'=>'TC', 'other'=>'', )), 'args' => array('pis1'=>array( 'id' => 333, 'rdtype' => 'a', 'unusual_chk' =>array('status'=>0), 'power' => 2, 'add' => array(array( 'domain'=>'pistest01.testing.vm.baidu.com.', 'ttl'=>3600, 'class'=>'in', 'rdata'=>'10.22.33.11', )), )), ); $return1=array( 'status'=>0, 'job_id' =>111, 'message'=> array( $sn=>array('status' =>0, 'message' =>'成功发送命令', 'uuid'=>123,), $sn=>array('status' =>1, 'message' =>'错误原因', 'uuid'=>'',) ) ) $return2=array('status'=>1,'message'=>'') print json_encode($command); print json_encode($return1); print json_encode($return2);
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '$return2' (T_VARIABLE) in /in/p2Vqi on line 44
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/p2Vqi on line 44
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_VARIABLE in /in/p2Vqi on line 44
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/p2Vqi on line 44
Process exited with code 255.

preferences:
217.4 ms | 1386 KiB | 117 Q