3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.45 ms | 1394 KiB | 15 Q