3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $totaltcost = 3; $costperunit = 2; $fillCost = array("cost" => $totalCost, "costxunit" => $costperunit); vardump($fillCost);
based on 2dfhF
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/IUDWH
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        INIT_FCALL_BY_NAME                                       'vardump'
         6        SEND_VAR_EX                                              !2
         7        DO_FCALL                                      0          
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0