3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($arg) { } $a = "some var"; $b = &$a; /* turn $a and $b into references */ foo($a); /* Reference mismatch */ foo($b); /* idem */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bRFcn
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'some+var'
    5     1        ASSIGN_REF                                               !1, !0
    7     2        INIT_FCALL                                               'foo'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
    8     5        INIT_FCALL                                               'foo'
          6        SEND_VAR                                                 !1
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.69 ms | 1388 KiB | 15 Q