3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( array('mopo_1' => 'honta', 'hinta' => 200, 'mopo_2' => 'jamaha', 'hinta' => 320), array('mopo_1' => 'tunturi', 'hinta' => 180, 'mopo_3' => 'susuki', 'hinta' => 310), array('mopo_1' => 'manki', 'hinta' => 240, 'mopo_2' => 'peevee', 'hinta' => 1209) ); $key = array_search('1', array_column($array, 'hinta')); echo 'mopot: '; print_r($key);
based on cTST7
Output for 5.5.24 - 7.2.0
mopot:
Output for 5.3.19 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/29uXH on line 9
Process exited with code 255.