3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Solver { private $fileHandle; public function __construct($filename) { $this->fileHandle = fopen($filename, 'r'); } public function solve() { } public function __destruct() { fclose($this->fileHandle); } } (new Solver($argv[1]))->solve();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OWCdX
function name:  (null)
number of ops:  8
compiled vars:  !0 = $argv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'Solver'
          1        CHECK_FUNC_ARG                                           
          2        FETCH_DIM_FUNC_ARG                               $2      !0, 1
          3        SEND_FUNC_ARG                                            $2
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $1, 'solve'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function __construct

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

End of function solve

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OWCdX
function name:  __destruct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'fclose'
          1        FETCH_OBJ_R                                      ~0      'fileHandle'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   19     4      > RETURN                                                   null

End of function __destruct

End of class Solver.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.31 ms | 1396 KiB | 17 Q