3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Dan Holmes"; $first_name = "Subscriber"; $nameParts = explode(" ", $name); if($nameParts) { $first_name = $nameParts[0]; } var_dump($first_name);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/qW4d6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $name, !1 = $first_name, !2 = $nameParts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Dan+Holmes'
    3     1        ASSIGN                                                   !1, 'Subscriber'
    4     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    5     7      > JMPZ                                                     !2, ->10
    6     8    >   FETCH_DIM_R                                      ~7      !2, 0
          9        ASSIGN                                                   !1, ~7
    9    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.24 ms | 1385 KiB | 17 Q