3v4l.org

run code in 300+ PHP versions simultaneously
<?php class prueba { function __call($name, $arguments) { var_dump($name); $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/ZqDue
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     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%2FZqDue%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZqDue
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     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%2FZqDue%3A7%240

Class prueba:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZqDue
function name:  __call
number of ops:  25
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        INIT_FCALL                                               'strtolower'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !0, $4
    7     9        INIT_FCALL                                               'preg_replace_callback'
         10        SEND_VAL                                                 '%2F_%28%5Ba-z%5D%29%2F'
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZqDue%3A7%240'
         12        SEND_VAL                                                 ~6
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !2, $7
    9    16        FETCH_THIS                                       ~9      
         17        INIT_ARRAY                                       ~10     ~9
         18        ADD_ARRAY_ELEMENT                                ~10     !2
         19        INIT_USER_CALL                                0          'call_user_func_array', ~10
         20        SEND_ARRAY                                               !1
         21        CHECK_UNDEF_ARGS                                         
         22        DO_FCALL                                      0  $11     
         23      > RETURN                                                   $11
   10    24*     > RETURN                                                   null

End of function __call

End of class prueba.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.83 ms | 1400 KiB | 21 Q