3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __operadorConfig($id_operador) { $config_oper = [1 => ['name' => 'MOVISTAR', 'code' => 2013], 3 => ['name' => 'CLARO', 'code' => 2012], 4 => ['name' => 'CNT', 'code' => 2014]]; return $config_oper[$id_operador]; } var_dump(__operadorConfir(1));
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function __operadorConfir() in /in/VutIl:11 Stack trace: #0 {main} thrown in /in/VutIl on line 11
Process exited with code 255.
Output for 5.4.12 - 5.6.28
Fatal error: Call to undefined function __operadorConfir() in /in/VutIl on line 11
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/VutIl on line 5
Process exited with code 255.