3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query['Role'] = "Student"; var_dump( $query['Role'], $query['Role'] == "Student"); if ( $query['Role'] == "Student") { echo "Yes it does."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/35brc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'Role'
          1        OP_DATA                                                  'Student'
    4     2        INIT_FCALL                                               'var_dump'
          3        FETCH_DIM_R                                      ~2      !0, 'Role'
          4        SEND_VAL                                                 ~2
          5        FETCH_DIM_R                                      ~3      !0, 'Role'
          6        IS_EQUAL                                         ~4      ~3, 'Student'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
    6     9        FETCH_DIM_R                                      ~6      !0, 'Role'
         10        IS_EQUAL                                                 ~6, 'Student'
         11      > JMPZ                                                     ~7, ->13
         12    >   ECHO                                                     'Yes+it+does.'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.88 ms | 1394 KiB | 15 Q