3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=new GMP(0); $x=$x+1; var_dump($x); var_dump((int)$x); class a { public $a; public function __destruct() { $this->a = null; } } $f= new SplFixedArray(5); $a=[$f]; $f[0]=new a(); $f[0]->a =& $a; echo(serialize([$a])); //var_dump($f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C6LuN
function name:  (null)
number of ops:  32
compiled vars:  !0 = $x, !1 = $f, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'GMP'
          1        SEND_VAL_EX                                              0
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        ADD                                              ~6      !0, 1
          5        ASSIGN                                                   !0, ~6
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        CAST                                          4  ~9      !0
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
   13    13        NEW                                              $11     'SplFixedArray'
         14        SEND_VAL_EX                                              5
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !1, $11
   14    17        INIT_ARRAY                                       ~14     !1
         18        ASSIGN                                                   !2, ~14
   15    19        NEW                                              $17     'a'
         20        DO_FCALL                                      0          
         21        ASSIGN_DIM                                               !1, 0
         22        OP_DATA                                                  $17
   16    23        FETCH_DIM_W                                      $19     !1, 0
         24        ASSIGN_OBJ_REF                                           $19, 'a'
         25        OP_DATA                                                  !2
   17    26        INIT_FCALL                                               'serialize'
         27        INIT_ARRAY                                       ~21     !2
         28        SEND_VAL                                                 ~21
         29        DO_ICALL                                         $22     
         30        ECHO                                                     $22
   18    31      > RETURN                                                   1

Class a:
Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C6LuN
function name:  __destruct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN_OBJ                                               'a'
          1        OP_DATA                                                  null
   11     2      > RETURN                                                   null

End of function __destruct

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.85 ms | 1396 KiB | 17 Q