3v4l.org

run code in 300+ PHP versions simultaneously
<?php function setthis($name, $value = "pampam"){ global ${"xy_1"}; ${"xy_1"} = 3; } setthis(); echo $xy_1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kUFmg
function name:  (null)
number of ops:  4
compiled vars:  !0 = $xy_1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'setthis'
          1        DO_FCALL                                      0          
   10     2        ECHO                                                     !0
          3      > RETURN                                                   1

Function setthis:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kUFmg
function name:  setthis
number of ops:  5
compiled vars:  !0 = $name, !1 = $value, !2 = $xy_1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      'pampam'
    4     2        BIND_GLOBAL                                              !2, 'xy_1'
    5     3        ASSIGN                                                   !2, 3
    6     4      > RETURN                                                   null

End of function setthis

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.71 ms | 1396 KiB | 14 Q