3v4l.org

run code in 300+ PHP versions simultaneously
<?php function example($str) { is_string($str); } function example_ref(& $str) { is_string($str); } $a = 'xx'; example($a); example_ref($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M8XVm
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'xx'
   12     1        INIT_FCALL                                               'example'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   13     4        INIT_FCALL                                               'example_ref'
          5        SEND_REF                                                 !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function example:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M8XVm
function name:  example
number of ops:  4
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        TYPE_CHECK                                   64  ~1      !0
          2        FREE                                                     ~1
    5     3      > RETURN                                                   null

End of function example

Function example_ref:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M8XVm
function name:  example_ref
number of ops:  4
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        TYPE_CHECK                                   64  ~1      !0
          2        FREE                                                     ~1
    9     3      > RETURN                                                   null

End of function example_ref

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.18 ms | 1397 KiB | 15 Q