3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($x,$y) = explode( ' ', 'test set last', 2); var_dump($x); var_dump($y); var_dump( explode( ' ', 'test', 2) ); var_dump( explode( ' ', 'test set', 2) ); var_dump( explode( ' ', 'test set last', 2) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sSYeY
function name:  (null)
number of ops:  41
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '+'
          2        SEND_VAL                                                 'test+set+last'
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $2      
          5        FETCH_LIST_R                                     $3      $2, 0
          6        ASSIGN                                                   !0, $3
          7        FETCH_LIST_R                                     $5      $2, 1
          8        ASSIGN                                                   !1, $5
          9        FREE                                                     $2
    4    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'explode'
         18        SEND_VAL                                                 '+'
         19        SEND_VAL                                                 'test'
         20        SEND_VAL                                                 2
         21        DO_ICALL                                         $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                                 
    9    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'explode'
         26        SEND_VAL                                                 '+'
         27        SEND_VAL                                                 'test+set'
         28        SEND_VAL                                                 2
         29        DO_ICALL                                         $11     
         30        SEND_VAR                                                 $11
         31        DO_ICALL                                                 
   10    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'explode'
         34        SEND_VAL                                                 '+'
         35        SEND_VAL                                                 'test+set+last'
         36        SEND_VAL                                                 2
         37        DO_ICALL                                         $13     
         38        SEND_VAR                                                 $13
         39        DO_ICALL                                                 
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.54 ms | 1396 KiB | 17 Q