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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.270.0100.05718.94
5.4.260.0100.05018.95
5.4.250.0100.07018.83
5.4.240.0170.04319.00
5.4.230.0100.05718.90
5.4.220.0170.05318.85
5.4.210.0070.05018.96
5.4.200.0030.06019.00
5.4.190.0200.06718.64
5.4.180.0200.04718.75
5.4.170.0070.05718.93
5.4.160.0100.07019.08
5.4.150.0170.04318.64
5.4.140.0100.05016.47
5.4.130.0030.05316.38
5.4.120.0070.07316.38
5.4.110.0130.06716.57
5.4.100.0130.04716.49
5.4.90.0100.05016.71
5.4.80.0070.06316.66
5.4.70.0100.04716.46
5.4.60.0130.05016.59
5.4.50.0100.07016.45
5.4.40.0070.04716.54
5.4.30.0130.04316.45
5.4.20.0130.04316.52
5.4.10.0130.05016.30
5.4.00.0100.04716.00
5.3.280.0070.07014.62
5.3.270.0100.06314.63
5.3.260.0200.05314.67
5.3.250.0170.04014.50
5.3.240.0170.05314.62
5.3.230.0030.05314.59
5.3.220.0070.07314.35
5.3.210.0170.04314.57
5.3.200.0100.04714.34
5.3.190.0170.04314.44
5.3.180.0070.05314.62
5.3.170.0100.04714.59
5.3.160.0100.07014.45
5.3.150.0230.04014.34
5.3.140.0070.05014.58
5.3.130.0100.05014.25
5.3.120.0070.05014.44
5.3.110.0130.07014.47
5.3.100.0070.05013.89
5.3.90.0170.04314.02
5.3.80.0100.04714.04
5.3.70.0170.05714.12
5.3.60.0100.05014.00
5.3.50.0170.04013.97
5.3.40.0030.05313.73
5.3.30.0130.04713.77
5.3.20.0130.04013.47
5.3.10.0130.04713.57
5.3.00.0130.05713.65
5.2.170.0070.04011.07
5.2.160.0070.04011.15
5.2.150.0100.05310.91
5.2.140.0070.05011.06
5.2.130.0100.03311.22
5.2.120.0030.04010.95
5.2.110.0030.05011.22
5.2.100.0100.04711.20
5.2.90.0100.05011.13
5.2.80.0070.05711.03
5.2.70.0100.03711.21
5.2.60.0100.03711.05
5.2.50.0200.04311.12
5.2.40.0030.04010.89
5.2.30.0100.05010.99
5.2.20.0070.03710.80
5.2.10.0100.03710.80
5.2.00.0070.03710.89
5.1.60.0100.02710.15
5.1.50.0030.0379.95
5.1.40.0170.03010.07
5.1.30.0130.04310.42
5.1.20.0030.04310.12
5.1.10.0070.04010.16
5.1.00.0070.03310.14
5.0.50.0030.0308.49
5.0.40.0100.0338.32
5.0.30.0000.0478.29
5.0.20.0030.0338.24
5.0.10.0030.0278.26
5.0.00.0030.0508.15
4.4.90.0030.0206.58
4.4.80.0070.0336.58
4.4.70.0030.0276.58
4.4.60.0030.0306.58
4.4.50.0030.0276.58
4.4.40.0070.0376.58
4.4.30.0000.0236.58
4.4.20.0000.0236.58
4.4.10.0000.0336.59
4.4.00.0030.0376.59
4.3.110.0000.0276.59
4.3.100.0030.0206.59
4.3.90.0070.0176.59
4.3.80.0030.0336.58
4.3.70.0000.0306.58
4.3.60.0030.0206.58
4.3.50.0130.0206.58
4.3.40.0100.0276.58
4.3.30.0000.0236.58
4.3.20.0070.0176.59
4.3.10.0070.0176.59
4.3.00.0000.0236.95

preferences:
166 ms | 1394 KiB | 7 Q