3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kms =300; $litres=40; function calc_milege() { $result=$GLOBAL['kms']/$GLOBAL['litres']; return $result; } $c=calc_milege; print "milege=".$c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KvgfY
function name:  (null)
number of ops:  7
compiled vars:  !0 = $kms, !1 = $litres, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 300
    3     1        ASSIGN                                                   !1, 40
   10     2        FETCH_CONSTANT                                   ~5      'calc_milege'
          3        ASSIGN                                                   !2, ~5
   11     4        CONCAT                                           ~7      'milege%3D', !2
          5        ECHO                                                     ~7
          6      > RETURN                                                   1

Function calc_milege:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KvgfY
function name:  calc_milege
number of ops:  6
compiled vars:  !0 = $result, !1 = $GLOBAL
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_DIM_R                                      ~2      !1, 'kms'
          1        FETCH_DIM_R                                      ~3      !1, 'litres'
          2        DIV                                              ~4      ~2, ~3
          3        ASSIGN                                                   !0, ~4
    7     4      > RETURN                                                   !0
    9     5*     > RETURN                                                   null

End of function calc_milege

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.5 ms | 1393 KiB | 13 Q