3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Rick { public static function catchphrase() { echo 'wubba lubba dub dub'; echo PHP_EOL; } public static function say(string ...$words) { echo implode(' ',$words); } } Rick::say('wubba','lubba','dub','dub');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kuAv2
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_STATIC_METHOD_CALL                                  'Rick', 'say'
          1        SEND_VAL                                                 'wubba'
          2        SEND_VAL                                                 'lubba'
          3        SEND_VAL                                                 'dub'
          4        SEND_VAL                                                 'dub'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Rick:
Function catchphrase:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kuAv2
function name:  catchphrase
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'wubba+lubba+dub+dub'
    5     1        ECHO                                                     '%0A'
    6     2      > RETURN                                                   null

End of function catchphrase

Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kuAv2
function name:  say
number of ops:  7
compiled vars:  !0 = $words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_VARIADIC                                    !0      
    8     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        ECHO                                                     $1
    9     6      > RETURN                                                   null

End of function say

End of class Rick.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.37 ms | 1395 KiB | 15 Q