3v4l.org

run code in 500+ PHP versions simultaneously
<?php $weakRef = \WeakReference::create(new \stdClass()); print_r($weakRef);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cuspD
function name:  (null)
number of ops:  10
compiled vars:  !0 = $weakRef
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                      'WeakReference', 'create'
          1        NEW                                                  $1      'stdClass'
          2        DO_FCALL                                          0          
          3        SEND_VAR                                                     $1
          4        DO_FCALL                                          0  $3      
          5        ASSIGN                                                       !0, $3
    5     6        INIT_FCALL                                                   'print_r'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
143.66 ms | 487 KiB | 10 Q