3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); function hello(string $s) : void { echo "$s\n"; } function fourtyTwo() : int { 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/4KXn6
function name:  (null)
number of ops:  6
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'hello'
          1        SEND_VAL                                                 '1234'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   13     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KXn6
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        NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, '%0A'
          3        ECHO                                                     ~1
    6     4      > RETURN                                                   null

End of function hello

Function fourtytwo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KXn6
function name:  fourtyTwo
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   VERIFY_RETURN_TYPE                               ~0      '42'
          1      > RETURN                                                   ~0
   10     2*       VERIFY_RETURN_TYPE                                       
          3*     > RETURN                                                   null

End of function fourtytwo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.12 ms | 1397 KiB | 14 Q