3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 250; function x ($b){ $a = 250 +$b; return $a; } x(50); echo $a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XANnJ
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 250
   12     1        INIT_FCALL                                               'x'
          2        SEND_VAL                                                 50
          3        DO_FCALL                                      0          
   14     4        ECHO                                                     !0
          5      > RETURN                                                   1

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

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1397 KiB | 14 Q