3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139 ms | 1395 KiB | 17 Q