3v4l.org

run code in 300+ PHP versions simultaneously
e<?php $a = 'foo'; $temporaryA = $a; $a = md5('value for finding ' . uniqid()); $variables = get_defined_vars(); $key = array_search($a, $variables, true); var_dump($key); $a = $temporaryA; unset ($temporaryA);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PDPSC
function name:  (null)
number of ops:  25
compiled vars:  !0 = $a, !1 = $temporaryA, !2 = $variables, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'e'
    3     1        ASSIGN                                                   !0, 'foo'
    5     2        ASSIGN                                                   !1, !0
    7     3        INIT_FCALL                                               'md5'
          4        INIT_FCALL                                               'uniqid'
          5        DO_ICALL                                         $6      
          6        CONCAT                                           ~7      'value+for+finding+', $6
          7        SEND_VAL                                                 ~7
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !0, $8
    9    10        INIT_FCALL                                               'get_defined_vars'
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !2, $10
   11    13        INIT_FCALL                                               'array_search'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !2
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !3, $12
   13    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
   15    22        ASSIGN                                                   !0, !1
   17    23        UNSET_CV                                                 !1
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.68 ms | 1395 KiB | 23 Q