3v4l.org

run code in 300+ PHP versions simultaneously
<?php $swag = array(); print_r($swag); $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/LHk8l
function name:  (null)
number of ops:  13
compiled vars:  !0 = $swag, !1 = $class, !2 = $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        ASSIGN                                                   !1, '1.2.3.4.5.6'
    5     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '.'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        FETCH_DIM_R                                      ~7      $6, 0
         10        ASSIGN                                                   !2, ~7
    6    11        ECHO                                                     !2
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.84 ms | 1394 KiB | 17 Q