3v4l.org

run code in 300+ PHP versions simultaneously
<?php $e=explode(".","image.jpg"); echo $e.length(); echo $e[1]; echo $e[2]; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MIiDG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '.'
          2        SEND_VAL                                                 'image.jpg'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        INIT_FCALL_BY_NAME                                       'length'
          6        DO_FCALL                                      0  $3      
          7        CONCAT                                           ~4      !0, $3
          8        ECHO                                                     ~4
    4     9        FETCH_DIM_R                                      ~5      !0, 1
         10        ECHO                                                     ~5
    5    11        FETCH_DIM_R                                      ~6      !0, 2
         12        ECHO                                                     ~6
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.52 ms | 1394 KiB | 15 Q