3v4l.org

run code in 300+ PHP versions simultaneously
<?php $someVarOne = 5; $someVarTwo = 3; function doSomething() { $someVarOne = 10; $someVarTwo = 2; } doSomething(); echo $someVarOne."<br/>".$someVarTwo;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/puP15
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, '%3Cbr%2F%3E'
          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/puP15
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:
173.64 ms | 1401 KiB | 14 Q