3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = "Chan"; $str = ")24.231.23.2 " + $n + ":"; $pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} " + $n; preg_match($pattern, $str, $m); echo $m[0]; //str_replace(" " + $n, "", $m[0], $r); //$ip = $r[0]; // Should return 24.231.23.2 //echo $ip;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bbu5n
function name:  (null)
number of ops:  14
compiled vars:  !0 = $n, !1 = $str, !2 = $pattern, !3 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Chan'
    3     1        ADD                                              ~5      '%2924.231.23.2+', !0
          2        ADD                                              ~6      ~5, '%3A'
          3        ASSIGN                                                   !1, ~6
    4     4        ADD                                              ~8      '%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D+', !0
          5        ASSIGN                                                   !2, ~8
    5     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAR                                                 !2
          8        SEND_VAR                                                 !1
          9        SEND_REF                                                 !3
         10        DO_ICALL                                                 
    6    11        FETCH_DIM_R                                      ~11     !3, 0
         12        ECHO                                                     ~11
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.9 ms | 1394 KiB | 15 Q