3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Why { public function getStupid () { echo 'fuck'; } } $idk = new Why; $why = array('dumb' => $idk); extract($why); $dumb->getStupid();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7L3Cl
function name:  (null)
number of ops:  11
compiled vars:  !0 = $idk, !1 = $why, !2 = $dumb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $3      'Why'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   10     3        INIT_ARRAY                                       ~6      !0, 'dumb'
          4        ASSIGN                                                   !1, ~6
   11     5        INIT_FCALL                                               'extract'
          6        SEND_REF                                                 !1
          7        DO_ICALL                                                 
   12     8        INIT_METHOD_CALL                                         !2, 'getStupid'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Class Why:
Function getstupid:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7L3Cl
function name:  getStupid
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'fuck'
    7     1      > RETURN                                                   null

End of function getstupid

End of class Why.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.68 ms | 1394 KiB | 15 Q