3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testDates = array("A", "B"); $myDates = array("C", "D"); function dates($arrDates) { foreach ($arrDates as $date) { // do something } } dates($testDates); foreach ($myDates as $myDate) { echo $date; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/0NW0l
function name:  (null)
number of ops:  11
compiled vars:  !0 = $testDates, !1 = $myDates, !2 = $myDate, !3 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
   11     2        INIT_FCALL                                               'dates'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
   14     5      > FE_RESET_R                                       $7      !1, ->9
          6    > > FE_FETCH_R                                               $7, !2, ->9
   15     7    >   ECHO                                                     !3
   14     8      > JMP                                                      ->6
          9    >   FE_FREE                                                  $7
   16    10      > RETURN                                                   1

Function dates:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/0NW0l
function name:  dates
number of ops:  6
compiled vars:  !0 = $arrDates, !1 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1      > FE_RESET_R                                       $2      !0, ->4
          2    > > FE_FETCH_R                                               $2, !1, ->4
          3    > > JMP                                                      ->2
          4    >   FE_FREE                                                  $2
    9     5      > RETURN                                                   null

End of function dates

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151 ms | 1398 KiB | 14 Q