3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.24 ms | 1007 KiB | 17 Q