3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function getData() { return true; } } $set = array(); foreach(range(1, 2000) as $f) { $set[] = new Foo; } $array = array(); foreach ($set as $f) { $array[] = $set; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 12
filename:       /in/DmqbF
function name:  (null)
number of ops:  21
compiled vars:  !0 = $set, !1 = $f, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 2000
          4        DO_ICALL                                         $4      
          5      > FE_RESET_R                                       $5      $4, ->12
          6    > > FE_FETCH_R                                               $5, !1, ->12
   11     7    >   NEW                                              $7      'Foo'
          8        DO_FCALL                                      0          
          9        ASSIGN_DIM                                               !0
         10        OP_DATA                                                  $7
   10    11      > JMP                                                      ->6
         12    >   FE_FREE                                                  $5
   15    13        ASSIGN                                                   !2, <array>
   16    14      > FE_RESET_R                                       $10     !0, ->19
         15    > > FE_FETCH_R                                               $10, !1, ->19
         16    >   ASSIGN_DIM                                               !2
         17        OP_DATA                                                  !0
         18      > JMP                                                      ->15
         19    >   FE_FREE                                                  $10
         20      > RETURN                                                   1

Class Foo:
Function getdata:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DmqbF
function name:  getData
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   <true>
    5     1*     > RETURN                                                   null

End of function getdata

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.4 ms | 1396 KiB | 15 Q