3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Product { static function alloc($data) { return new static($data); } } class ProductBase extends Product { public $id, $sku2, $product_id2, $title2, $slug2, $active1; } class ProductView extends ProductBase { protected $table = 'product_offers_view'; public $id, $sku, $product_id, $title, $slug, $active, $description, $image, $store_id, $store_name, $vendor_id, $vendor_name, $category_id, $category_name, $in_stock, $store_one_price, $store_one_prev_price, $store_one_price_date, $store_one_prev_price_date, $store_one_price_delta, $store_one_in_stock, $store_two_price, $store_two_price_delta, $store_two_price_date, $store_two_prev_price_date, $store_two_prev_price, $store_two_in_stock, $store_three_price, $store_three_price_delta, $store_three_price_date, $store_three_prev_price_date, $store_three_prev_price, $store_three_in_stock; } for ($i = 0; $i < 100; $i++) { new ProductView($i); }
Output for 7.0.0 - 7.0.24, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7

preferences:
170.38 ms | 404 KiB | 196 Q