3v4l.org

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

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8vraT
function name:  b
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E > > RETURN                                                   null

End of function b

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.34 ms | 1389 KiB | 16 Q