3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'id_rating_review' => 'foo', ); $first = array_shift($data); #var_dump($first); # var_dump(isset( # $first['id_rating_review'] # )); $string = 'string'; var_dump($string[0]); var_dump(isset($string['foo'])); var_dump($string['foo']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OsrPG
function name:  (null)
number of ops:  19
compiled vars:  !0 = $data, !1 = $first, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_shift'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   11     5        ASSIGN                                                   !2, 'string'
   12     6        INIT_FCALL                                               'var_dump'
          7        FETCH_DIM_R                                      ~7      !2, 0
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                                 
   13    10        INIT_FCALL                                               'var_dump'
         11        ISSET_ISEMPTY_DIM_OBJ                         0  ~9      !2, 'foo'
         12        SEND_VAL                                                 ~9
         13        DO_ICALL                                                 
   14    14        INIT_FCALL                                               'var_dump'
         15        FETCH_DIM_R                                      ~11     !2, 'foo'
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.85 ms | 1394 KiB | 17 Q