3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $deliverable = (object) array( 'sku' => 'M/Monit License #', 'price' => 0, 'qty' => 1, ); $deliverable->sku = "hello"; $deliverable->price = 1.03; print $deliverable->sku; print $deliverable->price; print $deliverable->qty; var_dump($deliverable);
based on e5fIm
Output for 5.0.0 - 7.1.0
hello1.031object(stdClass)#1 (3) { ["sku"]=> string(5) "hello" ["price"]=> float(1.03) ["qty"]=> int(1) }
Output for 4.3.0 - 4.4.9
hello1.031object(stdClass)(3) { ["sku"]=> string(5) "hello" ["price"]=> float(1.03) ["qty"]=> int(1) }