3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $uploadSize = filesize('http://bcscdn.baidu.com/resource/fFhO6IgRBIAYBUAY9VCLuUC3ZW0iBQRYZkhw9UAYBm8I0W0iBUsqZ1RenFvkrUkbZcXRfFSvrUCRZIVqZWhSBIC.jpg'); var_dump($uploadSize); $fields = array( 1 => 'xxxxxxx', 'title' => "标题", 'brand' => "品牌", 'price' => "销售价格", 'unit' => "单位", 'tec' => "参数", 'content_url' => "物料url", 'navbar' => "原分类", ); var_dump($fields['1']); $rets = array(array('铝合金伸缩梯','国标制式',943,'架','http://www.ehsy.com/show.php?contentid=8127219','首页 > 物料搬运、存储、包材 > 登高作业 > 登高梯 > 铝合金伸缩梯>铝合金伸缩梯,2.7~4m 150kg')); $rets = array_merge(array_values($fields), $rets); print_r($rets); $desc = explode('_', '械设备_通用机械设备_电动机/电机_小功率电动机'); unset($desc[0]); print_r($desc );
based on XQDeV
Output for 5.0.0 - 7.2.6
Warning: filesize(): stat failed for http://bcscdn.baidu.com/resource/fFhO6IgRBIAYBUAY9VCLuUC3ZW0iBQRYZkhw9UAYBm8I0W0iBUsqZ1RenFvkrUkbZcXRfFSvrUCRZIVqZWhSBIC.jpg in /in/e3gH4 on line 3 bool(false) string(7) "xxxxxxx" Array ( [0] => xxxxxxx [1] => 标题 [2] => 品牌 [3] => 销售价格 [4] => 单位 [5] => 参数 [6] => 物料url [7] => 原分类 [8] => Array ( [0] => 铝合金伸缩梯 [1] => 国标制式 [2] => 943 [3] => 架 [4] => http://www.ehsy.com/show.php?contentid=8127219 [5] => 首页 > 物料搬运、存储、包材 > 登高作业 > 登高梯 > 铝合金伸缩梯>铝合金伸缩梯,2.7~4m 150kg ) ) Array ( [1] => 通用机械设备 [2] => 电动机/电机 [3] => 小功率电动机 )
Output for 4.3.2 - 4.4.9
Warning: filesize(): Stat failed for http://bcscdn.baidu.com/resource/fFhO6IgRBIAYBUAY9VCLuUC3ZW0iBQRYZkhw9UAYBm8I0W0iBUsqZ1RenFvkrUkbZcXRfFSvrUCRZIVqZWhSBIC.jpg (errno=2 - No such file or directory) in /in/e3gH4 on line 3 bool(false) string(7) "xxxxxxx" Array ( [0] => xxxxxxx [1] => 标题 [2] => 品牌 [3] => 销售价格 [4] => 单位 [5] => 参数 [6] => 物料url [7] => 原分类 [8] => Array ( [0] => 铝合金伸缩梯 [1] => 国标制式 [2] => 943 [3] => 架 [4] => http://www.ehsy.com/show.php?contentid=8127219 [5] => 首页 > 物料搬运、存储、包材 > 登高作业 > 登高梯 > 铝合金伸缩梯>铝合金伸缩梯,2.7~4m 150kg ) ) Array ( [1] => 通用机械设备 [2] => 电动机/电机 [3] => 小功率电动机 )
Output for 4.3.0 - 4.3.1
Warning: filesize() [http://www.php.net/function.filesize]: Stat failed for http://bcscdn.baidu.com/resource/fFhO6IgRBIAYBUAY9VCLuUC3ZW0iBQRYZkhw9UAYBm8I0W0iBUsqZ1RenFvkrUkbZcXRfFSvrUCRZIVqZWhSBIC.jpg (errno=2 - No such file or directory) in /in/e3gH4 on line 3 bool(false) string(7) "xxxxxxx" Array ( [0] => xxxxxxx [1] => 标题 [2] => 品牌 [3] => 销售价格 [4] => 单位 [5] => 参数 [6] => 物料url [7] => 原分类 [8] => Array ( [0] => 铝合金伸缩梯 [1] => 国标制式 [2] => 943 [3] => 架 [4] => http://www.ehsy.com/show.php?contentid=8127219 [5] => 首页 > 物料搬运、存储、包材 > 登高作业 > 登高梯 > 铝合金伸缩梯>铝合金伸缩梯,2.7~4m 150kg ) ) Array ( [1] => 通用机械设备 [2] => 电动机/电机 [3] => 小功率电动机 )