3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zoneparts = array_reverse(explode('.',"0.0.127")); $parts = explode('.',"127.0.0.1"); $intersect = array_intersect_assoc($zoneparts,$parts); print_r($intersect); if(array_keys($intersect) === range(0, count($intersect))) { echo "fu"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 32
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/TV8V3
function name:  (null)
number of ops:  33
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                                                 '0.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.0.0.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        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
    7    21        INIT_FCALL                                               'array_keys'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                         $11     
         24        INIT_FCALL                                               'range'
         25        SEND_VAL                                                 0
         26        COUNT                                            ~12     !2
         27        SEND_VAL                                                 ~12
         28        DO_ICALL                                         $13     
         29        IS_IDENTICAL                                             $11, $13
         30      > JMPZ                                                     ~14, ->32
    8    31    >   ECHO                                                     'fu'
   11    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.51 ms | 1396 KiB | 25 Q