3v4l.org

run code in 300+ PHP versions simultaneously
<?php $isNoAnwser = "1"; $isBusy = "1"; $isFailed = "0"; $whereDisposArray = array(); if($isBusy) array_push($whereDisposArray, "disposition='BUSY'"); if($isNoAnswer) array_push($whereDisposArray, "disposition='ANSWERED'"); if($isFailed) 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 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/fcUpO
function name:  (null)
number of ops:  24
compiled vars:  !0 = $isNoAnwser, !1 = $isBusy, !2 = $isFailed, !3 = $whereDisposArray, !4 = $isNoAnswer, !5 = $s
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      > JMPZ                                                     !1, ->9
          5    >   INIT_FCALL                                               'array_push'
          6        SEND_REF                                                 !3
          7        SEND_VAL                                                 'disposition%3D%27BUSY%27'
          8        DO_ICALL                                                 
    9     9    > > JMPZ                                                     !4, ->14
         10    >   INIT_FCALL                                               'array_push'
         11        SEND_REF                                                 !3
         12        SEND_VAL                                                 'disposition%3D%27ANSWERED%27'
         13        DO_ICALL                                                 
   10    14    > > JMPZ                                                     !2, ->19
         15    >   INIT_FCALL                                               'array_push'
         16        SEND_REF                                                 !3
         17        SEND_VAL                                                 'disposition%3D%27FAILED%27'
         18        DO_ICALL                                                 
   11    19    >   ASSIGN                                                   !5, ''
   16    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !5
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.99 ms | 1395 KiB | 17 Q