3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array ( array ( 'id' => 11, 'parametername' => '参数名称11' ) ); $b = array ( array ( 'id' => 6, 'parametername' => '参数名称6' ), array ( 'id' => 10, 'parametername' => '参数名称10' ), array ( 'id' => 11, 'parametername' => '参数名称11' ), array ( 'id' => 15, 'parametername' => '参数编辑' ), array ( 'id' => 16, 'parametername' => '参数20' ) ); var_dump( array_diff($a, $b) );
based on S48EG
Output for 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 array(0) { }
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 Notice: Array to string conversion in /in/m8jB1 on line 11 array(0) { }
Output for 4.3.0 - 5.3.29
array(0) { }