3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 10; $y = 44; function scambia ($a, $b){ $tmp = $a; $a = $b; $b = $tmp; } echo "il valore di x è ".$x; scambia($x,$y); echo "\n"; echo "il valore di x è ".$x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GG9oj
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, 44
   11     2        CONCAT                                           ~4      'il+valore+di+x+%C3%A8+', !0
          3        ECHO                                                     ~4
   13     4        INIT_FCALL                                               'scambia'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_FCALL                                      0          
   15     8        ECHO                                                     '%0A'
   17     9        CONCAT                                           ~6      'il+valore+di+x+%C3%A8+', !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/GG9oj
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:
169.25 ms | 1397 KiB | 14 Q