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]{7}).*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.70.0070.01016.63
8.3.60.0040.01116.63
8.3.50.0110.00821.13
8.3.40.0030.01318.65
8.3.30.0100.00719.09
8.3.20.0080.00020.15
8.3.10.0040.00423.65
8.3.00.0080.00019.38
8.2.180.0060.01518.41
8.2.170.0100.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0090.00922.39
8.2.110.0060.00322.07
8.2.100.0080.00417.84
8.2.90.0030.00619.17
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0000.00817.93
8.2.50.0050.00518.07
8.2.40.0000.00819.88
8.2.30.0030.00619.69
8.2.20.0050.00317.84
8.2.10.0040.00417.90
8.2.00.0070.00317.69
8.1.280.0130.00725.92
8.1.270.0080.00023.79
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0040.00719.15
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0080.00017.39
8.1.180.0080.00418.10
8.1.170.0030.00518.51
8.1.160.0040.00421.90
8.1.150.0000.00718.60
8.1.140.0040.00417.48
8.1.130.0000.00717.81
8.1.120.0000.00717.47
8.1.110.0080.00017.50
8.1.100.0070.00017.44
8.1.90.0030.00417.46
8.1.80.0070.00017.57
8.1.70.0000.00717.56
8.1.60.0030.00617.56
8.1.50.0000.01017.48
8.1.40.0000.00817.59
8.1.30.0040.00417.70
8.1.20.0040.00417.72
8.1.10.0070.00017.57
8.1.00.0020.00517.60
8.0.300.0040.00419.09
8.0.290.0040.00417.18
8.0.280.0000.00718.29
8.0.270.0080.00017.27
8.0.260.0040.00417.13
8.0.250.0070.00016.95
8.0.240.0040.00416.94
8.0.230.0050.00217.08
8.0.220.0000.00816.90
8.0.210.0030.00516.96
8.0.200.0000.00717.07
8.0.190.0060.00316.93
8.0.180.0040.00416.89
8.0.170.0040.00416.98
8.0.160.0030.00316.92
8.0.150.0050.00216.95
8.0.140.0000.00716.86
8.0.130.0000.00613.45
8.0.120.0000.00817.01
8.0.110.0040.00317.01
8.0.100.0040.00417.04
8.0.90.0020.00517.05
8.0.80.0070.01616.99
8.0.70.0050.00316.86
8.0.60.0070.00016.80
8.0.50.0000.00716.87
8.0.30.0100.00817.32
8.0.20.0120.00717.44
8.0.10.0000.00816.98
8.0.00.0070.01216.92
7.4.330.0050.00015.11
7.4.320.0030.00316.65
7.4.300.0060.00016.79
7.4.290.0030.00316.77
7.4.280.0040.00416.57
7.4.270.0040.00416.67
7.4.260.0080.00016.62
7.4.250.0070.00016.52
7.4.240.0050.00216.69
7.4.230.0000.00716.54
7.4.220.0030.01416.84
7.4.210.0070.00716.63
7.4.200.0030.00516.85
7.4.190.0030.00316.82
7.4.160.0090.00616.68
7.4.150.0150.00917.40
7.4.140.0130.00717.86
7.4.130.0120.00516.63
7.4.120.0080.01016.63
7.4.110.0110.00616.70
7.4.100.0120.00616.63
7.4.90.0000.01716.70
7.4.80.0030.01519.39
7.4.70.0090.00916.67
7.4.60.0110.00616.52
7.4.50.0040.00416.63
7.4.40.0090.00422.77
7.4.30.0060.01516.63
7.4.00.0100.00314.96
7.3.330.0020.00213.17
7.3.320.0030.00313.12
7.3.310.0000.00816.34
7.3.300.0070.00016.29
7.3.290.0030.01016.33
7.3.280.0080.01216.27
7.3.270.0130.00717.40
7.3.260.0140.00316.39
7.3.250.0040.01416.55
7.3.240.0120.00816.20
7.3.230.0100.00716.39
7.3.210.0060.01116.26
7.3.200.0070.01319.39
7.3.190.0120.00916.44
7.3.180.0030.01316.60
7.3.170.0070.00716.52
7.3.160.0110.00416.40
7.3.120.0000.01415.08
7.2.330.0000.01816.54
7.2.320.0110.00616.57
7.2.310.0120.01216.58
7.2.300.0100.01316.63
7.2.290.0140.00316.73
7.2.00.0000.01119.06
7.1.100.0000.01118.43
7.1.70.0030.00316.97
7.1.60.0130.00919.46
7.1.50.0080.00316.94
7.1.00.0030.07322.48
7.0.200.0070.00415.00
7.0.140.0000.07722.21
7.0.60.0000.04319.86
7.0.50.0070.07317.93
7.0.40.0030.07319.87
7.0.30.0270.04020.36
7.0.20.0330.07320.25
7.0.10.0000.05320.22
7.0.00.0000.04720.18
5.6.280.0000.07720.86
5.6.210.0100.07720.47
5.6.200.0100.04718.12
5.6.190.0000.05720.29
5.6.180.0270.07720.45
5.6.170.0270.07720.62
5.6.160.0070.05020.49
5.6.150.0130.07318.08
5.6.140.0070.04318.08
5.6.130.0000.09018.22
5.6.120.0030.04721.03
5.6.110.0100.07320.95
5.6.100.0070.04721.13
5.6.90.0030.09020.98
5.6.80.0100.07320.27
5.5.350.0130.07720.42
5.5.340.0070.08018.02
5.5.330.0030.09020.12
5.5.320.0070.04020.41
5.5.310.0200.04320.29
5.5.300.0030.04018.03
5.5.290.0100.07717.98
5.5.280.0130.03320.76
5.5.270.0170.07720.86
5.5.260.0030.04720.88
5.5.250.0070.08320.54
5.5.240.0270.07020.31
5.4.450.0670.06019.32
5.4.440.0800.05719.47
5.4.430.0900.05719.13
5.4.420.0630.00019.42
5.4.410.0070.06018.79
5.4.400.0300.04718.69
5.4.390.0200.06018.50
5.4.380.0130.05318.65
5.4.370.0130.03718.78
5.4.360.0130.05018.46
5.4.350.0060.04911.97
5.4.340.0070.03611.97
5.4.320.0050.05112.45
5.4.310.0030.04012.45
5.4.300.0040.04412.45
5.4.290.0080.05312.44
5.4.280.0050.05612.34
5.4.270.0050.05412.34
5.4.260.0090.05312.34
5.4.250.0090.05112.34
5.4.240.0070.05312.34
5.4.230.0120.05112.33
5.4.220.0080.05312.33
5.4.210.0100.05412.33
5.4.200.0090.04712.33
5.4.190.0090.05012.33
5.4.180.0110.04612.33
5.4.170.0090.04812.34
5.4.160.0070.04312.33
5.4.150.0060.04512.33
5.4.140.0070.05212.02
5.4.130.0090.03912.00
5.4.120.0090.05411.96
5.4.110.0120.05111.95
5.4.100.0100.05211.95
5.4.90.0080.04811.95
5.4.80.0070.04711.95
5.4.70.0060.04811.95
5.4.60.0130.04811.96
5.4.50.0090.04711.95
5.4.40.0060.04411.94
5.4.30.0150.03911.94
5.4.20.0090.04711.94
5.4.10.0120.04911.94
5.4.00.0090.05611.43
5.3.290.0070.05612.80
5.3.280.0090.05312.71
5.3.270.0130.05412.73
5.3.260.0160.05212.71
5.3.250.0150.05312.72
5.3.240.0240.11112.72
5.3.230.0120.05012.71
5.3.220.0170.06012.68
5.3.210.0110.12612.68
5.3.200.0170.06712.68
5.3.190.0120.06012.68
5.3.180.0170.06512.67
5.3.170.0110.05412.67
5.3.160.0140.05612.67
5.3.150.0130.05912.67
5.3.140.0140.06212.66
5.3.130.0130.06412.66
5.3.120.0110.05412.65
5.3.110.0080.04312.66
5.3.100.0070.04112.12
5.3.90.0070.04412.09
5.3.80.0090.05412.08
5.3.70.0110.05612.08
5.3.60.0100.04612.06
5.3.50.0130.04212.00
5.3.40.0070.04712.00
5.3.30.0100.05711.96
5.3.20.0090.04811.73
5.3.10.0140.04411.70
5.3.00.0080.04211.69
5.2.170.0120.0429.19
5.2.160.0060.0379.19
5.2.150.0100.0379.19
5.2.140.0040.0459.19
5.2.130.0080.0449.15
5.2.120.0080.0489.14
5.2.110.0070.0379.16
5.2.100.0120.0299.15
5.2.90.0060.0399.15
5.2.80.0060.0419.14
5.2.70.0070.0369.15
5.2.60.0080.0379.10
5.2.50.0090.0339.07
5.2.40.0040.0359.05
5.2.30.0080.0349.03
5.2.20.0070.0359.02
5.2.10.0040.0348.93
5.2.00.0050.0328.79
5.1.60.0030.0338.08
5.1.50.0070.0418.07
5.1.40.0060.0328.05
5.1.30.0100.0308.40
5.1.20.0050.0368.42
5.1.10.0080.0328.15
5.1.00.0080.0338.15
5.0.50.0040.0286.63
5.0.40.0070.0246.49
5.0.30.0050.0396.30
5.0.20.0090.0216.27
5.0.10.0060.0276.25
5.0.00.0050.0396.25
4.4.90.0050.0204.78
4.4.80.0140.0404.76
4.4.70.0050.0544.75
4.4.60.0030.0234.76
4.4.50.0050.0204.77
4.4.40.0060.0314.71
4.4.30.0030.0224.76
4.4.20.0050.0234.85
4.4.10.0030.0254.85
4.4.00.0070.0314.76
4.3.110.0050.0224.67
4.3.100.0030.0234.66
4.3.90.0050.0254.63
4.3.80.0040.0354.59
4.3.70.0040.0234.63
4.3.60.0030.0234.63
4.3.50.0060.0244.62
4.3.40.0050.0384.54
4.3.30.0030.0243.29
4.3.20.0040.0233.27
4.3.10.0000.0273.23
4.3.00.0100.0207.03

preferences:
44.01 ms | 401 KiB | 5 Q