3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mediaapi_filter_underscoretocamelcase($string) { return array_walk(explode('_', $string), function (&$item) { $item = ucfirst($item); }); } echo mediaapi_filter_underscoretocamelcase(franz_deleon);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vDFt8
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'mediaapi_filter_underscoretocamelcase'
          1        FETCH_CONSTANT                                   ~0      'franz_deleon'
          2        SEND_VAL                                                 ~0
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
          5      > RETURN                                                   1

Function mediaapi_filter_underscoretocamelcase:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vDFt8
function name:  mediaapi_filter_underscoretocamelcase
number of ops:  12
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'array_walk'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '_'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR_NO_REF                               0          $1
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FvDFt8%3A5%240'
    7     8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $3      
         10      > RETURN                                                   $3
    8    11*     > RETURN                                                   null

End of function mediaapi_filter_underscoretocamelcase

Function %00%7Bclosure%7D%2Fin%2FvDFt8%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vDFt8
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'ucfirst'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    7     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FvDFt8%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.43 ms | 1399 KiB | 20 Q