3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump([ "allowCredits" => true, "attributeValueImageMap" => [], "buyWithMeMode" => "i", "checklist" => [ "images" => true, "productDetails" => true, "published" => true, "sellerCopy" => false, "video" => false, ], "clearance" => false, "cs" => false, "customizable" => false, "description" => '<p>A <b>circle</b> is a simple <a href="http://en.wikipedia.org/wiki/Shape">shape</a> of <a href="http://en.wikipedia.org/wiki/Euclidean_geometry">Euclidean geometry</a> that is the set of all <a href="http://en.wikipedia.org/wiki/Point_%28geometry%29">points</a> in a <a href="http://en.wikipedia.org/wiki/Plane_%28mathematics%29">plane</a> that are at a given distance from a given point, the <a href="http://en.wikipedia.org/wiki/Centre_%28geometry%29">centre</a>. The distance between any of the points and the centre is called the <a href="http://en.wikipedia.org/wiki/Radius">radius</a>. It can also be defined as the locus of a point equidistant from a fixed point.<br></p>', "disc" => true, "estimatedShippingDays" => 7, "exclusive" => true, "freeShipping" => false, "handlingDetail" => "Our circles are delicate", "handlingFee" => 0, "hasBeenLive" => true, "introducedToFeed" => false, "lockedBy" => null, "loveCount" => 9, "ltl" => [ "$ref" => "identities", "$id" => new \MongoId(), ], "maxPrice" => 75.99, "media" => [ "images" => [ [ "_id" => new \MongoId(), "h" => 594, "highRes" => false, "oq" => 90, "percentWhitespace" => 91, "pid" => "c14b55a", "processed" => true, "processingQueued" => false, "resolution" => [ "x" => 72, "y" => 72, ], "t" => "jpeg", "versions" => [ "original" => "images/2013/09/23/16/5240a14272989a9e5d000122.jpg", "source" => "images/2013/09/23/16/5240a14272989a9e5d000122-source.jpeg", "transformed" => "images/2015/04/14/08/5240a14272989a9e5d000122-transformed.jpeg", ], "w" => 594, ], ], "unusedImages" => [], "videoUrl" => "", ], "metadata" => [ "comments" => [], "copySourced" => false, "financeApproved" => false, "imageSourced" => false, "productSourced" => false, "readyForEmail" => false, "team" => [ [ "role" => "Creator", ], [ "role" => "Buyer", ], [ "role" => "Producer", ], ], ], "minPrice" => 75.99, "mrch" => new \MongoId(), "name" => "Circle", "numActivities" => 10, "numComments" => 1, "numPageViews" => 53, "originator" => [ "$ref" => "originators", "$id" => new \MongoId(), ], "primaryTaxon" => [ "$ref" => "taxonomy", "$id" => new \MongoId(), ], "private" => false, "product" => [ "type" => "simple", "$ref" => "products", "$id" => new \MongoId(), ], "promoAllowCredits" => true, "pt" => "simple", "returnPolicy" => 14, "seller" => [ "$ref" => "sellers", "$id" => new \MongoId(), ], "shippingDetail" => "Our circles are delicate", "shippingPrice" => 4.95, "shippingPrices" => [ [ "zoneId" => 237, "price" => 6.95, "secondaryPrice" => 6.95, ], ], "slug" => "circle", "status" => "inactive", "subscription" => false, "tags" => [], "taxonomy" => [ [ "$ref" => "taxonomy", "$id" => new \MongoId(), ], ], "voucher" => false ]);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: Undefined variable $ref in /in/klfss on line 29 Warning: Undefined variable $id in /in/klfss on line 30 Fatal error: Uncaught Error: Class "MongoId" not found in /in/klfss:30 Stack trace: #0 {main} thrown in /in/klfss on line 30
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: Undefined variable $ref in /in/klfss on line 29 Warning: Undefined variable $id in /in/klfss on line 30 Fatal error: Uncaught Error: Class "MongoId" not found in /in/klfss:30 Stack trace: #0 {main} thrown in /in/klfss on line 30
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: ref in /in/klfss on line 29 Notice: Undefined variable: id in /in/klfss on line 30 Fatal error: Uncaught Error: Class 'MongoId' not found in /in/klfss:30 Stack trace: #0 {main} thrown in /in/klfss on line 30
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Fatal error: Uncaught Error: Class 'MongoId' not found in /in/klfss:30 Stack trace: #0 {main} thrown in /in/klfss on line 30
Process exited with code 255.
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.28
Notice: Undefined variable: ref in /in/klfss on line 29 Notice: Undefined variable: id in /in/klfss on line 30 Fatal error: Class 'MongoId' not found in /in/klfss on line 30
Process exited with code 255.

preferences:
198.57 ms | 402 KiB | 228 Q