3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mystring = null; $arr = get_defined_vars(); echo '<PRE>'; print_r($arr); echo in_array('mystring',$arr['mystring']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5hceE
function name:  (null)
number of ops:  15
compiled vars:  !0 = $mystring, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        INIT_FCALL                                               'get_defined_vars'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
    4     4        ECHO                                                     '%3CPRE%3E'
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'in_array'
          9        SEND_VAL                                                 'mystring'
         10        FETCH_DIM_R                                      ~6      !1, 'mystring'
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.04 ms | 1394 KiB | 19 Q