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); echo $c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hIL1
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $c
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                                         $2      
          4        FETCH_LIST_R                                     $3      $2, 1
          5        ASSIGN                                                   !0, $3
          6        FREE                                                     $2
    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                                         $6      
         14        FETCH_LIST_R                                     $7      $6, 1
         15        ASSIGN                                                   !0, $7
         16        FREE                                                     $6
    7    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
    9    20        ECHO                                                     !1
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.14 ms | 1395 KiB | 17 Q