3v4l.org

run code in 300+ PHP versions simultaneously
<?php $totaltcost = 3; $costperunit = 2; $fillCost = array("cost" => $totalCost, "costxunit" => $costperunit); echo $fillCost.cost;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MZkqI
function name:  (null)
number of ops:  9
compiled vars:  !0 = $totaltcost, !1 = $costperunit, !2 = $fillCost, !3 = $totalCost
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3
    3     1        ASSIGN                                                   !1, 2
    4     2        INIT_ARRAY                                       ~6      !3, 'cost'
          3        ADD_ARRAY_ELEMENT                                ~6      !1, 'costxunit'
          4        ASSIGN                                                   !2, ~6
    5     5        FETCH_CONSTANT                                   ~8      'cost'
          6        CONCAT                                           ~9      !2, ~8
          7        ECHO                                                     ~9
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.71 ms | 1392 KiB | 13 Q