3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ip_clean(string $ip) : ?string { return implode( '.', array_map( function ($el) { return (int) $el; }, explode('.', $ip) ) ); } echo ip_clean('195.194.213.096'), PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NcNg7
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'ip_clean'
          1        SEND_VAL                                                 '195.194.213.096'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4        ECHO                                                     '%0A'
          5      > RETURN                                                   1

Function ip_clean:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NcNg7
function name:  ip_clean
number of ops:  18
compiled vars:  !0 = $ip
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'implode'
    6     2        SEND_VAL                                                 '.'
    7     3        INIT_FCALL                                               'array_map'
    8     4        DECLARE_LAMBDA_FUNCTION                          ~1      [0]
   10     5        SEND_VAL                                                 ~1
   11     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '.'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
    7    11        DO_ICALL                                         $3      
   11    12        SEND_VAR                                                 $3
    5    13        DO_ICALL                                         $4      
   11    14        VERIFY_RETURN_TYPE                                       $4
         15      > RETURN                                                   $4
   14    16*       VERIFY_RETURN_TYPE                                       
         17*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NcNg7
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $el
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        CAST                                          4  ~1      !0
          2      > RETURN                                                   ~1
   10     3*     > RETURN                                                   null

End of Dynamic Function 0

End of function ip_clean

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.88 ms | 1003 KiB | 17 Q