3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a{} $as = array_pad([], 100000, new a()); function b($b){}foreach($as as $a){b($a);}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/DKmiW
function name:  (null)
number of ops:  16
compiled vars:  !0 = $as, !1 = $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                                              $2      'a'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
          8      > FE_RESET_R                                       $6      !0, ->14
          9    > > FE_FETCH_R                                               $6, !1, ->14
         10    >   INIT_FCALL                                               'b'
         11        SEND_VAR                                                 !1
         12        DO_FCALL                                      0          
         13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $6
         15      > RETURN                                                   1

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

End of function b

Class a: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.7 ms | 1402 KiB | 16 Q