3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <div> <img src="icons/example.svg"> <img src="{{asset('icons/example.svg')}}"/> <a href="http://www.example.com">a link</a> <link href="css/example.css"> <link href="{{asset('css/example.css')}}"/> <iframe src="http://www.example.com/default.htm"></iframe> </div> HTML; $dom = new DOMDocument(); $dom->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $xpath = new DOMXPath($dom); foreach ($xpath->query('//img/@src | //link[not(starts-with(@href,"{{asset"))]/@href') as $attr) { $attr->value = "{{asset('" . $attr->value . "')}}"; } echo substr($dom->saveXML(), 38); // remove the auto-generated xml tag from the start

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.0000.01517.00
8.3.50.0040.01118.38
8.3.40.0130.00619.54
8.3.30.0060.00919.30
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.180.0090.00925.92
8.2.170.0130.00322.96
8.2.160.0100.00322.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00317.75
8.2.110.0040.00722.75
8.2.100.0040.00718.09
8.2.90.0080.00018.00
8.2.80.0050.00319.15
8.2.70.0030.00517.88
8.2.60.0050.00317.88
8.2.50.0000.00818.05
8.2.40.0040.00418.53
8.2.30.0040.00418.47
8.2.20.0000.00718.39
8.2.10.0070.00019.73
8.2.00.0040.00419.81
8.1.280.0060.00925.92
8.1.270.0000.00823.99
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0070.00319.51
8.1.230.0080.00421.41
8.1.220.0040.00419.04
8.1.210.0000.00818.77
8.1.200.0090.00018.02
8.1.190.0040.00417.73
8.1.180.0040.00418.10
8.1.170.0040.00417.84
8.1.160.0070.00024.19
8.1.150.0000.00719.19
8.1.140.0000.00819.23
8.1.130.0000.00720.46
8.1.120.0040.00417.89
8.1.110.0040.00417.78
8.1.100.0000.00717.79
8.1.90.0040.00417.89
8.1.80.0080.00017.76
8.1.70.0000.00717.79
8.1.60.0030.00518.00
8.1.50.0030.00517.82
8.1.40.0040.00417.82
8.1.30.0000.00817.99
8.1.20.0040.00417.99
8.1.10.0040.00417.95
8.1.00.0000.00817.85
8.0.300.0040.00418.77
8.0.290.0060.00317.25
8.0.280.0000.00718.77
8.0.270.0070.00018.49
8.0.260.0040.00420.58
8.0.250.0000.00717.44
8.0.240.0000.00717.45
8.0.230.0000.00717.44
8.0.220.0030.00317.41
8.0.210.0000.00717.40
8.0.200.0000.00717.38
8.0.190.0000.00817.33
8.0.180.0000.00817.33
8.0.170.0060.00317.30
8.0.160.0000.00817.38
8.0.150.0050.00317.27
8.0.140.0000.00717.24
8.0.130.0030.00313.81
8.0.120.0040.00417.34
8.0.110.0050.00317.32
8.0.100.0040.00417.16
8.0.90.0030.00617.46
8.0.80.0070.01217.28
8.0.70.0020.00517.23
8.0.60.0040.00417.33
8.0.50.0040.00417.21
8.0.30.0110.00617.62
8.0.20.0090.00917.61
8.0.10.0040.00417.28
8.0.00.0070.01717.19
7.4.330.0050.00015.55
7.4.320.0060.00016.86
7.4.300.0000.00716.83
7.4.290.0030.00617.04
7.4.280.0060.00316.88
7.4.270.0000.00716.87
7.4.260.0000.00513.72
7.4.250.0040.00416.94
7.4.240.0050.00216.94
7.4.230.0050.00417.09
7.4.220.0000.00816.86
7.4.210.0080.00917.04
7.4.200.0050.00216.71
7.4.130.0080.00916.99
7.4.120.0160.00316.99
7.4.110.0130.01016.96
7.4.100.0040.01716.87
7.4.90.0120.00617.01
7.4.80.0100.00719.39
7.4.70.0130.00816.78
7.4.60.0030.01416.75
7.4.50.0100.01016.80
7.4.40.0080.01416.65
7.4.30.0120.00616.87
7.4.20.0120.01216.87
7.4.10.0130.00816.50
7.4.00.0070.00716.84
7.3.330.0040.00416.62
7.3.320.0030.00313.59
7.3.310.0020.00516.72
7.3.300.0030.00316.55
7.3.290.0080.00816.66
7.3.260.0090.01216.96
7.3.240.0060.01116.82
7.3.230.0070.01016.79
7.3.210.0110.00716.93
7.3.200.0090.00616.67
7.3.190.0130.01016.96
7.3.180.0060.01216.68
7.3.170.0140.00916.69
7.3.160.0070.01316.60
7.3.150.0190.00516.93
7.3.140.0120.00616.47
7.3.130.0050.01516.71
7.3.120.0130.01316.59
7.3.110.0120.01216.27
7.3.100.0160.01216.43
7.3.90.0190.00316.61
7.3.80.0140.00716.34
7.3.70.0140.00716.43
7.3.60.0080.01116.55
7.3.50.0150.00916.52
7.3.40.0140.00716.49
7.3.30.0100.00916.74
7.3.20.0170.00916.73
7.3.10.0100.01316.66
7.3.00.0140.01116.76
7.2.330.0090.00916.98
7.2.320.0110.00717.23
7.2.310.0110.00616.63
7.2.300.0140.01117.11
7.2.290.0080.01416.88
7.2.280.0090.01317.06
7.2.270.0120.01016.89
7.2.260.0070.01716.92
7.2.250.0110.01317.04
7.2.240.0160.01316.55
7.2.230.0190.00717.00
7.2.220.0030.01617.14
7.2.210.0070.01416.77
7.2.200.0100.01316.66
7.2.190.0170.00716.95
7.2.180.0120.00916.78
7.2.170.0150.00316.92
7.2.160.0090.00916.94
7.2.150.0070.01316.99
7.2.140.0110.00816.96
7.2.130.0120.00816.90
7.2.120.0080.01217.16
7.2.110.0080.01216.87
7.2.100.0080.01216.95
7.2.90.0090.01316.97
7.2.80.0000.02416.92
7.2.70.0120.00916.84
7.2.60.0100.01017.04
7.2.50.0080.01216.88
7.2.40.0150.00616.84
7.2.30.0100.01017.12
7.2.20.0160.00516.73
7.2.10.0120.00816.82
7.2.00.0070.01417.11

preferences:
56.36 ms | 400 KiB | 5 Q