3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function foo(array $array): string { return implode(', ', $array); } echo foo([1,2,3]); echo foo([[]]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Srifn
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'foo'
          1        SEND_VAL                                                     <array>
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
   10     4        INIT_FCALL                                                   'foo'
          5        SEND_VAL                                                     <array>
          6        DO_FCALL                                          0  $1      
          7        ECHO                                                         $1
          8      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Srifn
function name:  foo
number of ops:  6
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
    6     1        FRAMELESS_ICALL_2                implode             ~1      '%2C+', !0
          2        VERIFY_RETURN_TYPE                                           ~1
          3      > RETURN                                                       ~1
    7     4*       VERIFY_RETURN_TYPE                                           
          5*     > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.29 ms | 479 KiB | 9 Q