3v4l.org

run code in 300+ PHP versions simultaneously
<?php class prueba { function __call($name) { $name = strtolower($name); return preg_replace_callback('/_([a-z])/', function(array $match) { return strtoupper($match[1]); }, $name); } } echo (new prueba)->__call($key = 'me_ApetEce_COMER_algo_jajjajaj');
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
Fatal error: Method prueba::__call() must take exactly 2 arguments in /in/aCaVv on line 7
Process exited with code 255.

preferences:
191.55 ms | 1395 KiB | 60 Q