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=''; foreach ($whereDisposArray as $value) { $s = $s . $value; } 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 = 24, Position 2 = 28
Branch analysis from position: 24
2 jumps found. (Code = 78) Position 1 = 25, Position 2 = 28
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 22
Branch analysis from position: 16
Branch analysis from position: 10
filename:       /in/uBLXb
function name:  (null)
number of ops:  33
compiled vars:  !0 = $isNoAnwser, !1 = $isBusy, !2 = $isFailed, !3 = $whereDisposArray, !4 = $s, !5 = $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                                                     ~10, ->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                                                     ~12, ->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                                                     ~14, ->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      > FE_RESET_R                                       $17     !3, ->28
         24    > > FE_FETCH_R                                               $17, !5, ->28
   13    25    >   CONCAT                                           ~18     !4, !5
         26        ASSIGN                                                   !4, ~18
   12    27      > JMP                                                      ->24
         28    >   FE_FREE                                                  $17
   16    29        INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !4
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.69 ms | 1388 KiB | 17 Q