3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a'=>'lastname', 'b'=>'email', 'c'=>'phone'); echo implode(',', $array); define('DEFAULT_ROLES', implode (',' , $array)); echo '<pre>'; print_r(explode(',' ,DEFAULT_ROLES ),1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nFf6j
function name:  (null)
number of ops:  25
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        ECHO                                                     '%3Cpre%3E'
    6    15        INIT_FCALL                                               'print_r'
         16        INIT_FCALL                                               'explode'
         17        SEND_VAL                                                 '%2C'
         18        FETCH_CONSTANT                                   ~5      'DEFAULT_ROLES'
         19        SEND_VAL                                                 ~5
         20        DO_ICALL                                         $6      
         21        SEND_VAR                                                 $6
         22        SEND_VAL                                                 1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.14 ms | 1386 KiB | 21 Q