3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p1 = 5; $p2 = 5; function test($param1, &$param2) { $param1 = 2; $param2 = 2; } test($p1, $p2); //Wyjaśnij cos się stało :) //Explain what happend here :) ? echo "p1: ".$p1. "<br />p2: ". $p2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r4e5s
function name:  (null)
number of ops:  11
compiled vars:  !0 = $p1, !1 = $p2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 5
    6     1        ASSIGN                                                   !1, 5
   13     2        INIT_FCALL                                               'test'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_FCALL                                      0          
   18     6        CONCAT                                           ~5      'p1%3A+', !0
          7        CONCAT                                           ~6      ~5, '%3Cbr+%2F%3Ep2%3A+'
          8        CONCAT                                           ~7      ~6, !1
          9        ECHO                                                     ~7
         10      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r4e5s
function name:  test
number of ops:  5
compiled vars:  !0 = $param1, !1 = $param2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ASSIGN                                                   !0, 2
   11     3        ASSIGN                                                   !1, 2
   12     4      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.14 ms | 1397 KiB | 14 Q