3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = new SplObjectStorage; $obj = new StdClass; $os->attach($obj); var_dump($os->detach($obj)); var_dump($os->detach($obj));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rImOg
function name:  (null)
number of ops:  22
compiled vars:  !0 = $os, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SplObjectStorage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    5     3        NEW                                              $5      'StdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
    7     6        INIT_METHOD_CALL                                         !0, 'attach'
          7        SEND_VAR_EX                                              !1
          8        DO_FCALL                                      0          
    9     9        INIT_FCALL                                               'var_dump'
         10        INIT_METHOD_CALL                                         !0, 'detach'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0  $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        INIT_METHOD_CALL                                         !0, 'detach'
         17        SEND_VAR_EX                                              !1
         18        DO_FCALL                                      0  $11     
         19        SEND_VAR                                                 $11
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.59 ms | 1395 KiB | 15 Q