3v4l.org

run code in 300+ PHP versions simultaneously
<? <script> var product_filter_arr = []; for (var key in res) { var product_id = res[key]['product_id']; var name = res[key]['name']; var price = res[key]['price']; var image = res[key]['image']; var cat_id = $("input[name~='cat_id']").val(); // id категории switch(cat_id) { case '200': var link = "Auto?"; break; case '201': var link = "Moto?"; break; } var product = `<div class="product-layout product-grid product-style-1 col-lg-4 col-md-4 col-sm-4 col-xs-4 product-items"> <div class="product-thumb"> <div class="product-item"> <div class="image swatches-image-container"> <a href="https://d.ru/${link}product_id=${product_id}"> <img src="d.ru/image/${image}" class="img-responsive img-cate-${product_id}"> </a> <div class="button-group"> <button type="button" class="button-wishlist" title="В закладки" onclick="wishlist.add('${product_id}');"><span>В закладки</span></button> <button type="button" class="button-compare" title="В сравнение" onclick="compare.add('${product_id}');"><span>В сравнение</span></button> <button class="button-quickview" type="button" title="Быстрый просмотр" onclick="ptquickview.ajaxView('https://d.ru/Rings?product_id=${product_id}')"><span>Быстрый просмотр</span></button> </div> <div class="box-cart"> <button type="button" class="button-cart" title="Купить" onclick="cart.add('${product_id}', '1');"><span>Купить</span></button> </div> </div> <div class="caption"> <h4><a href="https://d.ru/${link}product_id=${product_id}">${name}</a></h4> <p class="price">${price}</p> </div> </div> </div> </div>`; var products = product_filter_arr.push(product); } </script>

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.5.10.0110.00816.49
8.5.00.0120.01019.76
8.4.150.0010.00114.05
8.4.140.0160.00717.46
8.4.130.0130.00917.92
8.4.120.0060.00320.53
8.4.110.0110.00922.26
8.4.100.0080.00917.58
8.4.90.0100.01019.33
8.4.80.0100.01117.73
8.4.70.0070.00217.42
8.4.60.0050.00418.52
8.4.50.0130.00717.48
8.4.40.0100.01017.68
8.4.30.0060.00320.32
8.4.20.0160.00320.51
8.4.10.0050.00321.18
8.3.280.0120.00718.24
8.3.270.0120.00716.60
8.3.260.0130.00716.35
8.3.250.0070.00118.84
8.3.240.0100.00916.49
8.3.230.0100.00816.54
8.3.220.0060.00217.25
8.3.210.0090.00916.63
8.3.200.0110.00716.33
8.3.190.0110.00817.00
8.3.180.0080.01016.48
8.3.170.0140.00317.12
8.3.160.0040.00418.36
8.3.150.0110.00718.99
8.3.140.0040.00418.30
8.3.130.0040.00416.73
8.3.120.0000.00820.54
8.3.110.0050.00316.41
8.3.100.0170.00318.31
8.3.90.0060.00326.77
8.3.80.0030.00616.38
8.3.70.0090.00616.58
8.3.60.0130.00316.63
8.3.50.0110.00623.65
8.3.40.0110.01118.79
8.3.30.0070.00718.71
8.3.20.0080.00024.18
8.3.10.0050.00224.66
8.3.00.0000.00826.16
8.2.290.0110.00722.14
8.2.280.0050.00418.07
8.2.270.0160.00318.72
8.2.260.0070.00718.66
8.2.250.0060.00616.54
8.2.240.0130.00618.11
8.2.230.0030.00620.94
8.2.220.0090.00024.06
8.2.210.0000.00826.77
8.2.200.0040.00416.48
8.2.190.0130.01016.58
8.2.180.0100.01025.92
8.2.170.0070.01518.96
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00726.35
8.2.110.0080.00419.17
8.2.100.0090.00317.77
8.2.90.0000.00817.60
8.2.80.0060.00318.61
8.2.70.0080.00017.63
8.2.60.0080.00017.50
8.2.50.0040.00418.05
8.2.40.0040.00418.03
8.2.30.0030.00617.97
8.2.20.0030.00617.98
8.2.10.0060.00318.99
8.2.00.0000.00719.12
8.1.330.0090.00918.13
8.1.320.0140.00716.23
8.1.310.0090.00916.64
8.1.300.0060.00316.07
8.1.290.0050.00530.84
8.1.280.0160.00625.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00419.10
8.1.230.0110.00018.91
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0050.00317.41
8.1.190.0060.00316.99
8.1.180.0060.00318.10
8.1.170.0050.00318.47
8.1.160.0050.00218.75
8.1.150.0000.00718.77
8.1.140.0000.00718.79
8.1.130.0000.00720.06
8.1.120.0040.00417.35
8.1.110.0080.00017.33
8.1.100.0000.00717.21
8.1.90.0000.00717.39
8.1.80.0060.00617.35
8.1.70.0030.00317.36
8.1.60.0060.00317.42
8.1.50.0030.00517.27
8.1.40.0000.00717.43
8.1.30.0040.00417.52
8.1.20.0000.01017.52
8.1.10.0030.00617.45
8.1.00.0000.00817.34
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0030.00318.25
8.0.270.0070.00017.94
8.0.260.0000.00618.39
8.0.250.0000.00716.82
8.0.240.0000.00716.81
8.0.230.0060.00016.69
8.0.220.0070.00016.78
8.0.210.0070.00016.63
8.0.200.0030.00316.80
8.0.190.0040.00416.69
8.0.180.0070.00016.62
8.0.170.0030.00516.63
8.0.160.0100.00316.75
8.0.150.0080.00016.66
8.0.140.0000.00816.72
8.0.130.0000.00513.44
8.0.120.0040.00416.61
8.0.110.0000.00716.56
8.0.100.0030.00316.79
8.0.90.0000.00716.82
8.0.80.0100.00516.71
8.0.70.0070.00016.82
8.0.60.0000.00816.57
8.0.50.0040.00416.88
8.0.30.0100.00717.02
8.0.20.0090.01117.11
8.0.10.0030.00516.90
8.0.00.0030.01316.48
7.4.330.0020.00215.55
7.4.320.0000.00616.36
7.4.300.0060.00016.52
7.4.290.0040.00416.36
7.4.280.0020.00516.36
7.4.270.0030.00316.33
7.4.260.0000.00513.33
7.4.250.0040.00416.33
7.4.240.0000.00716.48
7.4.230.0040.00416.55
7.4.220.0020.00516.46
7.4.210.0120.00416.41
7.4.200.0030.00316.28
7.4.130.0110.00716.38
7.4.120.0100.00716.42
7.4.110.0060.01116.29
7.4.100.0130.01016.51
7.4.90.0150.00316.36
7.4.80.0110.01116.55
7.4.70.0120.01316.35
7.4.60.0050.01416.48
7.4.50.0140.00816.50
7.4.40.0150.00516.50
7.4.30.0080.00816.22
7.4.20.0100.01316.60
7.4.10.0120.00916.32
7.4.00.0120.00516.27
7.3.330.0070.00016.22
7.3.320.0020.00213.21
7.3.310.0040.00416.16
7.3.300.0000.00816.02
7.3.290.0090.00616.13
7.3.280.0090.00616.13
7.3.260.0140.00316.38
7.3.230.0110.00616.09
7.3.210.0030.01316.36
7.3.200.0120.00716.23
7.3.190.0110.01116.37
7.3.180.0100.01016.02
7.3.170.0150.00816.04
7.3.160.0110.01116.17
7.3.150.0000.01716.35
7.3.140.0090.01116.22
7.3.130.0060.01216.23
7.3.120.0120.00916.44
7.3.110.0150.00616.20
7.3.100.0070.01016.48
7.3.90.0110.00516.45
7.3.80.0120.00916.23
7.3.70.0000.02016.15
7.3.60.0120.00916.21
7.3.50.0110.00916.17
7.3.40.0100.01116.33
7.3.30.0110.00716.12
7.3.20.0130.00616.29
7.3.10.0140.00816.18
7.3.00.0130.01016.26
7.2.330.0080.00916.30
7.2.320.0140.01116.35
7.2.310.0110.01016.34
7.2.300.0000.02016.60
7.2.290.0200.00516.48
7.2.280.0160.00316.59
7.2.270.0120.00616.47
7.2.260.0060.01316.43
7.2.250.0170.00516.16
7.2.240.0130.00816.40
7.2.230.0120.00816.38
7.2.220.0140.00716.23
7.2.210.0130.01016.44
7.2.200.0080.01616.44
7.2.190.0140.00716.43
7.2.180.0110.01116.24
7.2.170.0080.01016.36
7.2.160.0040.01616.32
7.2.150.0130.01116.37
7.2.140.0490.01116.50
7.2.130.0230.00516.36
7.2.120.0140.01016.59
7.2.110.0160.01616.61
7.2.100.0120.01116.36
7.2.90.0110.01416.54
7.2.80.0140.00516.40
7.2.70.0060.01316.43
7.2.60.0100.01016.40
7.2.50.0110.00916.34
7.2.40.0160.00816.40
7.2.30.0090.00916.20
7.2.20.0130.00716.45
7.2.10.0320.00516.31
7.2.00.0110.01216.26

preferences:
172.01 ms | 403 KiB | 5 Q