3v4l.org

run code in 300+ PHP versions simultaneously
<?php function out(&$x) { $x = 1; } out($a); $b = NULL; out($b); out($c = NULL); echo "[$a,$b,$c]";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uWdJp
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'out'
          1        SEND_REF                                                 !0
          2        DO_FCALL                                      0          
    4     3        ASSIGN                                                   !1, null
    5     4        INIT_FCALL                                               'out'
          5        SEND_REF                                                 !1
          6        DO_FCALL                                      0          
    6     7        INIT_FCALL                                               'out'
          8        ASSIGN                                           ~6      !2, null
          9        SEND_VAL_EX                                              ~6
         10        DO_FCALL                                      0          
    7    11        ROPE_INIT                                     7  ~9      '%5B'
         12        ROPE_ADD                                      1  ~9      ~9, !0
         13        ROPE_ADD                                      2  ~9      ~9, '%2C'
         14        ROPE_ADD                                      3  ~9      ~9, !1
         15        ROPE_ADD                                      4  ~9      ~9, '%2C'
         16        ROPE_ADD                                      5  ~9      ~9, !2
         17        ROPE_END                                      6  ~8      ~9, '%5D'
         18        ECHO                                                     ~8
         19      > RETURN                                                   1

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

End of function out

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.74 ms | 1398 KiB | 16 Q