3v4l.org

run code in 300+ PHP versions simultaneously
<?php $activePage = 'index.php'; $item = array('url' => '/index.php'); var_dump(preg_match('/'.$activePage.'/i', $item['url'],$result)); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7c4Fk
function name:  (null)
number of ops:  17
compiled vars:  !0 = $activePage, !1 = $item, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'index.php'
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match'
          4        CONCAT                                           ~5      '%2F', !0
          5        CONCAT                                           ~6      ~5, '%2Fi'
          6        SEND_VAL                                                 ~6
          7        FETCH_DIM_R                                      ~7      !1, 'url'
          8        SEND_VAL                                                 ~7
          9        SEND_REF                                                 !2
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                                 
    6    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.31 ms | 1399 KiB | 19 Q