3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uri = "/route/666"; if (preg_match("{^/route/(\d+)$}", $uri, $m)) { [1 => $route] = $m; echo $route, PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/ga2ea
function name:  (null)
number of ops:  14
compiled vars:  !0 = $uri, !1 = $m, !2 = $route
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Froute%2F666'
    5     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%7B%5E%2Froute%2F%28%5Cd%2B%29%24%7D'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $4      
          6      > JMPZ                                                     $4, ->13
    6     7    >   QM_ASSIGN                                        ~5      !1
          8        FETCH_LIST_R                                     $6      ~5, 1
          9        ASSIGN                                                   !2, $6
         10        FREE                                                     ~5
    8    11        ECHO                                                     !2
         12        ECHO                                                     '%0A'
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.34 ms | 1394 KiB | 15 Q