3v4l.org

run code in 300+ PHP versions simultaneously
<?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/F0gDW
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $temporaryA, !2 = $variables, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    5     1        ASSIGN                                                   !1, !0
    7     2        INIT_FCALL                                               'md5'
          3        INIT_FCALL                                               'uniqid'
          4        DO_ICALL                                         $6      
          5        CONCAT                                           ~7      'value+for+finding+', $6
          6        SEND_VAL                                                 ~7
          7        DO_ICALL                                         $8      
          8        ASSIGN                                                   !0, $8
    9     9        INIT_FCALL                                               'get_defined_vars'
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !2, $10
   11    12        INIT_FCALL                                               'array_search'
         13        SEND_VAR                                                 !0
         14        SEND_VAR                                                 !2
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $12     
         17        ASSIGN                                                   !3, $12
   13    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !3
         20        DO_ICALL                                                 
   15    21        ASSIGN                                                   !0, !1
   17    22        UNSET_CV                                                 !1
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.23 ms | 1395 KiB | 23 Q