3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = "Chan"; $str = ")24.231.23.2 " + $n + ":"; preg_match("/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} " . $n . "/", $str, $m); echo $m; //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/g7FKR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $n, !1 = $str, !2 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Chan'
    3     1        ADD                                              ~4      '%2924.231.23.2+', !0
          2        ADD                                              ~5      ~4, '%3A'
          3        ASSIGN                                                   !1, ~5
    4     4        INIT_FCALL                                               'preg_match'
          5        CONCAT                                           ~7      '%2F%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D+', !0
          6        CONCAT                                           ~8      ~7, '%2F'
          7        SEND_VAL                                                 ~8
          8        SEND_VAR                                                 !1
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
    5    11        ECHO                                                     !2
    8    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 1394 KiB | 15 Q