3v4l.org

run code in 300+ PHP versions simultaneously
<?php function depbuild($location, $suffix, $locale) { var_dump(array( implode('-', array_filter(array($name, $location, $suffix, $locale))), $name, )); } $name = 'foo'; $location = array(null, 'GL', 'AS'); $suffix = array(null, 'P','C'); $locale = array(null, 'fr_FR'); foreach($location as $loc) { foreach($suffix as $s) { foreach($locale as $l) { depbuild($name, $loc, $s, $l); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 21
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 17
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 19
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/5pmVu
function name:  (null)
number of ops:  23
compiled vars:  !0 = $name, !1 = $location, !2 = $suffix, !3 = $locale, !4 = $loc, !5 = $s, !6 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, 'foo'
   11     1        ASSIGN                                                   !1, <array>
   12     2        ASSIGN                                                   !2, <array>
   13     3        ASSIGN                                                   !3, <array>
   15     4      > FE_RESET_R                                       $11     !1, ->21
          5    > > FE_FETCH_R                                               $11, !4, ->21
   16     6    > > FE_RESET_R                                       $12     !2, ->19
          7    > > FE_FETCH_R                                               $12, !5, ->19
   17     8    > > FE_RESET_R                                       $13     !3, ->17
          9    > > FE_FETCH_R                                               $13, !6, ->17
   18    10    >   INIT_FCALL                                               'depbuild'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !4
         13        SEND_VAR                                                 !5
         14        SEND_VAR                                                 !6
         15        DO_FCALL                                      0          
   17    16      > JMP                                                      ->9
         17    >   FE_FREE                                                  $13
   16    18      > JMP                                                      ->7
         19    >   FE_FREE                                                  $12
   15    20      > JMP                                                      ->5
         21    >   FE_FREE                                                  $11
   21    22      > RETURN                                                   1

Function depbuild:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5pmVu
function name:  depbuild
number of ops:  20
compiled vars:  !0 = $location, !1 = $suffix, !2 = $locale, !3 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        INIT_FCALL                                               'var_dump'
    5     4        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '-'
          6        INIT_FCALL                                               'array_filter'
          7        INIT_ARRAY                                       ~4      !3
          8        ADD_ARRAY_ELEMENT                                ~4      !0
          9        ADD_ARRAY_ELEMENT                                ~4      !1
         10        ADD_ARRAY_ELEMENT                                ~4      !2
         11        SEND_VAL                                                 ~4
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        INIT_ARRAY                                       ~7      $6
    6    16        ADD_ARRAY_ELEMENT                                ~7      !3
         17        SEND_VAL                                                 ~7
         18        DO_ICALL                                                 
    8    19      > RETURN                                                   null

End of function depbuild

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.97 ms | 1403 KiB | 20 Q