3v4l.org

run code in 300+ PHP versions simultaneously
<?php $full_name = 'Jason'; $name = explode(' ', $full_name, 2); if(count($name) < 2) { $this->first_name = null; $this->last_name = $name[0]; } else { $this->first_name = $name[0]; $this->last_name = $name[1]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lEpiD
function name:  (null)
number of ops:  27
compiled vars:  !0 = $full_name, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Jason'
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    7     7        COUNT                                            ~5      !1
          8        IS_SMALLER                                               ~5, 2
          9      > JMPZ                                                     ~6, ->18
    9    10    >   FETCH_THIS                                       $7      
         11        ASSIGN_OBJ                                               $7, 'first_name'
         12        OP_DATA                                                  null
   10    13        FETCH_THIS                                       $9      
         14        FETCH_DIM_R                                      ~11     !1, 0
         15        ASSIGN_OBJ                                               $9, 'last_name'
         16        OP_DATA                                                  ~11
         17      > JMP                                                      ->26
   14    18    >   FETCH_THIS                                       $12     
         19        FETCH_DIM_R                                      ~14     !1, 0
         20        ASSIGN_OBJ                                               $12, 'first_name'
         21        OP_DATA                                                  ~14
   15    22        FETCH_THIS                                       $15     
         23        FETCH_DIM_R                                      ~17     !1, 1
         24        ASSIGN_OBJ                                               $15, 'last_name'
         25        OP_DATA                                                  ~17
   16    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.23 ms | 1395 KiB | 15 Q