3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getName(string $name) { echo $name; } $firstname = (int)4; $name = $firstname + "madeupsurname"; getName($name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2fQVi
function name:  (null)
number of ops:  8
compiled vars:  !0 = $firstname, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   CAST                                          4  ~2      4
          1        ASSIGN                                                   !0, ~2
    9     2        ADD                                              ~4      !0, 'madeupsurname'
          3        ASSIGN                                                   !1, ~4
   11     4        INIT_FCALL                                               'getname'
          5        SEND_VAR                                                 !1
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2fQVi
function name:  getName
number of ops:  3
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ECHO                                                     !0
    6     2      > RETURN                                                   null

End of function getname

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.32 ms | 1396 KiB | 14 Q