3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Request { const METHOD_GET = 'GET'; const METHOD_POST = 'POST'; const METHOD_HEAD = 'HEAD'; const METHOD_PUT = 'PUT'; } $routes = array( '/product-list' => [ Request::METHOD_GET => [ 'alias' => 'catalog_product_list', 'controller' => 'Handel\Catalog\Controller\Product\ProductListController::class', 'method' => 'indexAction', 'requirements' => [], 'options' => [] ] ], '/product/{slug}' => [ Request::METHOD_GET => [ 'alias' => 'catalog_product', 'controller' => 'Handel\Catalog\Controller\Product\ProductController::class', 'method' => 'indexAction' ] ], '/compare' => [ Request::METHOD_GET => [ 'alias' => 'catalog_compare_index', 'controller' => 'Handel\Catalog\Controller\Product\CompareController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_compare_add', 'controller' => 'Handel\Catalog\Controller\Product\CompareController::class', 'method' => 'postAction' ] ], '/category-list' => [ Request::METHOD_GET => [ 'alias' => 'catalog_category_list', 'controller' => 'Handel\Catalog\Controller\Product\CategoryListController::class', 'method' => 'indexAction' ] ], '/category/{slug}' => [ Request::METHOD_GET => [ 'alias' => 'catalog_category', 'controller' => 'Handel\Catalog\Controller\Product\CategoryController::class', 'method' => 'indexAction' ] ], '/manufacturer-list' => [ Request::METHOD_GET => [ 'alias' => 'catalog_manufacturer_list', 'controller' => 'Handel\Catalog\Controller\Product\ManufacturerListController::class', 'method' => 'indexAction' ] ], '/manufacturer/{slug}' => [ Request::METHOD_GET => [ 'alias' => 'catalog_manufacturer', 'controller' => 'Handel\Catalog\Controller\Product\ManufacturerController::class', 'method' => 'indexAction' ] ], '/information-list' => [ Request::METHOD_GET => [ 'alias' => 'catalog_information_list', 'controller' => 'Handel\Catalog\Controller\Information\InformationListController::class', 'method' => 'indexAction' ] ], '/information/{slug}' => [ Request::METHOD_GET => [ 'alias' => 'catalog_information', 'controller' => 'Handel\Catalog\Controller\Information\InformationController::class', 'method' => 'indexAction' ] ], '/terms-and-conditions' => [ Request::METHOD_GET => [ 'alias' => 'catalog_terms', 'controller' => 'Handel\Catalog\Controller\Information\TermsController::class', 'method' => 'indexAction' ] ], '/about-us' => [ Request::METHOD_GET => [ 'alias' => 'catalog_about', 'controller' => 'Handel\Catalog\Controller\Information\AboutController::class', 'method' => 'indexAction' ] ], '/search' => [ Request::METHOD_GET => [ 'alias' => 'catalog_search', 'controller' => 'Handel\Catalog\Controller\Product\SearchController::class', 'method' => 'indexAction' ] ], '/account' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_account', 'controller' => 'Handel\Catalog\Controller\Account\AccountController::class', 'method' => 'indexAction' ] ], '/account/address' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_address_book', 'controller' => 'Handel\Catalog\Controller\Account\AddressBookController::class', 'method' => 'indexAction' ] ], '/account/address/{id}' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_address', 'controller' => 'Handel\Catalog\Controller\Account\AddressController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_account_address', 'controller' => 'Handel\Catalog\Controller\Account\AddressController::class', 'method' => 'postAction' ], ], '/account/forgotten' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_forgotten', 'controller' => 'Handel\Catalog\Controller\Account\ForgottenController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_account_forgotten_post', 'controller' => 'Handel\Catalog\Controller\Account\ForgottenController::class', 'method' => 'postAction' ], ], '/account/login' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_login', 'controller' => 'Handel\Catalog\Controller\Account\LoginController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_account_login_post', 'controller' => 'Handel\Catalog\Controller\Account\LoginController::class', 'method' => 'postAction' ] ], '/account/logout' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_logout', 'controller' => 'Handel\Catalog\Controller\Account\LogoutController::class', 'method' => 'indexAction' ] ], '/account/newsletter' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_newsletter', 'controller' => 'Handel\Catalog\Controller\Account\NewsletterController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_account_newsletter_post', 'controller' => 'Handel\Catalog\Controller\Account\NewsletterController::class', 'method' => 'postAction' ], ], '/account/register' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_register', 'controller' => 'Handel\Catalog\Controller\Account\RegisterController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_account_register_post', 'controller' => 'Handel\Catalog\Controller\Account\RegisterController::class', 'method' => 'postAction' ] ], '/account/order-history/{id}' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_order', 'controller' => 'Handel\Catalog\Controller\Account\OrderController::class', 'method' => 'indexAction' ] ], '/account/order-history' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_order_history', 'controller' => 'Handel\Catalog\Controller\Account\OrderHistoryController::class', 'method' => 'indexAction' ] ], '/account/wishlist' => [ Request::METHOD_GET => [ 'alias' => 'catalog_account_wishlist', 'controller' => 'Handel\Catalog\Controller\Account\WishListController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_account_wishlist_post', 'controller' => 'Handel\Catalog\Controller\Account\WishListController::class', 'method' => 'postAction' ] ], '/affiliate/login' => [ Request::METHOD_GET => [ 'alias' => 'catalog_affiliate_login', 'controller' => 'Handel\Catalog\Controller\Affiliate\LoginController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_affiliate_login_post', 'controller' => 'Handel\Catalog\Controller\Affiliate\LoginController::class', 'method' => 'postAction' ], ], '/affiliate/register' => [ Request::METHOD_GET => [ 'alias' => 'catalog_affiliate_register', 'controller' => 'Handel\Catalog\Controller\Affiliate\RegisterController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_affiliate_register_post', 'controller' => 'Handel\Catalog\Controller\Affiliate\RegisterController::class', 'method' => 'postAction' ] ], '/cart' => [ Request::METHOD_GET => [ 'alias' => 'catalog_cart', 'controller' => 'Handel\Catalog\Controller\Common\CartController::class', 'method' => 'indexAction' ], Request::METHOD_POST => [ 'alias' => 'catalog_cart_post', 'controller' => 'Handel\Catalog\Controller\Common\CartController::class', 'method' => 'postAction' ] ], '/checkout' => [ Request::METHOD_GET => [ 'alias' => 'catalog_checkout', 'controller' => 'Handel\Catalog\Controller\Checkout\CheckoutController::class', 'method' => 'indexAction' ] ], '/checkout/payment-address' => [ Request::METHOD_GET => [ 'alias' => 'catalog_checkout_payment_address', 'controller' => 'Handel\Catalog\Controller\Checkout\BillingAddressController::class', 'method' => 'indexAction' ] ], '/checkout/shipping-address' => [ Request::METHOD_GET => [ 'alias' => 'catalog_checkout_delivery_address', 'controller' => 'Handel\Catalog\Controller\Checkout\ShippingAddressController::class', 'method' => 'indexAction' ] ], '/checkout/shipping-method' => [ Request::METHOD_GET => [ 'alias' => 'catalog_checkout_delivery_method', 'controller' => 'Handel\Catalog\Controller\Checkout\ShippingMethodController::class', 'method' => 'indexAction' ] ], '/' => [ Request::METHOD_GET => [ 'alias' => 'catalog_index', 'controller' => 'Handel\Catalog\Controller\Common\HomeController::class', 'method' => 'indexAction' ] ], ); $output = []; foreach ($routes as $path => $data) { foreach ($data as $http_method => $values) { $alias = $values['alias']; $controller = $values['controller']; $method = $values['method']; $output[$alias] = [ 'path' => $path, 'controller' => [$controller, $method], 'requirements' => [], 'defaults' => [], 'methods' => [$http_method] ]; } } var_dump($output);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0130.01618.68
8.3.50.0120.00616.51
8.3.40.0170.00318.75
8.3.30.0030.01418.71
8.3.20.0070.00321.92
8.3.10.0060.00323.54
8.3.00.0070.00419.69
8.2.180.0070.01618.48
8.2.170.0160.00322.96
8.2.160.0170.00020.47
8.2.150.0080.00424.18
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0070.00320.57
8.2.110.0030.00922.07
8.2.100.0110.00317.84
8.2.90.0040.00417.75
8.2.80.0030.00618.74
8.2.70.0000.01018.04
8.2.60.0090.00017.93
8.2.50.0000.00918.16
8.2.40.0060.00322.33
8.2.30.0060.00319.54
8.2.20.0000.00818.09
8.2.10.0090.00018.18
8.2.00.0060.00318.36
8.1.280.0110.00725.92
8.1.270.0060.00322.09
8.1.260.0030.00726.35
8.1.250.0050.00528.09
8.1.240.0040.00819.32
8.1.230.0100.00321.04
8.1.220.0060.00318.81
8.1.210.0100.00018.77
8.1.200.0030.00917.60
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0030.00618.48
8.1.160.0030.00518.96
8.1.150.0000.00820.26
8.1.140.0000.00917.78
8.1.130.0040.00419.09
8.1.120.0000.00817.54
8.1.110.0030.00617.43
8.1.100.0080.00017.43
8.1.90.0040.00417.49
8.1.80.0090.00317.54
8.1.70.0000.00917.59
8.1.60.0060.00317.54
8.1.50.0100.00017.57
8.1.40.0030.00617.50
8.1.30.0030.00617.66
8.1.20.0000.00917.70
8.1.10.0060.00317.61
8.1.00.0000.00917.44
8.0.300.0060.00318.77
8.0.290.0090.00016.88
8.0.280.0000.00818.46
8.0.270.0050.00317.21
8.0.260.0000.00816.90
8.0.250.0000.00817.03
8.0.240.0030.00617.02
8.0.230.0040.00417.04
8.0.220.0000.00916.97
8.0.210.0000.00817.03
8.0.200.0000.00817.05
8.0.190.0060.00316.91
8.0.180.0100.00016.96
8.0.170.0070.00316.95
8.0.160.0060.00316.93
8.0.150.0030.00717.03
8.0.140.0030.00616.93
8.0.130.0000.00713.38
8.0.120.0100.00016.84
8.0.110.0000.00916.87
8.0.100.0090.00017.08
8.0.90.0060.00316.84
8.0.80.0060.01316.89
8.0.70.0000.00816.88
8.0.60.0000.00916.87
8.0.50.0090.00016.86
8.0.30.0160.00817.14
8.0.20.0160.01317.40
8.0.10.0040.00417.01
8.0.00.0140.01116.71
7.4.330.0030.00315.55
7.4.320.0000.00816.65
7.4.300.0040.00416.61
7.4.290.0080.00016.72
7.4.280.0030.00616.62
7.4.270.0000.00816.57
7.4.260.0000.00816.71
7.4.250.0000.00816.65
7.4.240.0000.00816.70
7.4.230.0030.00516.47
7.4.220.0080.00016.50
7.4.210.0150.01116.65
7.4.200.0000.00916.48
7.4.160.0230.00616.74
7.4.150.0170.01417.40
7.4.140.0150.01517.86
7.4.130.0100.01616.48
7.4.120.0190.01216.50
7.4.110.0130.01316.66
7.4.100.0130.01016.61
7.4.90.0120.01516.48
7.4.80.0220.00319.39
7.4.70.0140.01816.56
7.4.60.0140.01116.55
7.4.50.0080.00816.54
7.4.40.0180.00416.54
7.4.00.0030.01715.16
7.3.330.0030.00313.22
7.3.320.0050.00313.30
7.3.310.0060.00316.48
7.3.300.0030.00516.45
7.3.290.0030.00516.48
7.3.280.0080.01616.42
7.3.270.0170.01017.40
7.3.260.0160.01416.46
7.3.240.0190.01016.55
7.3.230.0130.02016.73
7.3.210.0070.02716.70
7.3.200.0190.00316.61
7.3.190.0130.01316.55
7.3.180.0180.00416.30
7.3.170.0110.01816.35
7.3.160.0190.00416.38
7.3.10.0190.00416.30
7.3.00.0120.00916.36
7.2.330.0180.01116.62
7.2.320.0110.01116.52
7.2.310.0060.01916.95
7.2.300.0150.00716.68
7.2.290.0170.00916.58
7.2.130.0180.00716.43
7.2.120.0130.00616.72
7.2.110.0150.00316.98
7.2.100.0120.00317.07
7.2.90.0060.00616.88
7.2.80.0090.00616.93
7.2.70.0190.00616.85
7.2.60.0110.00916.80
7.2.50.0070.00916.91
7.2.40.0080.00817.04
7.2.30.0090.01317.00
7.2.20.0110.01218.37
7.2.10.0100.01318.40
7.2.00.0130.01218.26
7.1.250.0150.00615.82
7.1.200.0100.00615.93
7.1.140.0120.01518.59
7.1.130.0130.01718.86
7.1.120.0160.02018.70
7.1.110.0140.01618.45
7.1.100.0150.01318.00
7.1.90.0110.01218.22
7.1.80.0110.02018.36
7.1.70.0120.01317.38
7.1.60.0340.01935.27
7.1.50.0370.01634.65
7.1.40.0310.01234.46
7.1.30.0330.01734.40
7.1.20.0300.02234.55
7.1.10.0090.01916.50
7.1.00.0090.01416.93

preferences:
49.39 ms | 400 KiB | 5 Q