3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $job = 'set_option'; $class = 'Timely_Gearman_Worker_' . implode( '_', array_map( explode( '_', $job ), 'ucfirst' ) ); var_dump( $class );
Output for 7.0.0 - 7.1.0
Warning: array_map() expects parameter 1 to be a valid callback, class 'set' not found in /in/cteF2 on line 6 Warning: implode(): Invalid arguments passed in /in/cteF2 on line 6 string(22) "Timely_Gearman_Worker_"
Output for 5.3.0 - 5.6.28
Warning: array_map() expects parameter 1 to be a valid callback, class 'set' not found in /in/cteF2 on line 6 Warning: implode(): Invalid arguments passed in /in/cteF2 on line 7 string(22) "Timely_Gearman_Worker_"
Output for 5.2.5 - 5.2.17
Warning: array_map(): The first argument, 'set::option', should be either NULL or a valid callback in /in/cteF2 on line 6 Warning: implode(): Invalid arguments passed in /in/cteF2 on line 7 string(22) "Timely_Gearman_Worker_"
Output for 4.3.2 - 5.2.4
Warning: array_map(): The first argument, 'set::option', should be either NULL or a valid callback in /in/cteF2 on line 6 Warning: implode(): Bad arguments. in /in/cteF2 on line 7 string(22) "Timely_Gearman_Worker_"
Output for 4.3.0 - 4.3.1
Warning: array_map() [http://www.php.net/function.array-map]: The first argument, 'set::option', should be either NULL or a valid callback in /in/cteF2 on line 6 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/cteF2 on line 7 string(22) "Timely_Gearman_Worker_"