3v4l.org

run code in 300+ PHP versions simultaneously
<?php function quote(&$string) { $string = "'$string'"; return $string; } $wo = '我'; quote($wo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/am7a6
function name:  (null)
number of ops:  5
compiled vars:  !0 = $wo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, '%E6%88%91'
    9     1        INIT_FCALL                                               'quote'
          2        SEND_REF                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function quote:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/am7a6
function name:  quote
number of ops:  7
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ROPE_INIT                                     3  ~2      '%27'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%27'
          4        ASSIGN                                                   !0, ~1
    5     5      > RETURN                                                   !0
    6     6*     > RETURN                                                   null

End of function quote

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.37 ms | 1396 KiB | 14 Q