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)->__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/eduUK
function name:  (null)
number of ops:  9
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     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        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
          8      > RETURN                                                   1

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

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

End of function __call

End of class prueba.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.51 ms | 1392 KiB | 21 Q