3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.91 ms | 1386 KiB | 19 Q