3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.12 ms | 1386 KiB | 21 Q