3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = "Cookie Dough"; $var2 = "Vanilla"; $initial = "C"; echo stripos($var1, "C"); echo "br"; echo stripos($var2, "C"); if (stripos($var1,$initial) == 0 && stripos($var2,$initial) == 0) { echo $var1 . " and " . $var2 . " both start with " . $initial . "."; } else { echo "Either " . $var1 . " or " . $var2 . " doesn't start with " . $initial . "; maybe neither of them do."; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 26
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 34
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/bP5Nb
function name:  (null)
number of ops:  42
compiled vars:  !0 = $var1, !1 = $var2, !2 = $initial
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Cookie+Dough'
    4     1        ASSIGN                                                   !1, 'Vanilla'
    5     2        ASSIGN                                                   !2, 'C'
    7     3        INIT_FCALL                                               'stripos'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'C'
          6        DO_ICALL                                         $6      
          7        ECHO                                                     $6
    8     8        ECHO                                                     'br'
    9     9        INIT_FCALL                                               'stripos'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 'C'
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
   11    14        INIT_FCALL                                               'stripos'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $8      
         18        IS_EQUAL                                         ~9      $8, 0
         19      > JMPZ_EX                                          ~9      ~9, ->26
         20    >   INIT_FCALL                                               'stripos'
         21        SEND_VAR                                                 !1
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                         $10     
         24        IS_EQUAL                                         ~11     $10, 0
         25        BOOL                                             ~9      ~11
         26    > > JMPZ                                                     ~9, ->34
   13    27    >   CONCAT                                           ~12     !0, '+and+'
         28        CONCAT                                           ~13     ~12, !1
         29        CONCAT                                           ~14     ~13, '+both+start+with+'
         30        CONCAT                                           ~15     ~14, !2
         31        CONCAT                                           ~16     ~15, '.'
         32        ECHO                                                     ~16
         33      > JMP                                                      ->41
   17    34    >   CONCAT                                           ~17     'Either+', !0
         35        CONCAT                                           ~18     ~17, '+or+'
         36        CONCAT                                           ~19     ~18, !1
         37        CONCAT                                           ~20     ~19, '+doesn%27t+start+with+'
         38        CONCAT                                           ~21     ~20, !2
         39        CONCAT                                           ~22     ~21, '%3B+maybe+neither+of+them+do.'
         40        ECHO                                                     ~22
   21    41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.76 ms | 1400 KiB | 15 Q