3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public ?int $var; } $a = new A(); $b = new A(); $b->var = null; var_dump(isset($a->var)); var_dump(isset($b->var));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBnv1
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    6     3        NEW                                              $5      'A'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    7     6        ASSIGN_OBJ                                               !1, 'var'
          7        OP_DATA                                                  null
    9     8        INIT_FCALL                                               'var_dump'
          9        ISSET_ISEMPTY_PROP_OBJ                           ~9      !0, 'var'
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                                 
   10    12        INIT_FCALL                                               'var_dump'
         13        ISSET_ISEMPTY_PROP_OBJ                           ~11     !1, 'var'
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.17 ms | 997 KiB | 14 Q