3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.1 ms | 1396 KiB | 21 Q