3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP'); echo ipaddress;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/OCJcc
function name:  (null)
number of ops:  12
compiled vars:  !0 = $ipaddress
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        INIT_FCALL                                               'getenv'
          2        SEND_VAL                                                 'HTTP_CLIENT_IP'
          3        DO_ICALL                                         $2      
          4      > JMPZ                                                     $2, ->9
    5     5    >   INIT_FCALL                                               'getenv'
          6        SEND_VAL                                                 'HTTP_CLIENT_IP'
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    6     9    >   FETCH_CONSTANT                                   ~5      'ipaddress'
         10        ECHO                                                     ~5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.01 ms | 1385 KiB | 15 Q