3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $b = array( 'index.php' => array( 'relation' => "Start", 'relType' => "rel", 'attribs' => array(), ), 'foo' => array('bar') ); $c = array( 'index.php' => array( 'relation' => "Start", 'relType' => "rel", 'attribs' => array(), ), 'foo' => array('bar') ); $u = array_unique(array_merge($b,$c), SORT_REGULAR); //var_dump($u);
based on vHUAv
Output for 5.2.9 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.6
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.2.8
Warning: Wrong parameter count for array_unique() in /in/aqsrn on line 21
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/aqsrn on line 22
Process exited with code 255.