3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __construct(){} public function showRes(){ echo "Done\n"; } } $o = (new Test( $a = 8 ))->showRes();// Done var_dump( $a ); // int(8)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y86Wg
function name:  (null)
number of ops:  11
compiled vars:  !0 = $o, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'Test'
          1        ASSIGN                                           ~3      !1, 8
          2        SEND_VAL_EX                                              ~3
          3        DO_FCALL                                      0          
          4        INIT_METHOD_CALL                                         $2, 'showRes'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !0, $5
   13     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

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

End of function __construct

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

End of function showres

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.42 ms | 1395 KiB | 15 Q