3v4l.org

run code in 300+ PHP versions simultaneously
<?php $submission['group_1']['city'] = 'asd'; $city = isset($submission['group_1']['city']) ? $submission['group_1']['city'] : ''; echo preg_match('/^asd$/', $city);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vbeeh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $submission, !1 = $city
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_W                                      $2      !0, 'group_1'
          1        ASSIGN_DIM                                               $2, 'city'
          2        OP_DATA                                                  'asd'
    3     3        FETCH_DIM_IS                                     ~4      !0, 'group_1'
          4        ISSET_ISEMPTY_DIM_OBJ                         0          ~4, 'city'
          5      > JMPZ                                                     ~5, ->10
          6    >   FETCH_DIM_R                                      ~6      !0, 'group_1'
          7        FETCH_DIM_R                                      ~7      ~6, 'city'
          8        QM_ASSIGN                                        ~8      ~7
          9      > JMP                                                      ->11
         10    >   QM_ASSIGN                                        ~8      ''
         11    >   ASSIGN                                                   !1, ~8
    4    12        INIT_FCALL                                               'preg_match'
         13        SEND_VAL                                                 '%2F%5Easd%24%2F'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        ECHO                                                     $10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.54 ms | 1451 KiB | 14 Q