3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Test{ case ONE; } $var = Test::ONE; var_dump(gc_status()); unset($var); var_dump(gc_status());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OgFFQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'test'
    7     1        FETCH_CLASS_CONSTANT                             ~1      'Test', 'ONE'
          2        ASSIGN                                                   !0, ~1
    8     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'gc_status'
          5        DO_ICALL                                         $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
    9     8        UNSET_CV                                                 !0
   10     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'gc_status'
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.62 ms | 997 KiB | 15 Q