3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new Test(); echo $test->send('', ''); class Test { public function send(string $to, string $message): string { return "sent"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZSYI
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        INIT_METHOD_CALL                                         !0, 'send'
          4        SEND_VAL_EX                                              ''
          5        SEND_VAL_EX                                              ''
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
   13     8      > RETURN                                                   1

Class Test:
Function send:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZSYI
function name:  send
number of ops:  5
compiled vars:  !0 = $to, !1 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2      > RETURN                                                   'sent'
   12     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function send

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.11 ms | 1397 KiB | 13 Q