3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($foo[], $foo[]) = explode(',', 'a,b,c,d,e,f'); $item = implode(',', array_reverst($foo)); var_dump($item);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lfUUg
function name:  (null)
number of ops:  23
compiled vars:  !0 = $foo, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%2C'
          2        SEND_VAL                                                 'a%2Cb%2Cc%2Cd%2Ce%2Cf'
          3        DO_ICALL                                         $2      
          4        FETCH_LIST_R                                     $3      $2, 0
          5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  $3
          7        FETCH_LIST_R                                     $5      $2, 1
          8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  $5
         10        FREE                                                     $2
    3    11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%2C'
         13        INIT_FCALL_BY_NAME                                       'array_reverst'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !1, $8
    4    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.23 ms | 1386 KiB | 19 Q