3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zoneparts = array_reverse(explode('.',"11.0.127")); $parts = explode('.',"127.2.11.1"); $intersect = array_intersect_assoc($zoneparts,$parts); print_r(range(0,count($intersect))); print_r(array_keys($intersect)); print_r($intersect); if(array_keys($intersect) === range(0, count($intersect)-1)) { echo "fu"; } ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 50, Position 2 = 51
Branch analysis from position: 50
Jump found. Position 1 = -2
Branch analysis from position: 51
filename:       /in/c07io
function name:  (null)
number of ops:  52
compiled vars:  !0 = $zoneparts, !1 = $parts, !2 = $intersect
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'array_reverse'
         1        INIT_FCALL                                               'explode'
         2        SEND_VAL                                                 '.'
         3        SEND_VAL                                                 '11.0.127'
         4        DO_ICALL                                         $3      
         5        SEND_VAR                                                 $3
         6        DO_ICALL                                         $4      
         7        ASSIGN                                                   !0, $4
   4     8        INIT_FCALL                                               'explode'
         9        SEND_VAL                                                 '.'
        10        SEND_VAL                                                 '127.2.11.1'
        11        DO_ICALL                                         $6      
        12        ASSIGN                                                   !1, $6
   5    13        INIT_FCALL                                               'array_intersect_assoc'
        14        SEND_VAR                                                 !0
        15        SEND_VAR                                                 !1
        16        DO_ICALL                                         $8      
        17        ASSIGN                                                   !2, $8
   6    18        INIT_FCALL                                               'print_r'
        19        INIT_FCALL                                               'range'
        20        SEND_VAL                                                 0
        21        INIT_FCALL                                               'count'
        22        SEND_VAR                                                 !2
        23        DO_ICALL                                         $10     
        24        SEND_VAR                                                 $10
        25        DO_ICALL                                         $11     
        26        SEND_VAR                                                 $11
        27        DO_ICALL                                                 
   7    28        INIT_FCALL                                               'print_r'
        29        INIT_FCALL                                               'array_keys'
        30        SEND_VAR                                                 !2
        31        DO_ICALL                                         $13     
        32        SEND_VAR                                                 $13
        33        DO_ICALL                                                 
   8    34        INIT_FCALL                                               'print_r'
        35        SEND_VAR                                                 !2
        36        DO_ICALL                                                 
   9    37        INIT_FCALL                                               'array_keys'
        38        SEND_VAR                                                 !2
        39        DO_ICALL                                         $16     
        40        INIT_FCALL                                               'range'
        41        SEND_VAL                                                 0
        42        INIT_FCALL                                               'count'
        43        SEND_VAR                                                 !2
        44        DO_ICALL                                         $17     
        45        SUB                                              ~18     $17, 1
        46        SEND_VAL                                                 ~18
        47        DO_ICALL                                         $19     
        48        IS_IDENTICAL                                     ~20     $16, $19
        49      > JMPZ                                                     ~20, ->51
  10    50    >   ECHO                                                     'fu'
        51    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0