3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'foo'; $temporaryA = $a; $a = md5(uniqid()); var_dump($a); $variables = get_defined_vars(); $key = array_search($a, $variables); 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/dt6XQ
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
-------------------------------------------------------------------------------------
    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        SEND_VAR                                                 $6
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !0, $7
    9     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'get_defined_vars'
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !2, $10
   13    14        INIT_FCALL                                               'array_search'
         15        SEND_VAR                                                 !0
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !3, $12
   15    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
   17    22        ASSIGN                                                   !0, !1
   19    23        UNSET_CV                                                 !1
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.81 ms | 1395 KiB | 23 Q