3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "Foo"; $b = "Bar"; function testIt (&$b){ $b = "Yay!"; } testIt($a); testIt($b); print "$a\n"; print "$b\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/udH2c
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Foo'
    3     1        ASSIGN                                                   !1, 'Bar'
    8     2        INIT_FCALL                                               'testit'
          3        SEND_REF                                                 !0
          4        DO_FCALL                                      0          
    9     5        INIT_FCALL                                               'testit'
          6        SEND_REF                                                 !1
          7        DO_FCALL                                      0          
   11     8        NOP                                                      
          9        FAST_CONCAT                                      ~6      !0, '%0A'
         10        ECHO                                                     ~6
   12    11        NOP                                                      
         12        FAST_CONCAT                                      ~7      !1, '%0A'
         13        ECHO                                                     ~7
         14      > RETURN                                                   1

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

End of function testit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.53 ms | 1401 KiB | 15 Q