3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "Whoooot!\n"; $b = (object)"It's an object!\n"; $c = &$a; $d = &$c; function testIt ($z){ print_r($z); } testIt($c); testIt($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/id6gd
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Whoooot%21%0A'
    3     1        CAST                                          8  ~5      'It%27s+an+object%21%0A'
          2        ASSIGN                                                   !1, ~5
    4     3        ASSIGN_REF                                               !2, !0
    5     4        ASSIGN_REF                                               !3, !2
   12     5        INIT_FCALL                                               'testit'
          6        SEND_VAR                                                 !2
          7        DO_FCALL                                      0          
   13     8        INIT_FCALL                                               'testit'
          9        SEND_VAR                                                 !3
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Function testit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/id6gd
function name:  testIt
number of ops:  5
compiled vars:  !0 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   10     4      > RETURN                                                   null

End of function testit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.6 ms | 1397 KiB | 17 Q