3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($a) { foreach ($a as $i) { foreach ($a as $j) { var_export($i); echo ' , '; var_eport($j); echo ' --> '; var_export(min($i, $j)); echo ' / '; var_export(min($j, $i)); echo "\n"; } } } $a = [0, null, false, 42, -37];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qp44n
function name:  (null)
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, <array>
          1      > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 32
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 32
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 30
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 30
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 30
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/qp44n
function name:  f
number of ops:  34
compiled vars:  !0 = $a, !1 = $i, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1      > FE_RESET_R                                       $3      !0, ->32
          2    > > FE_FETCH_R                                               $3, !1, ->32
    4     3    > > FE_RESET_R                                       $4      !0, ->30
          4    > > FE_FETCH_R                                               $4, !2, ->30
    5     5    >   INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8        ECHO                                                     '+%2C+'
    7     9        INIT_FCALL_BY_NAME                                       'var_eport'
         10        SEND_VAR_EX                                              !2
         11        DO_FCALL                                      0          
    8    12        ECHO                                                     '+--%3E+'
    9    13        INIT_FCALL                                               'var_export'
         14        INIT_FCALL                                               'min'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
   10    20        ECHO                                                     '+%2F+'
   11    21        INIT_FCALL                                               'var_export'
         22        INIT_FCALL                                               'min'
         23        SEND_VAR                                                 !2
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                         $9      
         26        SEND_VAR                                                 $9
         27        DO_ICALL                                                 
   12    28        ECHO                                                     '%0A'
    4    29      > JMP                                                      ->4
         30    >   FE_FREE                                                  $4
    3    31      > JMP                                                      ->2
         32    >   FE_FREE                                                  $3
   15    33      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.6 ms | 1400 KiB | 17 Q