3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function callStoredProc( $storedProc ) { $args = func_get_args(); $storedProc = array_shift( $args ); foreach ( $args as $i => $arg) $args[$i] = "'$arg'"; $argStr = implode( ',', $args ); echo "call ${storedProc}(${argStr})"; } callStoredProc( );
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function callStoredProc(), 0 passed in /in/vOjJD on line 15 and exactly 1 expected in /in/vOjJD:4 Stack trace: #0 /in/vOjJD(15): callStoredProc() #1 {main} thrown in /in/vOjJD on line 4
Process exited with code 255.
Output for 5.1.0 - 7.0.14
Warning: Missing argument 1 for callStoredProc(), called in /in/vOjJD on line 15 and defined in /in/vOjJD on line 4 call ()
Output for 5.0.0 - 5.0.5
Warning: Missing argument 1 for callStoredProc() in /in/vOjJD on line 4 call ()
Output for 4.3.0 - 4.4.9
Warning: Missing argument 1 for callstoredproc() in /in/vOjJD on line 4 call ()