3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; echo $ip; if (filter_var($ip = $_SERVER['REMOTE_ADDR'], FILTER_FLAG_IPV4)) { echo $ip; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/fMSk6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $ip
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $1      '_SERVER'
          1        ASSIGN_DIM                                               $1, 'REMOTE_ADDR'
          2        OP_DATA                                                  '127.0.0.1'
    5     3        ECHO                                                     !0
    7     4        INIT_FCALL                                               'filter_var'
          5        FETCH_R                      global              ~3      '_SERVER'
          6        FETCH_DIM_R                                      ~4      ~3, 'REMOTE_ADDR'
          7        ASSIGN                                           ~5      !0, ~4
          8        SEND_VAL                                                 ~5
          9        SEND_VAL                                                 1048576
         10        DO_ICALL                                         $6      
         11      > JMPZ                                                     $6, ->13
         12    >   ECHO                                                     !0
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.59 ms | 1385 KiB | 15 Q