3v4l.org

run code in 300+ PHP versions simultaneously
<?php class prueba { function __call($name, $arguments) { var_dump($name); die; $name = strtolower($name); $method = preg_replace_callback('/_([a-z])/', function(array $match) { return strtoupper($match[1]); }, $name); //var_dump($method); return call_user_func_array(array($this, $method), $arguments); } } echo (new prueba)->camel_case_tOtal('me_ApetEce_COMER_algo_jajjajaj');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qJtd4
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'prueba'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'camel_case_tOtal'
          3        SEND_VAL_EX                                              'me_ApetEce_COMER_algo_jajjajaj'
          4        DO_FCALL                                      0  $2      
          5        ECHO                                                     $2
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FqJtd4%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qJtd4
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     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%2FqJtd4%3A8%240

Class prueba:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/qJtd4
function name:  __call
number of ops:  26
compiled vars:  !0 = $name, !1 = $arguments, !2 = $method
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5      > EXIT                                                     
    7     6*       INIT_FCALL                                               'strtolower'
          7*       SEND_VAR                                                 !0
          8*       DO_ICALL                                         $4      
          9*       ASSIGN                                                   !0, $4
    8    10*       INIT_FCALL                                               'preg_replace_callback'
         11*       SEND_VAL                                                 '%2F_%28%5Ba-z%5D%29%2F'
         12*       DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FqJtd4%3A8%240'
         13*       SEND_VAL                                                 ~6
         14*       SEND_VAR                                                 !0
         15*       DO_ICALL                                         $7      
         16*       ASSIGN                                                   !2, $7
   10    17*       FETCH_THIS                                       ~9      
         18*       INIT_ARRAY                                       ~10     ~9
         19*       ADD_ARRAY_ELEMENT                                ~10     !2
         20*       INIT_USER_CALL                                0          'call_user_func_array', ~10
         21*       SEND_ARRAY                                               !1
         22*       CHECK_UNDEF_ARGS                                         
         23*       DO_FCALL                                      0  $11     
         24*       RETURN                                                   $11
   11    25*     > RETURN                                                   null

End of function __call

End of class prueba.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.51 ms | 1400 KiB | 21 Q