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 MZkqI
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: totalCost in /in/2dfhF on line 4 Fatal error: Uncaught Error: Call to undefined function vardump() in /in/2dfhF:5 Stack trace: #0 {main} thrown in /in/2dfhF on line 5
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Notice: Undefined variable: totalCost in /in/2dfhF on line 4 Fatal error: Call to undefined function vardump() in /in/2dfhF on line 5
Process exited with code 255.