3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.59 ms | 1395 KiB | 19 Q