3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = '127.0.0.1'; $long = ip2long($ip); var_dump($ip); var_dump($long); var_dump(is_string($ip)); var_dump(is_string($long)); var_dump(intval($ip) === $ip); // Detect whether the IP was already a long.
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D6Ij7
function name:  (null)
number of ops:  25
compiled vars:  !0 = $ip, !1 = $long
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '127.0.0.1'
    4     1        INIT_FCALL                                               'ip2long'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'var_dump'
         12        TYPE_CHECK                                   64  ~7      !0
         13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        TYPE_CHECK                                   64  ~9      !1
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                                 
   11    19        INIT_FCALL                                               'var_dump'
         20        CAST                                          4  ~11     !0
         21        IS_IDENTICAL                                     ~12     !0, ~11
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.94 ms | 1395 KiB | 17 Q