3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowedIps = ['a' => '123.123.123.123']; $arrIps = array_merge($allowedIps, array('127.0.0.1', 'fe80::1', '::1') ); if ( in_array('123.123.123.123', $arrIps) ) { echo 'OK'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/1rqn0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $allowedIps, !1 = $arrIps
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_merge'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'in_array'
          7        SEND_VAL                                                 '123.123.123.123'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10      > JMPZ                                                     $5, ->12
    5    11    >   ECHO                                                     'OK'
    6    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.8 ms | 1398 KiB | 17 Q