3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<para>From the New York Times</para> <para>Instacart, a two-year-old grocery delivery company, announced a $44 million round of financing on Monday led by Andreessen Horowitz. Three venture capital firms that previously invested in the company, Sequoia Capital, Khosla Ventures and Canaan Partners, participated in the latest round.</para> <para>The company, which is based in San Francisco, lets customers shop online from grocery stores in their area. The orders are filled by other people who have signed up to be shoppers and who receive a cut of the delivery fees. Information about a store’s inventory comes from store managers and from the shoppers. The company says it can have groceries delivered within an hour.</para>"; $dom = new DOMDocument; $dom->preserveWhiteSpace = false; $dom->formatOutput = true; libxml_use_internal_errors(true); $dom->loadHTML($str, LIBXML_HTML_NODEFDTD | LIBXML_HTML_NOIMPLIED); $xpath = new DOMXPath($dom); $secondPara = $xpath->query('//para[2]'); $secondPara->item(0)->setAttribute('align', 'left'); echo $dom->saveHTML();

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.70.0150.00418.81
8.3.60.0090.00617.00
8.3.50.0120.00822.14
8.3.40.0120.00319.39
8.3.30.0040.01119.56
8.3.20.0040.00420.66
8.3.10.0000.00824.02
8.3.00.0040.00419.75
8.2.180.0100.01017.13
8.2.170.0150.00722.96
8.2.160.0100.00320.88
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00022.63
8.2.110.0050.00520.98
8.2.100.0040.00818.09
8.2.90.0040.00419.54
8.2.80.0040.00417.97
8.2.70.0030.00618.13
8.2.60.0080.00018.17
8.2.50.0060.00318.13
8.2.40.0000.00820.32
8.2.30.0040.00418.33
8.2.20.0000.00818.12
8.2.10.0080.00018.37
8.2.00.0000.01018.15
8.1.280.0120.00325.92
8.1.270.0000.00824.22
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00324.21
8.1.230.0080.00417.89
8.1.220.0060.00318.16
8.1.210.0060.00318.77
8.1.200.0030.00617.72
8.1.190.0030.00617.85
8.1.180.0040.00719.26
8.1.170.0050.00519.14
8.1.160.0030.00522.30
8.1.150.0040.00418.93
8.1.140.0030.00517.75
8.1.130.0000.00718.14
8.1.120.0040.00417.79
8.1.110.0040.00417.70
8.1.100.0040.00417.74
8.1.90.0030.00517.66
8.1.80.0030.00517.79
8.1.70.0040.00417.75
8.1.60.0030.00617.89
8.1.50.0000.00817.84
8.1.40.0030.00617.76
8.1.30.0040.00717.82
8.1.20.0080.00017.86
8.1.10.0040.00417.98
8.1.00.0040.00417.89
8.0.300.0050.00218.77
8.0.290.0050.00217.13
8.0.280.0000.00718.91
8.0.270.0030.00317.50
8.0.260.0000.00617.48
8.0.250.0030.00517.22
8.0.240.0040.00417.32
8.0.230.0070.00017.24
8.0.220.0000.00717.17
8.0.210.0030.00317.20
8.0.200.0000.00617.19
8.0.190.0000.00817.25
8.0.180.0040.00417.11
8.0.170.0060.00317.24
8.0.160.0000.00717.05
8.0.150.0060.00317.18
8.0.140.0070.00317.17
8.0.130.0030.00313.65
8.0.120.0060.00317.18
8.0.110.0000.00717.20
8.0.100.0050.00217.20
8.0.90.0000.00817.25
8.0.80.0060.01217.17
8.0.70.0000.00716.96
8.0.60.0000.00717.25
8.0.50.0040.00417.04
8.0.30.0070.01217.42
8.0.20.0120.00717.46
8.0.10.0040.00417.06
8.0.00.0110.00816.99
7.4.330.0060.00015.00
7.4.320.0030.00316.93
7.4.300.0030.00316.81
7.4.290.0040.00416.82
7.4.280.0000.00816.85
7.4.270.0050.00216.88
7.4.260.0000.00716.84
7.4.250.0000.00816.83
7.4.240.0010.00616.80
7.4.230.0000.00716.88
7.4.220.0060.01616.99
7.4.210.0100.00816.94
7.4.200.0040.00416.76
7.4.190.0040.00316.89
7.4.160.0100.00616.70
7.4.150.0160.00317.40
7.4.140.0080.01317.86
7.4.130.0070.01016.84
7.4.120.0100.00716.82
7.4.110.0140.00416.67
7.4.100.0100.00716.89
7.4.90.0070.01116.97
7.4.80.0150.00819.39
7.4.70.0130.00916.72
7.4.60.0090.00916.86
7.4.50.0050.00316.89
7.4.40.0130.00916.70
7.4.30.0100.00616.88
7.4.00.0100.00715.10
7.3.330.0050.00013.57
7.3.320.0000.00513.55
7.3.310.0040.00416.63
7.3.300.0000.00716.64
7.3.290.0060.00916.58
7.3.280.0100.00716.58
7.3.270.0160.00317.40
7.3.260.0190.00016.79
7.3.250.0110.00916.83
7.3.240.0160.00316.52
7.3.230.0060.01616.78
7.3.210.0100.00716.64
7.3.200.0060.01619.39
7.3.190.0080.01016.52
7.3.180.0030.01216.64
7.3.170.0070.01016.57
7.3.160.0100.00616.81
7.3.120.0110.00415.24
7.3.10.0080.00416.77
7.3.00.0030.00816.87
7.2.330.0070.01417.02
7.2.320.0040.01616.91
7.2.310.0120.00617.11
7.2.300.0090.00616.71
7.2.290.0070.01616.75
7.2.130.0100.00717.19
7.2.120.0040.01217.01
7.2.110.0080.00817.15
7.2.100.0070.00717.06
7.2.90.0110.00717.21
7.2.80.0100.00616.78
7.2.70.0070.00717.32
7.2.60.0070.00716.84
7.2.50.0040.00717.17
7.2.40.0090.00616.83
7.2.30.0070.00417.10
7.2.20.0060.00316.93
7.2.10.0060.00616.88
7.2.00.0060.00716.97
7.1.250.0070.00715.86
7.1.240.0070.00415.86
7.1.230.0030.01215.91
7.1.220.0060.00315.88
7.1.210.0030.00715.61
7.1.200.0030.01015.88
7.1.190.0070.00715.88
7.1.180.0000.01315.92
7.1.170.0070.01115.92
7.1.160.0060.01015.70
7.1.150.0040.00815.86
7.1.140.0070.00715.62
7.1.130.0140.00016.01
7.1.120.0040.00915.51
7.1.110.0070.00415.57
7.1.100.0040.01115.88
7.1.90.0040.01216.00
7.1.80.0040.01115.71
7.1.70.0010.00816.50
7.1.60.0050.01317.57
7.1.50.0060.01016.17
7.1.40.0000.01015.97
7.1.30.0060.00915.90
7.1.20.0100.00015.73
7.1.10.0070.00415.83
7.1.00.0020.04419.26
7.0.330.0110.00315.64
7.0.320.0090.00615.40
7.0.310.0060.00615.59
7.0.300.0080.00815.52
7.0.290.0060.00615.29
7.0.280.0130.00015.29
7.0.270.0070.00715.33
7.0.260.0070.00315.56
7.0.250.0030.00915.34
7.0.240.0060.00615.34
7.0.230.0040.01115.52
7.0.220.0130.00015.42
7.0.210.0060.00915.34
7.0.200.0080.00116.18
7.0.190.0060.00615.53
7.0.180.0000.01115.82
7.0.170.0040.00815.36
7.0.160.0060.00615.62
7.0.150.0070.00715.63
7.0.140.0080.03918.84
7.0.130.0000.00715.38
7.0.120.0030.01015.60
7.0.110.0100.04317.84
7.0.100.0060.04317.68
7.0.90.0050.04517.78
7.0.80.0030.04417.85
7.0.70.0120.03717.77
7.0.60.0070.04817.77
7.0.50.0200.04018.07
7.0.40.0070.03816.86
7.0.30.0050.04517.06
7.0.20.0080.04216.93
7.0.10.0030.04216.86
7.0.00.0120.04216.90
5.6.380.0060.00314.74
5.6.370.0090.00314.64
5.6.360.0060.00914.61
5.6.350.0060.00914.77
5.6.340.0060.00314.25
5.6.330.0040.00414.68
5.6.320.0030.01014.61
5.6.310.0070.00714.54
5.6.300.0040.00414.54
5.6.290.0000.01114.30
5.6.280.0000.04517.67
5.6.270.0090.00314.30
5.6.260.0070.04217.67
5.6.250.0050.04317.51
5.6.240.0050.04117.63
5.6.230.0030.04717.63
5.6.220.0040.04217.66
5.6.210.0090.03717.60
5.6.200.0060.02817.92
5.6.190.0140.03517.92
5.6.180.0070.03217.83
5.6.170.0080.04017.80
5.6.160.0050.04317.93
5.6.150.0070.04517.86
5.6.140.0030.04817.79
5.6.130.0030.04217.92
5.6.120.0070.04017.95
5.6.110.0140.02317.83
5.6.100.0130.03717.90
5.6.90.0050.04717.92
5.6.80.0030.02917.58
5.6.70.0110.04217.49
5.6.60.0080.04117.44
5.6.50.0100.02217.56
5.6.40.0140.02017.54
5.6.30.0080.02317.36
5.6.20.0040.02217.48
5.6.10.0040.02617.47
5.6.00.0050.02317.59
5.5.380.0080.04015.95
5.5.370.0080.04115.92
5.5.360.0110.03515.94
5.5.350.0100.04015.97
5.5.340.0080.04216.12
5.5.330.0050.02916.26
5.5.320.0070.04516.26
5.5.310.0050.04316.25
5.5.300.0050.04416.33
5.5.290.0080.04516.28
5.5.280.0080.04316.17
5.5.270.0110.04015.95
5.5.260.0060.04515.92
5.5.250.0120.04216.13
5.5.240.0030.02315.77
5.5.230.0040.04615.78
5.5.220.0100.03615.74
5.5.210.0060.01815.83
5.5.200.0050.04515.71
5.5.190.0030.02515.87
5.5.180.0050.03715.66
5.5.170.0070.00711.29
5.5.160.0070.02115.96
5.5.150.0030.02415.95
5.5.140.0030.02515.69
5.5.130.0030.02115.82
5.5.120.0000.02515.85
5.5.110.0030.02315.91
5.5.100.0030.02515.91
5.5.90.0000.02315.52
5.5.80.0000.02815.80
5.5.70.0080.01515.83
5.5.60.0030.04615.63
5.5.50.0030.03015.68
5.5.40.0050.02015.63
5.5.30.0040.02415.72
5.5.20.0030.02215.77
5.5.10.0050.02315.71
5.5.00.0050.02015.82
5.4.450.0130.03615.34
5.4.440.0070.03815.53
5.4.430.0030.04515.41
5.4.420.0100.02315.34
5.4.410.0010.04115.10
5.4.400.0070.04215.23
5.4.390.0050.03815.19
5.4.380.0050.04115.11
5.4.370.0070.03515.13
5.4.360.0080.02015.19
5.4.350.0110.03615.21
5.4.340.0050.02015.20
5.4.330.0030.00311.11
5.4.320.0000.02515.07
5.4.310.0030.02415.32
5.4.300.0040.02315.22
5.4.290.0050.02115.02
5.4.280.0030.02315.09
5.4.270.0100.01715.18
5.4.260.0060.01815.15
5.4.250.0050.02215.07
5.4.240.0050.02615.09
5.4.230.0020.02515.04
5.4.220.0050.02515.10
5.4.210.0080.03115.10
5.4.200.0030.02115.07
5.4.190.0030.02015.29
5.4.180.0020.02515.20
5.4.170.0090.03215.04
5.4.160.0020.02315.16
5.4.150.0060.02115.21
5.4.140.0070.03313.89
5.4.130.0070.01713.77
5.4.120.0050.02113.86
5.4.110.0020.02214.03
5.4.100.0070.02014.05
5.4.90.0070.01813.85
5.4.80.0040.02014.05
5.4.70.0030.02313.97
5.4.60.0040.02013.82
5.4.50.0080.01313.87
5.4.40.0020.02513.72
5.4.30.0020.02313.73
5.4.20.0050.02213.80
5.4.10.0090.01613.95
5.4.00.0060.01813.64
5.3.290.0000.03112.66
5.3.280.0030.03312.73
5.3.270.0030.02212.68
5.3.260.0040.02112.66
5.3.250.0050.02812.64
5.3.240.0020.02112.57
5.3.230.0000.02512.58
5.3.220.0030.02212.48
5.3.210.0020.02712.59
5.3.200.0080.01812.70
5.3.190.0030.02512.62
5.3.180.0010.02412.67
5.3.170.0020.02312.61
5.3.160.0000.02312.68
5.3.150.0050.01812.61
5.3.140.0020.02312.64
5.3.130.0030.02012.56
5.3.120.0060.01812.66
5.3.110.0020.02512.75
5.3.100.0030.02012.42
5.3.90.0020.02312.36
5.3.80.0000.02512.29
5.3.70.0000.02212.28
5.3.60.0060.02112.39
5.3.50.0040.02412.22
5.3.40.0050.03312.27
5.3.30.0060.03812.23
5.3.20.0050.04012.20
5.3.10.0030.04012.00
5.3.00.0070.03912.13
5.2.170.0050.02310.67
5.2.160.0080.03010.71
5.2.150.0030.02910.79
5.2.140.0050.03210.67
5.2.130.0020.03610.78
5.2.120.0030.03210.79
5.2.110.0030.02010.82
5.2.100.0030.02510.79
5.2.90.0070.02810.82
5.2.80.0030.02210.65
5.2.70.0010.03610.77
5.2.60.0080.02310.66
5.2.50.0020.01810.84
5.2.40.0000.03310.74
5.2.30.0020.03610.71
5.2.20.0030.03510.61
5.2.10.0030.03110.71
5.2.00.0110.02510.66
5.1.60.0030.02910.32
5.1.50.0050.02810.21
5.1.40.0030.02210.38
5.1.30.0020.03210.44
5.1.20.0050.02610.34
5.1.10.0030.02710.28
5.1.00.0060.02610.29
5.0.50.0030.0259.85
5.0.40.0050.0249.85
5.0.30.0050.0329.85
5.0.20.0020.0229.85
5.0.10.0050.0229.85
5.0.00.0040.0349.85
4.4.90.0020.0209.85
4.4.80.0020.0189.85
4.4.70.0000.0199.85
4.4.60.0020.0209.85
4.4.50.0020.0209.85
4.4.40.0050.0209.85
4.4.30.0000.0169.85
4.4.20.0000.0229.85
4.4.10.0020.0219.85
4.4.00.0020.0329.85
4.3.110.0000.0239.85
4.3.100.0020.0109.85
4.3.90.0000.0169.85
4.3.80.0030.0269.85
4.3.70.0050.0159.85
4.3.60.0000.0209.85
4.3.50.0020.0179.85
4.3.40.0050.0259.85
4.3.30.0010.0209.85
4.3.20.0020.0179.85
4.3.10.0030.0139.85
4.3.00.0000.0149.85

preferences:
59.91 ms | 401 KiB | 5 Q