3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo"hello world"; $x=20; $y=30; $z=$x+$y; echo"$z"; function dear() { $a=10; echo"$a"; } dear();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gq7Ef
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'hello+world'
    3     1        ASSIGN                                                   !0, 20
    4     2        ASSIGN                                                   !1, 30
    5     3        ADD                                              ~5      !0, !1
          4        ASSIGN                                                   !2, ~5
    6     5        CAST                                          6  ~7      !2
          6        ECHO                                                     ~7
   12     7        INIT_FCALL                                               'dear'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function dear:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gq7Ef
function name:  dear
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 10
   10     1        CAST                                          6  ~2      !0
          2        ECHO                                                     ~2
   11     3      > RETURN                                                   null

End of function dear

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.26 ms | 1397 KiB | 14 Q