3v4l.org

run code in 300+ PHP versions simultaneously
<?php function split_trim(string $str) { preg_match_all('/./us', $str, $retArray); if (isset($retArray[0])) { return $retArray[0]; } return false; } var_dump(split_trim('foobar'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r0L0H
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'split_trim'
          2        SEND_VAL                                                 'foobar'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function split_trim:
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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r0L0H
function name:  split_trim
number of ops:  12
compiled vars:  !0 = $str, !1 = $retArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F.%2Fus'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     6        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 0
          7      > JMPZ                                                     ~3, ->10
    7     8    >   FETCH_DIM_R                                      ~4      !1, 0
          9      > RETURN                                                   ~4
   10    10    > > RETURN                                                   <false>
   11    11*     > RETURN                                                   null

End of function split_trim

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.62 ms | 1397 KiB | 18 Q