3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isNoAnwser = "1"; $isBusy = "1"; $isFailed = "0"; $whereDisposArray = array(); if($isBusy == 1) array_push($whereDisposArray, "disposition='BUSY'"); if($isNoAnwser == 1) array_push($whereDisposArray, "disposition='ANSWERED'"); if($isFailed == 1) array_push($whereDisposArray, "disposition='FAILED'"); $s=''; $i=0; foreach ($whereDisposArray as $value) { if($i == 0) $s = $s . $value; if($i != 0) $s = $s . " or " . $value; $i++; } print_r($s);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 37
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 37
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 35
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 35
Branch analysis from position: 30
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
Branch analysis from position: 22
Branch analysis from position: 16
Branch analysis from position: 10
filename:       /in/MlDHg
function name:  (null)
number of ops:  42
compiled vars:  !0 = $isNoAnwser, !1 = $isBusy, !2 = $isFailed, !3 = $whereDisposArray, !4 = $s, !5 = $i, !6 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1'
    4     1        ASSIGN                                                   !1, '1'
    5     2        ASSIGN                                                   !2, '0'
    7     3        ASSIGN                                                   !3, <array>
    8     4        IS_EQUAL                                                 !1, 1
          5      > JMPZ                                                     ~11, ->10
          6    >   INIT_FCALL                                               'array_push'
          7        SEND_REF                                                 !3
          8        SEND_VAL                                                 'disposition%3D%27BUSY%27'
          9        DO_ICALL                                                 
    9    10    >   IS_EQUAL                                                 !0, 1
         11      > JMPZ                                                     ~13, ->16
         12    >   INIT_FCALL                                               'array_push'
         13        SEND_REF                                                 !3
         14        SEND_VAL                                                 'disposition%3D%27ANSWERED%27'
         15        DO_ICALL                                                 
   10    16    >   IS_EQUAL                                                 !2, 1
         17      > JMPZ                                                     ~15, ->22
         18    >   INIT_FCALL                                               'array_push'
         19        SEND_REF                                                 !3
         20        SEND_VAL                                                 'disposition%3D%27FAILED%27'
         21        DO_ICALL                                                 
   11    22    >   ASSIGN                                                   !4, ''
   12    23        ASSIGN                                                   !5, 0
   13    24      > FE_RESET_R                                       $19     !3, ->37
         25    > > FE_FETCH_R                                               $19, !6, ->37
   14    26    >   IS_EQUAL                                                 !5, 0
         27      > JMPZ                                                     ~20, ->30
         28    >   CONCAT                                           ~21     !4, !6
         29        ASSIGN                                                   !4, ~21
   15    30    >   IS_NOT_EQUAL                                             !5, 0
         31      > JMPZ                                                     ~23, ->35
         32    >   CONCAT                                           ~24     !4, '+or+'
         33        CONCAT                                           ~25     ~24, !6
         34        ASSIGN                                                   !4, ~25
   16    35    >   PRE_INC                                                  !5
   13    36      > JMP                                                      ->25
         37    >   FE_FREE                                                  $19
   20    38        INIT_FCALL                                               'print_r'
         39        SEND_VAR                                                 !4
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.52 ms | 1400 KiB | 17 Q