3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('strict_types', 1); function hello(string $s) : int { echo "$s\n"; return 42; } $i = hello(1234); echo $i;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ifIU7
function name:  (null)
number of ops:  10
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'strict_types'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'hello'
          5        SEND_VAL                                                 1234
          6        DO_FCALL                                      0  $2      
          7        ASSIGN                                                   !0, $2
   10     8        ECHO                                                     !0
          9      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ifIU7
function name:  hello
number of ops:  7
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, '%0A'
          3        ECHO                                                     ~1
    6     4      > RETURN                                                   42
    7     5*       VERIFY_RETURN_TYPE                                       
          6*     > RETURN                                                   null

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.94 ms | 1397 KiB | 16 Q