3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'http://visitbeyond.areadigital.org/var/site/storage/images/media/images/china/beijing-urban-outskirts-5d/1.-steep-great-wall/196692-1-eng-GB/1.-steep-great-wall_gallery_large.jpg'; if(substr(trim($str), 0, 35) == 'http://visitbeyond.areadigital.org/'){ $str = 'http://gobeyond.asia/'.substr(trim($str), 35); } echo $str;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/ppoNP
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fvisitbeyond.areadigital.org%2Fvar%2Fsite%2Fstorage%2Fimages%2Fmedia%2Fimages%2Fchina%2Fbeijing-urban-outskirts-5d%2F1.-steep-great-wall%2F196692-1-eng-GB%2F1.-steep-great-wall_gallery_large.jpg'
    5     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'trim'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 35
          8        DO_ICALL                                         $3      
          9        IS_EQUAL                                                 $3, 'http%3A%2F%2Fvisitbeyond.areadigital.org%2F'
         10      > JMPZ                                                     ~4, ->20
    6    11    >   INIT_FCALL                                               'substr'
         12        INIT_FCALL                                               'trim'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        SEND_VAL                                                 35
         17        DO_ICALL                                         $6      
         18        CONCAT                                           ~7      'http%3A%2F%2Fgobeyond.asia%2F', $6
         19        ASSIGN                                                   !0, ~7
    9    20    >   ECHO                                                     !0
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.19 ms | 1395 KiB | 17 Q