3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testor { public $prop = 'hi'; public function __construct(){ if(empty($this->prop)){ throw(new \Exception('too soon')); } } } $test = new testor();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uC10
function name:  (null)
number of ops:  4
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'testor'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class testor:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9uC10
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ISSET_ISEMPTY_PROP_OBJ                                   'prop'
          1      > JMPZ                                                     ~0, ->6
    7     2    >   NEW                                              $1      'Exception'
          3        SEND_VAL_EX                                              'too+soon'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $1
    9     6    > > RETURN                                                   null

End of function __construct

End of class testor.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.34 ms | 940 KiB | 14 Q