3v4l.org

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

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kI7KP
function name:  foo
number of ops:  4
compiled vars:  !0 = $param
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
   10     1      > RETURN                                                       null
   11     2*       VERIFY_RETURN_TYPE                                           
          3*     > RETURN                                                       null

End of function foo

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.64 ms | 1591 KiB | 15 Q