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        ASSIGN_OBJ                                               $0
         4        ASSIGN_OBJ                                               '%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        RAISE_ABSTRACT_ERROR                             ~1      '%00%7Bclosure%7D%2Fin%2FNcNg70x7f646445d5b0'
  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
        11        DO_ICALL                                         $3      
        12        SEND_VAR                                                 $3
        13        DO_ICALL                                         $4      
        14        VERIFY_RETURN_TYPE                                       $4
        15      > RETURN                                                   $4
  14    16*       VERIFY_RETURN_TYPE                                       
        17*     > RETURN                                                   null

End of function ip_clean

Function %00%7Bclosure%7D%2Fin%2FNcNg70x7f646445d5b0:
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        MAKE_REF                                         ~1      !0
         2      > RETURN                                                   ~1
  10     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNcNg70x7f646445d5b0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
13.24 ms | 412 KiB | 7 Q