3v4l.org

run code in 300+ PHP versions simultaneously
<?php // list() doesn't work with strings list($bar) = "abcde"; var_dump($bar); $string = "abcde"; list($foo) = $string; var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IoHlF
function name:  (null)
number of ops:  14
compiled vars:  !0 = $bar, !1 = $string, !2 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_LIST_R                                     $3      'abcde', 0
          1        ASSIGN                                                   !0, $3
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        ASSIGN                                                   !1, 'abcde'
    7     6        QM_ASSIGN                                        ~7      !1
          7        FETCH_LIST_R                                     $8      ~7, 0
          8        ASSIGN                                                   !2, $8
          9        FREE                                                     ~7
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1394 KiB | 15 Q