3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $prices = array( 0 => '1300990', 'tt' => '500', 2 => '600' ); foreach($prices as $key => $price){ echo current($prices) . ' - ' ; }
based on qMe8H
Output for 4.3.0 - 4.4.0, 4.4.2 - 5.2.3, 7.0.0 - 7.2.0
1300990 - 1300990 - 1300990 -
Output for 5.2.4 - 5.6.28
500 - 500 - 500 -
Output for 4.4.1
500 - 600 - -