3v4l.org

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

Function dosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rE32d
function name:  doSomething
number of ops:  3
compiled vars:  !0 = $someVarOne, !1 = $someVarTwo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 10
    9     1        ASSIGN                                                   !1, 2
   10     2      > RETURN                                                   null

End of function dosomething

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.17 ms | 1396 KiB | 14 Q