3v4l.org

run code in 500+ PHP versions simultaneously
<?php $tests=[ "207.142.131.005", "2001:0db8:0000:08d3:0000:8a2e:0070:7344", "2001:0db8:0000:08d3:0000:8a2e:0070:734a", "207.142.131.5", "2001:0db8::8d3::8a2e:7:7344", "::1", "127.0.0.1" ]; $tests=preg_replace(['/\.\d*$/','/[\da-f]*:[\da-f]*$/'],['.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/FPGaa
function name:  (null)
number of ops:  8
compiled vars:  !0 = $tests
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   12     1        FRAMELESS_ICALL_3                preg_replace        ~2      <array>, <array>
          2        OP_DATA                                                      !0
          3        ASSIGN                                                       !0, ~2
   14     4        INIT_FCALL                                                   'var_export'
          5        SEND_VAR                                                     !0
          6        DO_ICALL                                                     
          7      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.74 ms | 2672 KiB | 14 Q