3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __destruct(){ echo "Destroying class ".__CLASS__; } } $array = new \SplFixedArray(6); $array[5] = new Test(); $array->setSize(5); // Destroying class Test ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8ahU5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'SplFixedArray'
          1        SEND_VAL_EX                                              6
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   10     4        NEW                                              $5      'Test'
          5        DO_FCALL                                      0          
          6        ASSIGN_DIM                                               !0, 5
          7        OP_DATA                                                  $5
   11     8        INIT_METHOD_CALL                                         !0, 'setSize'
          9        SEND_VAL_EX                                              5
         10        DO_FCALL                                      0          
   13    11      > RETURN                                                   1

Class Test:
Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8ahU5
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'Destroying+class+Test'
    6     1      > RETURN                                                   null

End of function __destruct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.4 ms | 1393 KiB | 13 Q