3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { private $v = '?'; public function __construct() { $v = 'ok.'; } public function doAction() { print $v; } } (new TestClass())->doAction();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lK3e5
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'TestClass'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'doAction'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class TestClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lK3e5
function name:  __construct
number of ops:  2
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'ok.'
    6     1      > RETURN                                                   null

End of function __construct

Function doaction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lK3e5
function name:  doAction
number of ops:  2
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     !0
    9     1      > RETURN                                                   null

End of function doaction

End of class TestClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.94 ms | 1397 KiB | 13 Q