3v4l.org

run code in 300+ 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:  24
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      'GLOBALS'
         3        FETCH_DIM_R                                      ~3      ~2, 'a'
         4        SEND_VAL                                                 ~3
         5        DO_ICALL                                                 
   5     6        INIT_FCALL                                               'var_dump'
         7        INIT_FCALL                                               'array_search'
         8        SEND_VAL                                                 22
         9        FETCH_R                      global              ~5      'GLOBALS'
        10        SEND_VAL                                                 ~5
        11        DO_ICALL                                         $6      
        12        SEND_VAR                                                 $6
        13        DO_ICALL                                                 
   6    14        INIT_FCALL                                               'var_dump'
        15        INIT_FCALL                                               'array_search'
        16        SEND_VAL                                                 22
        17        FETCH_R                      global              ~8      'GLOBALS'
        18        SEND_VAL                                                 ~8
        19        SEND_VAL                                                 <true>
        20        DO_ICALL                                         $9      
        21        SEND_VAR                                                 $9
        22        DO_ICALL                                                 
        23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
17.12 ms | 893 KiB | 7 Q