3v4l.org

run code in 300+ PHP versions simultaneously
<?php $example_response = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><SubmitVendorLeadResponse xmlns="http://www.quotewizard.com/"><SubmitVendorLeadResult>&lt;?xml version="1.0" encoding="utf-16"?&gt; &lt;QWXMLResponse Version="1.0"&gt; &lt;DateTime&gt;6/5/2014 6:08:45 AM&lt;/DateTime&gt; &lt;Contract_ID&gt;EB49169C-780F-4CA9-B25B-4DA2673D5636&lt;/Contract_ID&gt; &lt;Quote_ID&gt;0ad90b17-dc48-4170-9da1-f8c2cfc171cd&lt;/Quote_ID&gt; &lt;Status&gt;Success&lt;/Status&gt; &lt;Payout&gt;10.20&lt;/Payout&gt; &lt;/QWXMLResponse&gt;</SubmitVendorLeadResult></SubmitVendorLeadResponse></soap:Body></soap:Envelope>'; preg_match("/.*&lt;Quote_ID&gt;(?P<leadID>[0-9a-zA-Z\-]*).*Status&gt;(?P<status>[a-zA-Z]*).*Payout&gt;(?P<price>[0-9\.]*)&lt;.*/" , $example_response, $test_response); var_dump($test_response);

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.0080.00816.50
8.3.50.0140.00522.12
8.3.40.0000.01518.83
8.3.30.0070.00718.92
8.3.20.0040.00420.20
8.3.10.0000.00723.48
8.3.00.0000.00819.38
8.2.180.0060.00918.41
8.2.170.0110.00722.96
8.2.160.0070.00720.25
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0070.00022.38
8.2.110.0090.00022.20
8.2.100.0040.00817.97
8.2.90.0040.00419.05
8.2.80.0040.00717.97
8.2.70.0040.00417.75
8.2.60.0090.00018.04
8.2.50.0050.00318.07
8.2.40.0000.00819.95
8.2.30.0040.00418.05
8.2.20.0000.00817.82
8.2.10.0040.00417.90
8.2.00.0070.00317.78
8.1.280.0070.01525.92
8.1.270.0080.00023.83
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.84
8.1.230.0110.00019.01
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0040.00417.53
8.1.180.0090.00018.10
8.1.170.0060.00318.57
8.1.160.0000.00721.98
8.1.150.0050.00218.64
8.1.140.0040.00417.54
8.1.130.0000.00717.87
8.1.120.0040.00417.58
8.1.110.0040.00417.55
8.1.100.0040.00417.56
8.1.90.0000.00717.59
8.1.80.0040.00417.38
8.1.70.0030.00317.54
8.1.60.0000.00817.69
8.1.50.0000.00817.50
8.1.40.0040.00417.65
8.1.30.0000.00817.71
8.1.20.0000.00817.73
8.1.10.0020.00517.65
8.1.00.0030.00617.59
8.0.300.0040.00419.03
8.0.290.0040.00417.05
8.0.280.0000.00718.41
8.0.270.0000.00717.21
8.0.260.0050.00317.22
8.0.250.0030.00317.05
8.0.240.0070.00017.02
8.0.230.0030.00317.02
8.0.220.0000.00816.85
8.0.210.0000.00816.96
8.0.200.0000.00617.07
8.0.190.0000.00917.11
8.0.180.0000.00717.00
8.0.170.0040.00416.93
8.0.160.0040.00416.94
8.0.150.0030.00316.95
8.0.140.0030.00316.85
8.0.130.0000.00513.41
8.0.120.0050.00317.04
8.0.110.0050.00316.95
8.0.100.0070.00316.94
8.0.90.0040.00417.00
8.0.80.0120.00617.01
8.0.70.0000.00816.81
8.0.60.0030.00517.00
8.0.50.0000.00716.89
8.0.30.0110.00717.09
8.0.20.0040.01417.40
8.0.10.0040.00417.09
8.0.00.0080.01116.89
7.4.330.0000.00515.00
7.4.320.0030.00316.60
7.4.300.0060.00016.70
7.4.290.0050.00316.79
7.4.280.0030.00516.55
7.4.270.0040.00416.80
7.4.260.0000.00716.71
7.4.250.0050.00316.55
7.4.240.0020.00516.75
7.4.230.0030.00316.54
7.4.220.0140.00316.64
7.4.210.0100.00516.79
7.4.200.0060.00316.83
7.4.190.0070.00016.70
7.4.160.0000.01516.72
7.4.150.0100.01517.40
7.4.140.0100.00717.86
7.4.130.0100.00716.79
7.4.120.0090.01116.69
7.4.110.0070.01016.58
7.4.100.0070.01016.85
7.4.90.0040.01516.57
7.4.80.0170.00019.39
7.4.70.0060.01116.75
7.4.60.0170.00016.57
7.4.50.0060.00316.41
7.4.40.0030.01022.77
7.4.30.0150.00816.70
7.4.00.0070.01115.14
7.3.330.0050.00013.04
7.3.320.0000.00613.12
7.3.310.0040.00416.38
7.3.300.0040.00416.32
7.3.290.0070.01416.36
7.3.280.0070.01216.29
7.3.270.0140.00617.40
7.3.260.0110.00616.27
7.3.250.0070.01016.45
7.3.240.0080.00816.25
7.3.230.0110.00516.54
7.3.210.0140.00316.55
7.3.200.0060.01819.39
7.3.190.0160.00616.22
7.3.180.0080.00816.43
7.3.170.0040.01116.74
7.3.160.0060.01016.61
7.3.120.0030.01314.77
7.2.330.0070.01116.65
7.2.320.0120.00616.70
7.2.310.0110.01216.71
7.2.300.0120.00916.75
7.2.290.0030.01316.55
7.2.80.0030.01316.48
7.2.60.0000.01517.00
7.2.00.0060.01019.68
7.1.200.0090.00315.89
7.1.100.0110.00018.35
7.1.70.0000.00817.18
7.1.60.0070.01519.46
7.1.50.0000.01116.99
7.1.00.0000.08022.33
7.0.200.0190.00015.14
7.0.140.0000.07722.12
7.0.60.0030.04719.90
7.0.50.0100.08017.91
7.0.40.0130.08020.09
7.0.30.0230.09020.11
7.0.20.0170.04020.23
7.0.10.0230.04320.22
7.0.00.0030.08020.05
5.6.280.0070.07020.98
5.6.210.0100.07720.54
5.6.200.0070.08718.12
5.6.190.0100.03720.61
5.6.180.0270.04720.35
5.6.170.0300.06020.41
5.6.160.0070.04720.40
5.6.150.0070.07718.14
5.6.140.0070.07318.09
5.6.130.0070.04718.09
5.6.120.0100.04021.01
5.6.110.0030.08020.93
5.6.100.0130.05021.01
5.6.90.0000.04720.96
5.6.80.0070.06720.53
5.6.70.4630.02720.51
5.5.350.0070.07320.41
5.5.340.0030.08017.98
5.5.330.0100.04320.13
5.5.320.0370.06720.27
5.5.310.0370.07320.41
5.5.300.0070.06317.89
5.5.290.0100.08317.87
5.5.280.0030.07320.77
5.5.270.0070.04720.76
5.5.260.0070.08320.72
5.5.250.0100.05320.68
5.5.240.0370.06720.18
5.4.450.0630.05719.51
5.4.440.0100.05719.59
5.4.430.0070.06319.59
5.4.420.0530.05719.64
5.4.410.0570.06019.11
5.4.400.0770.04719.00
5.4.390.0830.05719.15
5.4.380.0170.06318.78
5.4.370.0430.05018.56
5.4.360.0130.06718.72
5.4.350.0370.05018.53
5.4.340.0370.04718.54
5.4.320.0030.04012.45
5.4.310.0090.03512.45
5.4.300.0050.03912.45
5.4.290.0220.06312.44
5.4.280.0090.05312.34
5.4.270.0170.05412.34
5.4.260.0130.08112.34
5.4.250.0140.08812.34
5.4.240.0130.05612.34
5.4.230.0250.08612.33
5.4.220.0130.08912.33
5.4.210.0100.04312.33
5.4.200.0100.04712.33
5.4.190.0090.05012.33
5.4.180.0120.07012.32
5.4.170.0120.05912.34
5.4.160.0090.04012.33
5.4.150.0080.04512.33
5.4.140.0140.06612.01
5.4.130.0210.05212.00
5.4.120.0080.05211.96
5.4.110.0090.04011.96
5.4.100.0090.06211.95
5.4.90.0100.05311.96
5.4.80.0110.05911.96
5.4.70.0140.05611.95
5.4.60.0110.05211.95
5.4.50.0220.09611.95
5.4.40.0060.05011.94
5.4.30.0080.04811.93
5.4.20.0070.05311.94
5.4.10.0120.05011.93
5.4.00.0110.07111.43
5.3.290.0090.03812.80
5.3.280.0100.05812.71
5.3.270.0090.05412.73
5.3.260.0140.07412.72
5.3.250.0120.08312.72
5.3.240.0090.04212.72
5.3.230.0060.05812.71
5.3.220.0120.05412.68
5.3.210.0140.06412.68
5.3.200.0090.08312.68
5.3.190.0070.05112.68
5.3.180.0060.05412.67
5.3.170.0090.07012.67
5.3.160.0160.05512.67
5.3.150.0080.04012.67
5.3.140.0130.05612.66
5.3.130.0170.06212.65
5.3.120.0080.06312.66
5.3.110.0120.09312.66
5.3.100.0090.05512.12
5.3.90.0160.07412.08
5.3.80.0160.07412.07
5.3.70.0110.05712.07
5.3.60.0090.07212.06
5.3.50.0120.07612.00
5.3.40.0200.08112.00
5.3.30.0100.06611.96
5.3.20.0120.06411.73
5.3.10.0320.13511.70
5.3.00.0230.07411.69
5.2.170.0180.0829.19
5.2.160.0250.0569.19
5.2.150.0160.0519.19
5.2.140.0070.0409.19
5.2.130.0140.0719.14
5.2.120.0130.0429.14
5.2.110.0100.0469.16
5.2.100.0040.0449.15
5.2.90.0130.0609.16
5.2.80.0030.0579.14
5.2.70.0110.0699.15
5.2.60.0180.0739.10
5.2.50.0050.0349.07
5.2.40.0050.0329.05
5.2.30.0170.0299.03
5.2.20.0080.0419.02
5.2.10.0080.0378.93
5.2.00.0080.0538.79
5.1.60.0050.0388.07
5.1.50.0110.0478.07
5.1.40.0120.0588.05
5.1.30.0210.0588.40
5.1.20.0070.0518.42
5.1.10.0160.0558.15
5.1.00.0190.0568.15
5.0.50.0110.0606.63
5.0.40.0060.0506.49
5.0.30.0020.0466.30
5.0.20.0190.0346.27
5.0.10.0090.0356.25
5.0.00.0080.0336.24
4.4.90.0040.0244.78
4.4.80.0060.0304.75
4.4.70.0040.0224.75
4.4.60.0020.0274.75
4.4.50.0120.0274.77
4.4.40.0050.0334.71
4.4.30.0060.0204.76
4.4.20.0050.0224.84
4.4.10.0030.0264.85
4.4.00.0050.0324.75
4.3.110.0050.0224.67
4.3.100.0060.0224.66
4.3.90.0020.0244.64
4.3.80.0030.0284.58
4.3.70.0020.0234.63
4.3.60.0050.0224.63
4.3.50.0030.0184.62
4.3.40.0030.0264.54
4.3.30.0020.0173.29
4.3.20.0030.0213.27
4.3.10.0030.0203.23
4.3.00.0170.02710.54

preferences:
55.7 ms | 401 KiB | 5 Q