3v4l.org

run code in 500+ 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:  15
compiled vars:  !0 = $ip
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    7     1        INIT_FCALL                                                   'array_map'
    8     2        DECLARE_LAMBDA_FUNCTION                              ~1      [0]
   10     3        SEND_VAL                                                     ~1
   11     4        INIT_FCALL                                                   'explode'
          5        SEND_VAL                                                     '.'
          6        SEND_VAR                                                     !0
          7        DO_ICALL                                             $2      
          8        SEND_VAR                                                     $2
    7     9        DO_ICALL                                             $3      
    5    10        FRAMELESS_ICALL_2                implode             ~4      '.', $3
   11    11        VERIFY_RETURN_TYPE                                           ~4
         12      > RETURN                                                       ~4
   14    13*       VERIFY_RETURN_TYPE                                           
         14*     > 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:ip_clean():8}
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.5.0


preferences:
213.69 ms | 2259 KiB | 16 Q