3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ${" "} = "blank space"; ${"123"} = 456; var_dump(${" "},${"123"}); $a = get_defined_vars(); echo array_key_exists(" ",$a)? "Yes" : "No","\n"; echo array_key_exists("123",$a)? "Yes" : "No";
based on TXEHc
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
Jump found. Position 1 = 17
Branch analysis from position: 17
Jump found. Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
Jump found. Position 1 = 27
Branch analysis from position: 27
Jump found. Position 1 = -2
Branch analysis from position: 26
Jump found. Position 1 = -2
Branch analysis from position: 16
Jump found. Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
Branch analysis from position: 26
filename:       /in/a3qNp
function name:  (null)
number of ops:  29
compiled vars:  !0 = $ , !1 = $123, !2 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'blank+space'
   4     1        ASSIGN                                                   !1, 456
   5     2        INIT_FCALL                                               'var_dump'
         3        SEND_VAR                                                 !0
         4        SEND_VAR                                                 !1
         5        DO_ICALL                                                 
   6     6        INIT_FCALL                                               'get_defined_vars'
         7        DO_ICALL                                         $6      
         8        ASSIGN                                                   !2, $6
   7     9        INIT_FCALL                                               'array_key_exists'
        10        SEND_VAL                                                 '+'
        11        SEND_VAR                                                 !2
        12        DO_ICALL                                         $8      
        13      > JMPZ                                                     $8, ->16
        14    >   QM_ASSIGN                                        ~9      'Yes'
        15      > JMP                                                      ->17
        16    >   QM_ASSIGN                                        ~9      'No'
        17    >   ECHO                                                     ~9
        18        ECHO                                                     '%0A'
   8    19        INIT_FCALL                                               'array_key_exists'
        20        SEND_VAL                                                 '123'
        21        SEND_VAR                                                 !2
        22        DO_ICALL                                         $10     
        23      > JMPZ                                                     $10, ->26
        24    >   QM_ASSIGN                                        ~11     'Yes'
        25      > JMP                                                      ->27
        26    >   QM_ASSIGN                                        ~11     'No'
        27    >   ECHO                                                     ~11
        28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0