3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests=[ "207.142.131.005", // 207.142.XXX.XXX "2001:0db8:0000:08d3:0000:8a2e:0070:7344", // 2001:0db8:0000:08d3:0000:8a2e:XXXX:XXXX "207.142.131.5", // 207.142.XXX.XXX "2001:0db8::8d3::8a2e:7:7344", // 2001:0db8::8d3::8a2e:XXXX:XXXX "::1", // :XXXX:XXXX "127.0.0.1" // 127.0.XXX.XXX ]; $tests=preg_replace(['/\.\d*$/','/\d*:\d*$/'],['.XXX','XXXX:XXXX'],$tests); var_export($tests);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gE6hG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $tests
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
   13     7        INIT_FCALL                                               'var_export'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.86 ms | 1385 KiB | 17 Q