3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = 22; var_dump($GLOBALS["a"]); // int 22 var_dump(array_search(22, $GLOBALS)); // false var_dump(array_search(22, $GLOBALS, true)); // false
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eFFTd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 22
    4     1        INIT_FCALL                                                   'var_dump'
          2        FETCH_R                          global              ~2      'a'
          3        SEND_VAL                                                     ~2
          4        DO_ICALL                                                     
    5     5        INIT_FCALL                                                   'var_dump'
          6        INIT_FCALL                                                   'array_search'
          7        SEND_VAL                                                     22
          8        FETCH_GLOBALS                                        ~4      
          9        SEND_VAL                                                     ~4
         10        DO_ICALL                                             $5      
         11        SEND_VAR                                                     $5
         12        DO_ICALL                                                     
    6    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL                                                   'array_search'
         15        SEND_VAL                                                     22
         16        FETCH_GLOBALS                                        ~7      
         17        SEND_VAL                                                     ~7
         18        SEND_VAL                                                     <true>
         19        DO_ICALL                                             $8      
         20        SEND_VAR                                                     $8
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.6 ms | 2286 KiB | 15 Q