3v4l.org

run code in 500+ PHP versions simultaneously
<?php $haystack = array(); $haystack[0] = 'German'; $haystack[1] = 'English'; $haystack_lower = array_map('strtolower', $haystack); print_r($haystack); print_r('<br>'); print_r($haystack_lower); print_r('<br>'); if (array_search('german',$haystack_lower) != FALSE) { print_r('match'); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 31
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/JMTsG
function name:  (null)
number of ops:  32
compiled vars:  !0 = $haystack, !1 = $haystack_lower
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN_DIM                                                   !0, 0
          2        OP_DATA                                                      'German'
    5     3        ASSIGN_DIM                                                   !0, 1
          4        OP_DATA                                                      'English'
    7     5        INIT_FCALL                                                   'array_map'
          6        SEND_VAL                                                     'strtolower'
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $5      
          9        ASSIGN                                                       !1, $5
    8    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
    9    13        INIT_FCALL                                                   'print_r'
         14        SEND_VAL                                                     '%3Cbr%3E'
         15        DO_ICALL                                                     
   10    16        INIT_FCALL                                                   'print_r'
         17        SEND_VAR                                                     !1
         18        DO_ICALL                                                     
   11    19        INIT_FCALL                                                   'print_r'
         20        SEND_VAL                                                     '%3Cbr%3E'
         21        DO_ICALL                                                     
   12    22        INIT_FCALL                                                   'array_search'
         23        SEND_VAL                                                     'german'
         24        SEND_VAR                                                     !1
         25        DO_ICALL                                             $11     
         26        IS_NOT_EQUAL                                                 $11, <false>
         27      > JMPZ                                                         ~12, ->31
   13    28    >   INIT_FCALL                                                   'print_r'
         29        SEND_VAL                                                     'match'
         30        DO_ICALL                                                     
   16    31    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.14 ms | 481 KiB | 10 Q