3v4l.org

run code in 300+ PHP versions simultaneously
<?php gc_enable(); $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/4kYBR
function name:  (null)
number of ops:  30
compiled vars:  !0 = $objstore
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'gc_enable'
          1        DO_ICALL                                                 
    3     2        NEW                                              $2      'SplObjectStorage'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    4     5        INIT_METHOD_CALL                                         !0, 'attach'
          6        NEW                                              $5      'StdClass'
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $5
          9        DO_FCALL                                      0          
    5    10        INIT_METHOD_CALL                                         !0, 'attach'
         11        NEW                                              $8      'StdClass'
         12        DO_FCALL                                      0          
         13        SEND_VAR_NO_REF_EX                                       $8
         14        DO_FCALL                                      0          
    6    15        INIT_METHOD_CALL                                         !0, 'attach'
         16        NEW                                              $11     'StdClass'
         17        DO_FCALL                                      0          
         18        SEND_VAR_NO_REF_EX                                       $11
         19        DO_FCALL                                      0          
    7    20        INIT_FCALL                                               'gc_collect_cycles'
         21        DO_ICALL                                                 
    9    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
   11    25        INIT_FCALL                                               'serialize'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $16     
         28        ECHO                                                     $16
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.7 ms | 1395 KiB | 21 Q