3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $object = array('abc' => 'ppp', 'ab' => 'pp'); foreach ( $object AS $key => $value ) { if ( $key == "abc" ) { unset( $object{ $key } ); } } print_r($object);
Output for 4.3.0 - 7.2.0
Array ( [ab] => pp )