3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=10; $y=5; function scambia($a,$b){ $tmp = $a; $a = $b; $b = $tmp; } echo 'x vale '.$x; echo "\n"; scambia($x,$y); echo 'adesso x vale '.$x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IVaI5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10
    3     1        ASSIGN                                                   !1, 5
   12     2        CONCAT                                           ~4      'x+vale+', !0
          3        ECHO                                                     ~4
   14     4        ECHO                                                     '%0A'
   16     5        INIT_FCALL                                               'scambia'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_FCALL                                      0          
   18     9        CONCAT                                           ~6      'adesso+x+vale+', !0
         10        ECHO                                                     ~6
         11      > RETURN                                                   1

Function scambia:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IVaI5
function name:  scambia
number of ops:  6
compiled vars:  !0 = $a, !1 = $b, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        ASSIGN                                                   !2, !0
    7     3        ASSIGN                                                   !0, !1
    8     4        ASSIGN                                                   !1, !2
    9     5      > RETURN                                                   null

End of function scambia

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.01 ms | 1397 KiB | 14 Q