3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); 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/bndPo
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'out'
          4        SEND_REF                                                 !0
          5        DO_FCALL                                      0          
    5     6        ASSIGN                                                   !1, null
    6     7        INIT_FCALL                                               'out'
          8        SEND_REF                                                 !1
          9        DO_FCALL                                      0          
    7    10        INIT_FCALL                                               'out'
         11        ASSIGN                                           ~7      !2, null
         12        SEND_VAL_EX                                              ~7
         13        DO_FCALL                                      0          
    8    14        ROPE_INIT                                     7  ~10     '%5B'
         15        ROPE_ADD                                      1  ~10     ~10, !0
         16        ROPE_ADD                                      2  ~10     ~10, '%2C'
         17        ROPE_ADD                                      3  ~10     ~10, !1
         18        ROPE_ADD                                      4  ~10     ~10, '%2C'
         19        ROPE_ADD                                      5  ~10     ~10, !2
         20        ROPE_END                                      6  ~9      ~10, '%5D'
         21        ECHO                                                     ~9
         22      > RETURN                                                   1

Function out:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bndPo
function name:  out
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     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:
151.47 ms | 1398 KiB | 18 Q