3v4l.org

run code in 300+ PHP versions simultaneously
<?php $missing = range(1, 5); $missingCount = count($missing); if ($missingCount) { if ($missingCount < 3) { $glue = ' and '; } else { $glue = ', '; $missing[] = 'and ' . array_pop($missing); } printf( 'Incomplete information received. The %s %s missing. Please check your inputs and try again.', implode($glue, $missing), $missingCount === 1 ? 'field is' : 'fields are' ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 33
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
Branch analysis from position: 30
Branch analysis from position: 33
filename:       /in/quMIB
function name:  (null)
number of ops:  34
compiled vars:  !0 = $missing, !1 = $missingCount, !2 = $glue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 5
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        COUNT                                            ~5      !0
          6        ASSIGN                                                   !1, ~5
    5     7      > JMPZ                                                     !1, ->33
    6     8    >   IS_SMALLER                                               !1, 3
          9      > JMPZ                                                     ~7, ->12
    7    10    >   ASSIGN                                                   !2, '+and+'
         11      > JMP                                                      ->19
    9    12    >   ASSIGN                                                   !2, '%2C+'
   10    13        INIT_FCALL                                               'array_pop'
         14        SEND_REF                                                 !0
         15        DO_ICALL                                         $11     
         16        CONCAT                                           ~12     'and+', $11
         17        ASSIGN_DIM                                               !0
         18        OP_DATA                                                  ~12
   12    19    >   INIT_FCALL                                               'printf'
   13    20        SEND_VAL                                                 'Incomplete+information+received.+The+%25s+%25s+missing.+Please+check+your+inputs+and+try+again.'
   14    21        INIT_FCALL                                               'implode'
         22        SEND_VAR                                                 !2
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $13     
         25        SEND_VAR                                                 $13
   15    26        IS_IDENTICAL                                             !1, 1
         27      > JMPZ                                                     ~14, ->30
         28    >   QM_ASSIGN                                        ~15     'field+is'
         29      > JMP                                                      ->31
         30    >   QM_ASSIGN                                        ~15     'fields+are'
         31    >   SEND_VAL                                                 ~15
         32        DO_ICALL                                                 
   17    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.14 ms | 1396 KiB | 21 Q