3v4l.org

run code in 300+ PHP versions simultaneously
<?php $swag = []; print_r($swag); print_r($swoog); $class = '1.2.3.4.5.6'; $base = explode(".", $class)["0"]; echo $base;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L7Rl7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $swag, !1 = $swoog, !2 = $class, !3 = $base
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
    5     7        ASSIGN                                                   !2, '1.2.3.4.5.6'
    6     8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '.'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $8      
         12        FETCH_DIM_R                                      ~9      $8, 0
         13        ASSIGN                                                   !3, ~9
    7    14        ECHO                                                     !3
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
279.15 ms | 1394 KiB | 18 Q