3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = 'http://apache/js/default.js'; if(strpos($path, 'http://') !== false) { $stuff = preg_replace('/http:\/\/[a-z|.|0-9]*/', '', $path); var_dump($stuff); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/dc91o
function name:  (null)
number of ops:  17
compiled vars:  !0 = $path, !1 = $stuff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fapache%2Fjs%2Fdefault.js'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'http%3A%2F%2F'
          4        DO_ICALL                                         $3      
          5        TYPE_CHECK                                  1018          $3
          6      > JMPZ                                                     ~4, ->16
    5     7    >   INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2Fhttp%3A%5C%2F%5C%2F%5Ba-z%7C.%7C0-9%5D%2A%2F'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    6    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    7    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.19 ms | 1394 KiB | 19 Q