3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Type"; //creating a list if (strpos($name, "type") !== FALSE) { $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 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1Uui4
function name:  (null)
number of ops:  20
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        TYPE_CHECK                                  1018          $3
          6      > JMPZ                                                     ~4, ->9
    6     7    >   ASSIGN                                                   !1, '1'
          8      > JMP                                                      ->17
    8     9    >   INIT_FCALL                                               'strpos'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'colour'
         12        DO_ICALL                                         $6      
         13      > JMPZ                                                     $6, ->16
    9    14    >   ASSIGN                                                   !1, '2'
         15      > JMP                                                      ->17
   12    16    >   ASSIGN                                                   !1, '3'
   15    17    >   CONCAT                                           ~9      'I+am+list', !1
         18        ECHO                                                     ~9
   17    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.19 ms | 1395 KiB | 15 Q