3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prj=explode(':','aaa:bbb:ccc:ddd:eee:fff'); $prjSrch=($prj[3]==='*')?0:array_search('eee',$prj); var_dump($prjSrch); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cn62J
function name:  (null)
number of ops:  20
compiled vars:  !0 = $prj, !1 = $prjSrch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%3A'
          2        SEND_VAL                                                 'aaa%3Abbb%3Accc%3Addd%3Aeee%3Afff'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        FETCH_DIM_R                                      ~4      !0, 3
          6        IS_IDENTICAL                                             ~4, '%2A'
          7      > JMPZ                                                     ~5, ->10
          8    >   QM_ASSIGN                                        ~6      0
          9      > JMP                                                      ->15
         10    >   INIT_FCALL                                               'array_search'
         11        SEND_VAL                                                 'eee'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        QM_ASSIGN                                        ~6      $7
         15    >   ASSIGN                                                   !1, ~6
    5    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
    7    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.58 ms | 1395 KiB | 19 Q