3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('strict_types', 1); function hello(string $s) : int { echo $s; 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/G4AQP
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/G4AQP
function name:  hello
number of ops:  5
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ECHO                                                     !0
    6     2      > RETURN                                                   42
    7     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.06 ms | 1397 KiB | 16 Q