3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'sagar.surendra.desai'; $exp = explode('.', $string); print_r(array_values($exp)); print_r(array('sagar' => array('surendra' => array('desai' => 'test'))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CLMUA
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $exp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'sagar.surendra.desai'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    7     6        INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'array_values'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
   11    12        INIT_FCALL                                               'print_r'
         13        SEND_VAL                                                 <array>
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.26 ms | 1394 KiB | 19 Q