3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Type"; //creating a list if (strpos($name, "type")) { $listValue = '1'; } elseif (strpos($name, "colour")) { $listValue = '2'; } else { $listValue = '3'; } echo "I am list" . $listValue; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GPWip
function name:  (null)
number of ops:  19
compiled vars:  !0 = $name, !1 = $listValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Type'
    5     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'type'
          4        DO_ICALL                                         $3      
          5      > JMPZ                                                     $3, ->8
    6     6    >   ASSIGN                                                   !1, '1'
          7      > JMP                                                      ->16
    8     8    >   INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'colour'
         11        DO_ICALL                                         $5      
         12      > JMPZ                                                     $5, ->15
    9    13    >   ASSIGN                                                   !1, '2'
         14      > JMP                                                      ->16
   12    15    >   ASSIGN                                                   !1, '3'
   15    16    >   CONCAT                                           ~8      'I+am+list', !1
         17        ECHO                                                     ~8
   17    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
224.26 ms | 1395 KiB | 15 Q