3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('Amit ', 'Juneja ', ' Amit'); $b = array_map('strtolower',$a); $b = array_map('ltrim',$b); $b = array_map('rtrim',$b); $c = array('gupta','amit'); $d = array_intersect($b,$c); count($d);
based on XvPMQ
Output for 4.3.0 - 7.2.0