3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isval($v) { return $v; } $a = []; $b = 1; var_dump(isval(@$a['foo'])); var_dump(isval($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oBcCG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, 1
   11     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'isval'
          4        BEGIN_SILENCE                                    ~4      
          5        FETCH_DIM_R                                      ~5      !0, 'foo'
          6        END_SILENCE                                              ~4
          7        SEND_VAL                                                 ~5
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
   13    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'isval'
         13        SEND_VAR                                                 !1
         14        DO_FCALL                                      0  $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Function isval:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oBcCG
function name:  isval
number of ops:  3
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   !0
    6     2*     > RETURN                                                   null

End of function isval

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.97 ms | 1012 KiB | 16 Q