3v4l.org

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

Class parentTest: [no user functions]
Class implTest:
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/QnYO7
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   ISSET_ISEMPTY_PROP_OBJ                                   'innerVar'
          1      > JMPZ                                                     ~0, ->6
          2    >   NEW                                              $1      'Exception'
          3        SEND_VAL_EX                                              'too+soon'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $1
          6    > > RETURN                                                   null

End of function __construct

End of class implTest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173 ms | 1393 KiB | 13 Q