3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace myns; function trim($str, $charlist="ab") { return \trim($str, $charlist); } var_dump(trim("abc"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kMk9J
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'myns%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'myns%5Ctrim'
          2        SEND_VAL_EX                                              'abc'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR_NO_REF_EX                                       $0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function myns%5Ctrim:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kMk9J
function name:  myns\trim
number of ops:  8
compiled vars:  !0 = $str, !1 = $charlist
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'ab'
    5     2        INIT_FCALL                                               'trim'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $2      
          6      > RETURN                                                   $2
    6     7*     > RETURN                                                   null

End of function myns%5Ctrim

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.53 ms | 1394 KiB | 17 Q