3v4l.org

run code in 300+ PHP versions simultaneously
<?php class prueba { function __call($name, $arguments) { $name = strtolower($name); return preg_replace_callback('/_([a-z])/', function(array $match) { return strtoupper($match[1]); }, $name); } } 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/q3e1T
function name:  (null)
number of ops:  8
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     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%2Fq3e1T%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q3e1T
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%2Fq3e1T%3A6%240

Class prueba:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q3e1T
function name:  __call
number of ops:  14
compiled vars:  !0 = $name, !1 = $arguments
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                                         $2      
          5        ASSIGN                                                   !0, $2
    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%2Fq3e1T%3A6%240'
          9        SEND_VAL                                                 ~4
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12      > RETURN                                                   $5
    7    13*     > RETURN                                                   null

End of function __call

End of class prueba.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.09 ms | 1396 KiB | 19 Q