3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match('~http://www.google.com/page/(.*)~', 'http://www.google.com/page/223', $matches); echo $page = $matches[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IkvFe
function name:  (null)
number of ops:  9
compiled vars:  !0 = $matches, !1 = $page
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%7Ehttp%3A%2F%2Fwww.google.com%2Fpage%2F%28.%2A%29%7E'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.google.com%2Fpage%2F223'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    5     5        FETCH_DIM_R                                      ~3      !0, 1
          6        ASSIGN                                           ~4      !1, ~3
          7        ECHO                                                     ~4
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.44 ms | 1385 KiB | 15 Q