3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.95 ms | 1395 KiB | 15 Q