3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = parse_url('http://www.google.co.uk/test.html'); preg_match('/(.*?)((\.co)?.[a-z]{2,4})$/i', $host['host'], $m); $ext = isset($m[2]) ? $m[2]: '';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2hZN
function name:  (null)
number of ops:  18
compiled vars:  !0 = $host, !1 = $m, !2 = $ext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'parse_url'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.google.co.uk%2Ftest.html'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAL                                                 '%2F%28.%2A%3F%29%28%28%5C.co%29%3F.%5Ba-z%5D%7B2%2C4%7D%29%24%2Fi'
          6        FETCH_DIM_R                                      ~5      !0, 'host'
          7        SEND_VAL                                                 ~5
          8        SEND_REF                                                 !1
          9        DO_ICALL                                                 
    5    10        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 2
         11      > JMPZ                                                     ~7, ->15
         12    >   FETCH_DIM_R                                      ~8      !1, 2
         13        QM_ASSIGN                                        ~9      ~8
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~9      ''
         16    >   ASSIGN                                                   !2, ~9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.18 ms | 1395 KiB | 17 Q