3v4l.org

run code in 300+ PHP versions simultaneously
<?php function return_bytes($val){ $val = trim($val); $last =str_split($val); echo $last[1]; } echo "las".return_bytes("8M"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qq8iA
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'return_bytes'
          1        SEND_VAL                                                 '8M'
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      'las', $0
          4        ECHO                                                     ~1
   13     5      > RETURN                                                   1

Function return_bytes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qq8iA
function name:  return_bytes
number of ops:  12
compiled vars:  !0 = $val, !1 = $last
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    6     5        INIT_FCALL                                               'str_split'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    8     9        FETCH_DIM_R                                      ~6      !1, 1
         10        ECHO                                                     ~6
   10    11      > RETURN                                                   null

End of function return_bytes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.52 ms | 1401 KiB | 18 Q