3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Baz { protected $foo; protected $bar = null; public function test(){ var_dump(isset($this->foo)); var_dump(isset($this->bar)); return get_object_vars($this); } } var_dump((new Baz)->test());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ica3S
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'Baz'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'test'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class Baz:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ica3S
function name:  test
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
          1        ISSET_ISEMPTY_PROP_OBJ                           ~0      'foo'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'var_dump'
          5        ISSET_ISEMPTY_PROP_OBJ                           ~2      'bar'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
   10     8        INIT_FCALL                                               'get_object_vars'
          9        FETCH_THIS                                       ~4      
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                         $5      
         12      > RETURN                                                   $5
   11    13*     > RETURN                                                   null

End of function test

End of class Baz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.22 ms | 1395 KiB | 17 Q