3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('lastname', 'email', 'phone'); define('DEFAULT_ROLES', implode (',' , $array)); echo explode(',' ,DEFAULT_ROLES ) [1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jFBrs
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'define'
          2        SEND_VAL                                                 'DEFAULT_ROLES'
          3        INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 '%2C'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    4     9        INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%2C'
         11        FETCH_CONSTANT                                   ~4      'DEFAULT_ROLES'
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                         $5      
         14        FETCH_DIM_R                                      ~6      $5, 1
         15        ECHO                                                     ~6
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.01 ms | 1385 KiB | 19 Q