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); 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/omaHd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $n, !1 = $str, !2 = $m, !3 = $r, !4 = $ip
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Chan'
    3     1        ADD                                              ~6      '%2924.231.23.2+', !0
          2        ADD                                              ~7      ~6, '%3A'
          3        ASSIGN                                                   !1, ~7
    4     4        INIT_FCALL                                               'preg_match'
          5        CONCAT                                           ~9      '%2F%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D%5C.%5Cd%7B1%2C3%7D+', !0
          6        CONCAT                                           ~10     ~9, '%2F'
          7        SEND_VAL                                                 ~10
          8        SEND_VAR                                                 !1
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
    5    11        INIT_FCALL                                               'str_replace'
         12        ADD                                              ~12     '+', !0
         13        SEND_VAL                                                 ~12
         14        SEND_VAL                                                 ''
         15        FETCH_DIM_R                                      ~13     !2, 0
         16        SEND_VAL                                                 ~13
         17        SEND_REF                                                 !3
         18        DO_ICALL                                                 
    6    19        FETCH_DIM_R                                      ~15     !3, 0
         20        ASSIGN                                                   !4, ~15
    7    21        ECHO                                                     !4
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.29 ms | 1395 KiB | 17 Q