3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<'DATA' { "status": "active", "city": "depok", "name": "Alternatif Cibubur", "lat": -6.376057, "thumbnail_html": "\n\n\n\n\n\n<div class=\"cam-thumb\">\n \n \n <a href=\"/cam/248/alternatif-cibubur/\">\n <img src=\"https://media.lewatmana.com/cam/tbicibubur/248/snapshot20180330_163142M-thumb.jpg\" class=\"cam-thumb-img\">\n </a>\n \n \n\n <div class=\"cam-thumb-info\">\n <p class=\"cam-name\"><a href=\"/cam/248/alternatif-cibubur/\">Alternatif Cibubur</a></p>\n </div>\n</div>\n\n\n", "lon": 106.900786, "id": 248, "description": "Kamera berada di jalan Alternatif Cibubur, arah menjauhi kamera menuju Cibubur Junction / Tol Jakarta, sebaliknya menuju Kranggan / Cileungsi / Bogor." } DATA; $obj = json_decode($data); $dom = new DOMDocument(); $dom->loadHTML($obj->thumbnail_html); $obj = $dom->getElementsByTagName('img'); echo $dom->getElementsByTagName('img')->item(0)->getAttribute("src");

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.130.0150.00618.68
8.4.120.0130.00624.24
8.4.110.0070.01222.49
8.4.100.0050.00420.77
8.4.90.0060.00318.77
8.4.80.0090.01118.85
8.4.70.0040.00418.30
8.4.60.0090.00818.93
8.4.50.0100.01018.77
8.4.40.0030.01617.75
8.4.30.0100.01017.80
8.4.20.0150.00619.55
8.4.10.0060.00317.88
8.3.260.0130.00616.72
8.3.250.0100.00919.21
8.3.240.0050.00317.33
8.3.230.0130.00616.75
8.3.220.0120.00619.08
8.3.210.0080.01118.71
8.3.200.0020.00616.95
8.3.190.0120.00917.24
8.3.180.0150.00416.86
8.3.170.0140.00417.52
8.3.160.0100.00918.70
8.3.150.0060.00316.66
8.3.140.0090.00918.98
8.3.130.0140.00016.43
8.3.120.0060.00319.21
8.3.110.0060.00320.94
8.3.100.0040.01317.02
8.3.90.0050.00318.40
8.3.80.0060.00318.55
8.3.70.0060.00918.56
8.3.60.0170.00316.75
8.3.50.0130.01017.45
8.3.40.0140.00718.92
8.3.30.0070.01018.96
8.3.20.0080.00021.91
8.3.10.0040.00423.73
8.3.00.0080.00019.29
8.2.290.0130.00520.75
8.2.280.0060.00218.86
8.2.270.0040.01517.24
8.2.260.0140.00318.79
8.2.250.0150.00018.72
8.2.240.0050.00517.36
8.2.230.0040.00422.58
8.2.220.0070.00324.06
8.2.210.0140.00026.77
8.2.200.0060.00318.66
8.2.190.0140.00716.88
8.2.180.0090.01216.63
8.2.170.0140.00022.96
8.2.160.0100.00320.50
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00918.34
8.2.120.0040.00426.35
8.2.110.0060.00322.33
8.2.100.0100.00318.03
8.2.90.0040.00420.20
8.2.80.0050.00318.15
8.2.70.0080.00018.18
8.2.60.0000.00918.34
8.2.50.0000.00818.47
8.2.40.0040.00422.40
8.2.30.0040.00419.69
8.2.20.0040.00418.28
8.2.10.0040.00418.30
8.2.00.0000.00718.44
8.1.330.0130.00622.34
8.1.320.0040.00416.11
8.1.310.0090.00918.77
8.1.300.0130.00318.93
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0080.00020.48
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0100.00722.32
8.1.230.0110.00019.35
8.1.220.0080.00017.76
8.1.210.0000.00818.77
8.1.200.0040.00417.48
8.1.190.0000.00817.25
8.1.180.0030.00518.10
8.1.170.0050.00319.15
8.1.160.0000.00718.98
8.1.150.0040.00419.19
8.1.140.0080.00017.59
8.1.130.0030.00320.45
8.1.120.0040.00417.64
8.1.110.0030.00317.58
8.1.100.0050.00217.54
8.1.90.0000.00717.62
8.1.80.0000.00817.64
8.1.70.0000.00817.59
8.1.60.0000.01017.69
8.1.50.0000.00817.69
8.1.40.0050.00317.70
8.1.30.0000.00817.90
8.1.20.0000.00717.74
8.1.10.0000.00817.68
8.1.00.0050.00317.79
8.0.300.0040.00419.85
8.0.290.0060.00317.00
8.0.280.0000.00718.66
8.0.270.0030.00517.06
8.0.260.0000.00717.09
8.0.250.0030.00417.23
8.0.240.0070.00017.23
8.0.230.0070.00017.20
8.0.220.0000.00717.14
8.0.210.0000.00717.13
8.0.200.0000.01017.20
8.0.190.0040.00417.23
8.0.180.0000.00717.13
8.0.170.0040.00717.13
8.0.160.0070.00217.03
8.0.150.0040.00416.93
8.0.140.0040.00417.07
8.0.130.0030.00313.57
8.0.120.0000.00817.06
8.0.110.0040.00416.86
8.0.100.0040.00417.05
8.0.90.0000.00817.02
8.0.80.0090.00617.25
8.0.70.0070.00017.03
8.0.60.0000.00817.00
8.0.50.0000.00717.14
8.0.30.0080.01017.43
8.0.20.0140.01017.40
8.0.10.0080.00017.02
8.0.00.0090.00816.96
7.4.330.0020.00215.55
7.4.320.0000.00616.88
7.4.300.0000.00616.66
7.4.290.0000.00716.77
7.4.280.0040.00416.68
7.4.270.0030.00516.84
7.4.260.0030.00316.68
7.4.250.0000.00716.68
7.4.240.0000.00716.82
7.4.230.0000.00716.92
7.4.220.0040.00416.74
7.4.210.0090.00516.90
7.4.200.0000.00816.79
7.4.160.0100.00716.73
7.4.140.0110.01017.86
7.4.130.0150.00316.76
7.4.120.0150.00816.70
7.4.110.0110.00616.61
7.4.100.0170.00016.89
7.4.90.0040.01116.82
7.4.80.0120.01219.39
7.4.70.0160.00016.71
7.4.60.0110.00716.68
7.4.50.0000.01316.73
7.4.40.0140.00316.50
7.4.00.0070.01015.13
7.3.330.0060.00013.34
7.3.320.0000.00613.16
7.3.310.0030.00316.57
7.3.300.0000.00716.45
7.3.290.0030.00316.45
7.3.280.0060.00816.52
7.3.260.0130.00616.50
7.3.240.0130.00616.67
7.3.230.0130.00616.72
7.3.210.0100.00616.49
7.3.200.0060.01016.70
7.3.190.0060.00916.54
7.3.180.0060.01016.72
7.3.170.0130.00716.65
7.3.160.0070.01116.57
7.3.120.0030.01415.06
7.3.110.0080.00415.22
7.3.100.0050.00814.47
7.3.90.0070.01014.83
7.3.80.0030.01014.72
7.3.70.0030.00914.65
7.3.60.0030.00714.94
7.3.50.0000.00914.71
7.3.40.0100.00314.81
7.3.30.0060.00615.01
7.3.20.0070.00716.69
7.3.10.0070.01016.69
7.3.00.0040.01116.61
7.2.330.0110.00716.55
7.2.320.0130.00316.76
7.2.310.0040.01116.57
7.2.300.0060.01116.48
7.2.290.0090.01216.82
7.2.240.0070.01014.78
7.2.230.0100.00715.14
7.2.220.0030.00715.12
7.2.210.0090.00615.22
7.2.200.0040.00814.96
7.2.190.0060.00615.23
7.2.180.0000.01414.91
7.2.170.0080.00314.97
7.2.160.0030.01014.70
7.2.150.0000.01516.98
7.2.140.0060.00316.81
7.2.130.0000.00816.90
7.2.120.0070.01117.02
7.2.110.0030.00916.77
7.2.100.0070.00416.93
7.2.90.0070.00317.01
7.2.80.0120.00016.76
7.2.70.0040.01416.88
7.2.60.0050.00516.97
7.2.50.0000.01417.06
7.2.40.0380.01117.51
7.2.30.0410.00917.32
7.2.20.0340.01017.63
7.2.10.0340.01417.49
7.2.00.0250.01417.35
7.1.330.0060.00915.72
7.1.320.0030.01315.91
7.1.310.0080.00415.76
7.1.300.0050.00316.03
7.1.290.0070.00315.93
7.1.280.0000.00815.68
7.1.270.0030.00615.94
7.1.260.0040.01115.91
7.1.250.0140.00315.93
7.1.200.0090.00915.68
7.1.160.0790.01216.62
7.1.150.0920.00816.35
7.1.140.0590.00916.70
7.1.130.0530.01116.65
7.1.120.0590.01716.77
7.1.110.0800.01016.10
7.1.100.0790.01016.15
7.1.90.0850.01316.09
7.1.80.1430.01015.61
7.1.70.1180.01215.25
7.1.60.1500.01533.41
7.1.50.1530.01732.93
7.1.40.1740.01632.63
7.1.30.1590.01332.66
7.1.20.1460.01732.80
7.1.10.1180.01314.93
7.1.00.1140.01114.98

preferences:
28.76 ms | 403 KiB | 5 Q