3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $settings = Array( Array ( 'setting_id' => 1, 'setting_title' => 'application_title', 'setting_value' => 'My Website', ), Array( 'setting_id' => 2, 'setting_title' => 'application_theme', 'setting_value' => 'default', ) ); $setting = array_column($settings, 'setting_value', 'setting_title'); echo $setting['application_title'], "\n"; echo $setting['application_theme'], "\n";
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
My Website default
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/E8DE3 on line 17
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_column() in /in/E8DE3 on line 17
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_column() in /in/E8DE3 on line 17
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_column() in /in/E8DE3 on line 17