3v4l.org

run code in 300+ PHP versions simultaneously
<?php $in = "1234"; $arr = array($in => "foobar"); $keys = array_keys($arr); $out = $keys[0]; var_dump($keys); var_dump($in == $out); var_dump($in === $out); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QFirD
function name:  (null)
number of ops:  21
compiled vars:  !0 = $in, !1 = $arr, !2 = $keys, !3 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1234'
    4     1        INIT_ARRAY                                       ~5      'foobar', !0
          2        ASSIGN                                                   !1, ~5
    5     3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !2, $7
    6     7        FETCH_DIM_R                                      ~9      !2, 0
          8        ASSIGN                                                   !3, ~9
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'var_dump'
         13        IS_EQUAL                                         ~12     !0, !3
         14        SEND_VAL                                                 ~12
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'var_dump'
         17        IS_IDENTICAL                                     ~14     !0, !3
         18        SEND_VAL                                                 ~14
         19        DO_ICALL                                                 
   10    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.13 ms | 1395 KiB | 17 Q