3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = "20210721153256,1100,TXKEY,89790"; $ary = explode (",", $buffer); $x = $ary[2]; print $x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GH1pk
function name:  (null)
number of ops:  10
compiled vars:  !0 = $buffer, !1 = $ary, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '20210721153256%2C1100%2CTXKEY%2C89790'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        FETCH_DIM_R                                      ~6      !1, 2
          7        ASSIGN                                                   !2, ~6
    7     8        ECHO                                                     !2
    8     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.27 ms | 1393 KiB | 15 Q