3v4l.org

run code in 300+ PHP versions simultaneously
<?php class prueba { function __call($name, $arguments) { $name = strtolower($name); $method = preg_replace_callback('/_([a-z])/', function(array $match) { return strtoupper($match[1]); }, $name); return call_user_func_array(array($this, $method), $arguments); } } echo (new prueba)->__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/YP50l
function name:  (null)
number of ops:  8
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'prueba'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $1, '__call'
          3        ASSIGN                                           ~3      !0, 'me_ApetEce_COMER_algo_jajjajaj'
          4        SEND_VAL_EX                                              ~3
          5        DO_FCALL                                      0  $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FYP50l%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YP50l
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%2FYP50l%3A6%240

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

End of function __call

End of class prueba.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.44 ms | 1400 KiB | 19 Q