3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callStoredProc( $storedProc ) { $args = func_get_args(); $storedProc = shift( $args ); foreach ( $args as $i => $arg) $args[$i] = "'$arg'"; $argStr = implode( ',', $args ); echo "call ${storedProc}(${argStr})"; } callStoredProc( 'something' );

preferences:
41.67 ms | 402 KiB | 5 Q