3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "widgetTitle":"Recent History For You", "title_text":"Recent History", "title":"Recent History", "items":[ { "item_type":"product", "adunit_id":null, "name":"Dove Rejuvenated Volume Conditioner (240 ml)", "slug":"dove-rejuvenated-volume-conditioner-240-ml-86", "itemurl":"\/product\/dove-rejuvenated-volume-conditioner-240-ml-86", "category_name":"Conditioner", "stock_status":"1", "p_group":null, "thumb_image_url":"\/\/media6.ppl-media.com\/tr:h-235,w-235,c-at_max\/static\/img\/product\/141295\/dove-rejuvenated-volume-conditioner-240-ml_4_display_1476255016_7fe66d85.jpg", "primary_image_url":"\/\/media6.ppl-media.com\/tr:h-550,w-550,c-at_max\/static\/img\/product\/141295\/dove-rejuvenated-volume-conditioner-240-ml_4_display_1476255016_7fe66d85.jpg", "avg_rating":4, "total_rating":"13", "product_seller_id":"126619", "seller_id":"321", "price":"250", "mrp":"250", "offer_price":"200", "our_price":"200", "specialofferPrice":"200", "discount":"20", "offer_discount":0, "total_discount":20, "offer_text":"", "discount_price":50, "isincart":0, "iscart":0, "incart":0, "isliked":0 }, { "item_type":"product", "id":"107816", "adunit_id":null, "name":"Schwarzkopf Gliss Hair Repair With Liquid Keratin Serum Deep Repair Conditioner (200 ml)", "slug":"schwarzkopf-gliss-hair-repair-with-liquid-keratin-serum-deep-repair-conditioner-200-ml", "itemurl":"\/product\/schwarzkopf-gliss-hair-repair-with-liquid-keratin-serum-deep-repair-conditioner-200-ml", "category_name":"Conditioner", "stock_status":"1", "p_group":null, "thumb_image_url":"\/\/media6.ppl-media.com\/tr:h-235,w-235,c-at_max\/static\/img\/product\/107816\/schwarzkopf-gliss-hair-repair-with-liquid-keratin-serum-deep-repair-conditioner-200-ml_1_display_1506591377_c984d6fc.jpg", "primary_image_url":"\/\/media6.ppl-media.com\/tr:h-550,w-550,c-at_max\/static\/img\/product\/107816\/schwarzkopf-gliss-hair-repair-with-liquid-keratin-serum-deep-repair-conditioner-200-ml_1_display_1506591377_c984d6fc.jpg", "avg_rating":2.5, "total_rating":"3", "product_seller_id":"97130", "seller_id":"276", "price":"295", "mrp":"295", "offer_price":"266", "our_price":"266", "specialofferPrice":"266", "discount":"10", "offer_discount":0, "total_discount":10, "offer_text":"", "discount_price":29, "isincart":0, "iscart":0, "incart":0, "isliked":0 } ], "type":"Recent", "x_id":"1", "widget_id":"rh", "ictk":0, "cr":"", "if_from_cache":0, "version":"v_1", "widget_name":"rh", "reco_type":"rh", "widget_type":"product", "widget_view_type":"product", "text":"History", "page":"product", "status":"success" }'; $jsonArr = json_decode($json, true); $chars = preg_split('/product\//', $jsonArr['items'][0]['primary_image_url']); preg_match('/^\d+/', $chars[1], $matches); print_r($matches); $chars2 = preg_split('/product\//', $jsonArr['items'][1]['primary_image_url']); preg_match('/^\d+/', $chars2[1], $matches2); print_r($matches2);

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.4.120.0120.00523.97
8.4.110.0090.01122.66
8.4.100.0050.00417.81
8.4.90.0140.00820.70
8.4.80.0090.00918.72
8.4.70.0130.00720.50
8.4.60.0110.01020.44
8.4.50.0120.00819.91
8.4.40.0130.00618.08
8.4.30.0130.00717.91
8.4.20.0130.00319.78
8.4.10.0210.00017.85
8.3.250.0110.00818.97
8.3.240.0110.00917.00
8.3.230.0110.00916.77
8.3.220.0040.00318.79
8.3.210.0070.00918.70
8.3.200.0090.00216.55
8.3.190.0130.00617.05
8.3.180.0050.00516.73
8.3.170.0130.00717.29
8.3.160.0070.00718.53
8.3.150.0140.00720.57
8.3.140.0130.00616.34
8.3.130.0090.00018.57
8.3.120.0080.00418.93
8.3.110.0030.00618.66
8.3.100.0000.00919.98
8.3.90.0040.01126.77
8.3.80.0070.00319.36
8.3.70.0130.00316.88
8.3.60.0120.00316.63
8.3.50.0070.00817.60
8.3.40.0090.00919.11
8.3.30.0070.00718.88
8.3.20.0040.00421.89
8.3.10.0000.00821.90
8.3.00.0050.00319.04
8.2.290.0060.00220.72
8.2.280.0110.01018.83
8.2.270.0140.00317.32
8.2.260.0110.00418.59
8.2.250.0180.00417.01
8.2.240.0090.00919.15
8.2.230.0060.00320.94
8.2.220.0000.00924.06
8.2.210.0040.01126.77
8.2.200.0090.00018.88
8.2.190.0040.01216.94
8.2.180.0110.00418.41
8.2.170.0130.01019.13
8.2.160.0060.00922.21
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0050.00221.30
8.2.110.0070.00322.09
8.2.100.0120.00018.03
8.2.90.0080.00017.75
8.2.80.0030.00518.91
8.2.70.0080.00017.63
8.2.60.0000.00817.75
8.2.50.0050.00317.75
8.2.40.0030.00619.36
8.2.30.0080.00017.76
8.2.20.0000.00717.98
8.2.10.0040.00418.04
8.2.00.0040.00418.02
8.1.330.0090.01021.70
8.1.320.0040.00616.62
8.1.310.0040.00418.72
8.1.300.0060.00319.84
8.1.290.0070.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00422.31
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00722.01
8.1.230.0120.00019.00
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0080.00017.48
8.1.190.0000.00817.48
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0060.00318.88
8.1.150.0050.00219.07
8.1.140.0020.00518.95
8.1.130.0080.00020.32
8.1.120.0040.00417.59
8.1.110.0000.00817.47
8.1.100.0000.00717.58
8.1.90.0040.00417.59
8.1.80.0030.00517.47
8.1.70.0040.00417.47
8.1.60.0000.01317.69
8.1.50.0030.00617.54
8.1.40.0060.00317.64
8.1.30.0030.00617.77
8.1.20.0040.00417.81
8.1.10.0030.00617.64
8.1.00.0040.00417.58
8.0.300.0080.00018.84
8.0.290.0040.00416.88
8.0.280.0000.00718.00
8.0.270.0060.00318.19
8.0.260.0000.00819.01
8.0.250.0030.00717.05
8.0.240.0000.00717.06
8.0.230.0030.00317.09
8.0.220.0030.00316.89
8.0.210.0000.00717.00
8.0.200.0070.00017.00
8.0.190.0040.00416.96
8.0.180.0030.00516.99
8.0.170.0030.00617.02
8.0.160.0000.00716.96
8.0.150.0070.00016.95
8.0.140.0040.00416.97
8.0.130.0090.00013.39
8.0.120.0050.00216.95
8.0.110.0000.00816.85
8.0.100.0040.00417.04
8.0.90.0040.00417.01
8.0.80.0090.00616.96
8.0.70.0050.00317.01
8.0.60.0040.00416.96
8.0.50.0040.00416.86
8.0.30.0140.00417.04
8.0.20.0100.00917.40
8.0.10.0050.00217.02
8.0.00.0090.01016.88
7.4.330.0050.00015.55
7.4.320.0030.00316.79
7.4.300.0060.00016.78
7.4.290.0070.00016.63
7.4.280.0000.00716.79
7.4.270.0030.00316.70
7.4.260.0000.00716.73
7.4.250.0000.00816.70
7.4.240.0040.00416.77
7.4.230.0040.00416.73
7.4.220.0040.00416.66
7.4.210.0160.00516.80
7.4.200.0040.00416.80
7.4.160.0070.01016.64
7.4.140.0110.00717.86
7.4.130.0080.01116.43
7.4.120.0090.00916.66
7.4.110.0060.01016.75
7.4.100.0130.00316.60
7.4.90.0140.00716.59
7.4.80.0020.01419.39
7.4.70.0070.01416.68
7.4.60.0030.01316.68
7.4.50.0120.00216.65
7.4.40.0120.01116.82
7.4.00.0030.01315.34
7.3.330.0030.00313.25
7.3.320.0050.00013.21
7.3.310.0030.00316.45
7.3.300.0070.00016.41
7.3.290.0070.00016.40
7.3.280.0050.01216.47
7.3.260.0080.01216.55
7.3.240.0050.01216.63
7.3.230.0050.01116.39
7.3.210.0110.00616.77
7.3.200.0160.00016.84
7.3.190.0170.00016.51
7.3.180.0130.01016.25
7.3.170.0070.01016.53
7.3.160.0030.01316.34
7.2.330.0090.00916.61
7.2.320.0100.00716.68
7.2.310.0120.00416.63
7.2.300.0160.00016.61
7.2.290.0100.01316.88
7.2.60.0110.00317.01
7.2.40.0190.01117.63
7.2.30.0190.00918.20
7.2.20.0180.01218.01
7.2.10.0180.01018.30
7.2.00.0280.01918.10
7.1.200.0060.00916.10
7.1.160.0170.01116.77
7.1.150.0340.00917.07
7.1.140.0280.01617.00
7.1.130.0260.01216.88
7.1.120.0240.00917.06
7.1.110.0160.01016.43
7.1.100.0380.01416.23
7.1.90.0190.00816.30
7.1.80.0160.01016.12
7.1.70.1860.01115.47
7.1.60.0390.01333.39
7.1.50.0410.01133.06
7.1.40.0580.01532.91
7.1.30.0440.01132.80
7.1.20.0560.01732.88
7.1.10.0280.01515.06
7.1.00.0180.01415.16

preferences:
29.32 ms | 403 KiB | 5 Q