3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = function($m){ return eval('$this->waa();'); }; class x { function __construct($x){ var_dump(preg_replace_callback('~.~', $x, 'wazaa')); } function waa(){ return 'meukee'; } } new x($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RkOdk
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FRkOdk%3A3%240'
          1        ASSIGN                                                   !0, ~1
   11     2        NEW                                              $3      'x'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        FREE                                                     $3
          6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FRkOdk%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RkOdk
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        INCLUDE_OR_EVAL                                  $1      '%24this-%3Ewaa%28%29%3B', EVAL
          2      > RETURN                                                   $1
          3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FRkOdk%3A3%240

Class x:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RkOdk
function name:  __construct
number of ops:  10
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_replace_callback'
          3        SEND_VAL                                                 '%7E.%7E'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'wazaa'
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
          9      > RETURN                                                   null

End of function __construct

Function waa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RkOdk
function name:  waa
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   'meukee'
          1*     > RETURN                                                   null

End of function waa

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.32 ms | 1401 KiB | 17 Q