3v4l.org

run code in 300+ PHP versions simultaneously
<?php function trimo( string $string, string $additionalTrimChars = '' ): string { return trim(trim($string), $additionalTrimChars); } var_dump(trimo(' = hasen', '='));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s1HTD
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'trimo'
          2        SEND_VAL                                                 '+%3D+hasen'
          3        SEND_VAL                                                 '%3D'
          4        DO_FCALL                                      0  $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function trimo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.98 ms | 1397 KiB | 18 Q