3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var1 = "Cookie Dough"; $var2 = "Vanilla"; $initial = "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 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/0H8Bu
function name:  (null)
number of ops:  31
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_VAR                                                 !2
          6        DO_ICALL                                         $6      
          7        IS_EQUAL                                         ~7      $6, 0
          8      > JMPZ_EX                                          ~7      ~7, ->15
          9    >   INIT_FCALL                                               'stripos'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $8      
         13        IS_EQUAL                                         ~9      $8, 0
         14        BOOL                                             ~7      ~9
         15    > > JMPZ                                                     ~7, ->23
    9    16    >   CONCAT                                           ~10     !0, '+and+'
         17        CONCAT                                           ~11     ~10, !1
         18        CONCAT                                           ~12     ~11, '+both+start+with+'
         19        CONCAT                                           ~13     ~12, !2
         20        CONCAT                                           ~14     ~13, '.'
         21        ECHO                                                     ~14
         22      > JMP                                                      ->30
   13    23    >   CONCAT                                           ~15     'Either+', !0
         24        CONCAT                                           ~16     ~15, '+or+'
         25        CONCAT                                           ~17     ~16, !1
         26        CONCAT                                           ~18     ~17, '+doesn%27t+start+with+'
         27        CONCAT                                           ~19     ~18, !2
         28        CONCAT                                           ~20     ~19, '%3B+maybe+neither+of+them+do.'
         29        ECHO                                                     ~20
   17    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141 ms | 1396 KiB | 15 Q