3v4l.org

run code in 300+ PHP versions simultaneously
<? function __call($name) { $name = strtolower($name); return preg_replace_callback('/_([a-z])/', function(array $match) { return strtoupper($match[1]); }, $name); } echo __call($key = 'me_ApetEce_COMER_algo_jajjajaj');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pOiLo
function name:  (null)
number of ops:  6
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               '__call'
          1        ASSIGN                                           ~1      !0, 'me_ApetEce_COMER_algo_jajjajaj'
          2        SEND_VAL                                                 ~1
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pOiLo
function name:  __call
number of ops:  13
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'strtolower'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    6     5        INIT_FCALL                                               'preg_replace_callback'
          6        SEND_VAL                                                 '%2F_%28%5Ba-z%5D%29%2F'
          7        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FpOiLo%3A6%240'
          8        SEND_VAL                                                 ~3
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11      > RETURN                                                   $4
    7    12*     > RETURN                                                   null

End of function __call

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

End of function %00%7Bclosure%7D%2Fin%2FpOiLo%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.88 ms | 1399 KiB | 20 Q