3v4l.org

run code in 500+ PHP versions simultaneously
<?php $f = array(2 => "hello world\n"); $l = array(3 => "goodbye\n"); function implodeList($v) { echo $v; } $f[2] != '' ? print($f[2]) : implodeList($l[3]); $f[2] = ''; $f[2] != '' ? print($f[2]) : implodeList($l[3]);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
Branch analysis from position: 24
filename:       /in/ZCGQN
function name:  (null)
number of ops:  31
compiled vars:  !0 = $f, !1 = $l
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        ASSIGN                                                       !1, <array>
    7     2        FETCH_DIM_R                                          ~4      !0, 2
          3        IS_NOT_EQUAL                                                 ~4, ''
          4      > JMPZ                                                         ~5, ->9
          5    >   FETCH_DIM_R                                          ~6      !0, 2
          6        ECHO                                                         ~6
          7        QM_ASSIGN                                            ~7      1
          8      > JMP                                                          ->14
          9    >   INIT_FCALL                                                   'implodelist'
         10        FETCH_DIM_R                                          ~8      !1, 3
         11        SEND_VAL                                                     ~8
         12        DO_FCALL                                          0  $9      
         13        QM_ASSIGN                                            ~7      $9
         14    >   FREE                                                         ~7
    8    15        ASSIGN_DIM                                                   !0, 2
         16        OP_DATA                                                      ''
    9    17        FETCH_DIM_R                                          ~11     !0, 2
         18        IS_NOT_EQUAL                                                 ~11, ''
         19      > JMPZ                                                         ~12, ->24
         20    >   FETCH_DIM_R                                          ~13     !0, 2
         21        ECHO                                                         ~13
         22        QM_ASSIGN                                            ~14     1
         23      > JMP                                                          ->29
         24    >   INIT_FCALL                                                   'implodelist'
         25        FETCH_DIM_R                                          ~15     !1, 3
         26        SEND_VAL                                                     ~15
         27        DO_FCALL                                          0  $16     
         28        QM_ASSIGN                                            ~14     $16
         29    >   FREE                                                         ~14
         30      > RETURN                                                       1

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

End of function implodelist

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.95 ms | 2122 KiB | 15 Q