3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.43 ms | 1395 KiB | 19 Q