3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someTest( $param1 ) { echo $param1 . "\n"; print_r( func_get_args()); } $param1 = "Sozinho funciona"; $param2 = "acompanhado nem por isso"; someTest($param1); someTest($param1, $param2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/inC2b
function name:  (null)
number of ops:  10
compiled vars:  !0 = $param1, !1 = $param2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'Sozinho+funciona'
    9     1        ASSIGN                                                   !1, 'acompanhado+nem+por+isso'
   11     2        INIT_FCALL                                               'sometest'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
   12     5        INIT_FCALL                                               'sometest'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function sometest:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/inC2b
function name:  someTest
number of ops:  8
compiled vars:  !0 = $param1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        CONCAT                                           ~1      !0, '%0A'
          2        ECHO                                                     ~1
    5     3        INIT_FCALL                                               'print_r'
          4        FUNC_GET_ARGS                                    ~2      
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
    6     7      > RETURN                                                   null

End of function sometest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1397 KiB | 17 Q