3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Business Rule X0000-005 - The XML data has failed schema validation. cvc-maxInclusive-valid. Value '3144' is not facet-valid with respect to maxInclusive '2500' for type '#AnonType_StudentLoanInterestDedAmtIRS1040Type'. Field/Xpath:/efile:Return[1]/efile:ReturnData[1]/efile:IRS1040[1]/efile:StudentLoanInterestDedAmt["; $nonxmlbusrules_short = '/(?:Rule[\s])([a-zA-Z][0-9a-zA-Z]*[\-][0-9a-zA-Z]*)/'; $allbusrules = '/((?:Rule[\s])([a-zA-Z]{3}|[a-zA-z]{2}[0-9]{1})*[\-][0-9]*([-0-9]*)?)/'; $xmlbusrules = '/(X0000-005)/'; $nonxmlbusrules_long = '/(?:Rule[\s])([0-9a-zA-Z]*[\-][0-9a-zA-Z]*([\-][0-9a-zA-Z]*)?([-0-9]*)?)/'; $xpath_matcher = '/(?:Field\/Xpath:)[\s]*(.*)/'; // Match non-xml short business rules preg_match_all($nonxmlbusrules_short, $str, $matches[1]); $busRules_arr_short = $matches; // Match all business rules according to the pattern preg_match_all($allbusrules, $str, $matches[1]); $busRules_arr = $matches; // Match xml business rules and merge them into the all-rules preg_match_all($xmlbusrules, $str, $matches); $busRules_arr=array_merge($busRules_arr,$matches[1]); // Match non-XML long business rules and merge them into the all-rules preg_match_all($nonxmlbusrules_long, $str, $matches); $busRules_arr = array_merge($busRules_arr,$matches[1]); preg_match_all($xpath_matcher, $str, $matches); $xPath_arr = $matches[1]; $xPath_arr = preg_replace("(\[.*?\])", '', $xPath_arr); $xPath_arr = preg_replace("(\[*?)", '', $xPath_arr); foreach ($busRules_arr as $idx => $brule) { if (trim(strtolower($brule)) =='x0000-005') { echo "ITS AN XML RULE!"; }} print_r($busRules_arr[1]); print_r($xPath_arr);

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.5.10.0080.01118.96
8.5.00.0120.01020.42
8.4.150.0020.00114.05
8.4.140.0140.00918.12
8.4.130.0010.00918.09
8.4.120.0110.00522.45
8.4.110.0120.00822.36
8.4.100.0060.00318.21
8.4.90.0150.00620.03
8.4.80.0040.00418.22
8.4.70.0070.00218.34
8.4.60.0040.00518.16
8.4.50.0110.01018.10
8.4.40.0060.01518.23
8.4.30.0060.00319.66
8.4.20.0080.00418.86
8.4.10.0100.01018.27
8.3.280.0070.01418.90
8.3.270.0150.00517.19
8.3.260.0100.01017.14
8.3.250.0130.00619.25
8.3.240.0050.00317.05
8.3.230.0120.00816.95
8.3.220.0120.00717.36
8.3.210.0100.00917.23
8.3.200.0150.00617.16
8.3.190.0110.00817.31
8.3.180.0120.00716.95
8.3.170.0060.00317.17
8.3.160.0130.00616.83
8.3.150.0150.00419.02
8.3.140.0090.00917.01
8.3.130.0040.00418.70
8.3.120.0070.00318.84
8.3.110.0160.00320.94
8.3.100.0040.00424.06
8.3.90.0160.00326.77
8.3.80.0000.01017.97
8.3.70.0000.01917.17
8.3.60.0120.00318.68
8.3.50.0110.00318.63
8.3.40.0080.00818.95
8.3.30.0040.01119.00
8.3.20.0000.00820.67
8.3.10.0080.00023.66
8.3.00.0050.00319.64
8.2.290.0100.01020.46
8.2.280.0100.00918.69
8.2.270.0110.00716.83
8.2.260.0090.00919.23
8.2.250.0000.00818.67
8.2.240.0120.00417.13
8.2.230.0080.00322.58
8.2.220.0100.00737.54
8.2.210.0000.00926.77
8.2.200.0030.00618.66
8.2.190.0110.00316.75
8.2.180.0090.01216.75
8.2.170.0160.00622.96
8.2.160.0090.00919.40
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00726.16
8.2.120.0000.00920.99
8.2.110.0030.00620.66
8.2.100.0130.00019.95
8.2.90.0050.00518.13
8.2.80.0050.00318.00
8.2.70.0050.00317.88
8.2.60.0060.00317.73
8.2.50.0040.00418.00
8.2.40.0030.00718.00
8.2.30.0000.00818.16
8.2.20.0050.00318.20
8.2.10.0060.00318.25
8.2.00.0050.00218.38
8.1.330.0090.01016.75
8.1.320.0110.00816.73
8.1.310.0040.00416.69
8.1.300.0050.00316.69
8.1.290.0070.00430.84
8.1.280.0110.00425.92
8.1.270.0080.00020.45
8.1.260.0100.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00721.16
8.1.230.0110.00017.89
8.1.220.0040.00417.91
8.1.210.0030.00618.77
8.1.200.0070.00317.60
8.1.190.0050.00317.48
8.1.180.0040.00418.10
8.1.170.0000.00717.65
8.1.160.0020.00519.04
8.1.150.0000.00718.75
8.1.140.0000.00817.71
8.1.130.0030.00319.01
8.1.120.0000.00817.60
8.1.110.0040.00417.54
8.1.100.0040.00417.70
8.1.90.0050.00317.70
8.1.80.0040.00417.62
8.1.70.0040.00417.70
8.1.60.0000.00817.65
8.1.50.0090.00017.78
8.1.40.0040.00417.65
8.1.30.0040.00417.73
8.1.20.0000.00817.86
8.1.10.0060.00317.81
8.1.00.0030.00617.76
8.0.300.0000.00718.77
8.0.290.0050.00317.00
8.0.280.0080.00018.67
8.0.270.0040.00417.25
8.0.260.0070.00017.20
8.0.250.0000.00817.30
8.0.240.0040.00417.28
8.0.230.0070.00017.29
8.0.220.0000.00717.22
8.0.210.0040.00417.23
8.0.200.0030.00317.18
8.0.190.0050.00317.32
8.0.180.0040.00417.31
8.0.170.0000.00917.22
8.0.160.0020.00517.25
8.0.150.0000.00717.22
8.0.140.0000.00717.18
8.0.130.0000.00613.69
8.0.120.0040.00417.18
8.0.110.0000.00817.07
8.0.100.0000.00717.30
8.0.90.0060.00317.29
8.0.80.0120.00917.15
8.0.70.0080.00017.18
8.0.60.0040.00417.22
8.0.50.0040.00417.02
8.0.30.0110.00817.40
8.0.20.0110.00817.51
8.0.10.0040.00417.24
8.0.00.0070.01117.04
7.4.330.0050.00015.55
7.4.320.0000.00716.80
7.4.300.0030.00316.75
7.4.290.0040.00416.83
7.4.280.0020.00516.68
7.4.270.0030.00516.85
7.4.260.0000.00716.79
7.4.250.0040.00416.84
7.4.240.0000.00816.88
7.4.230.0000.00816.72
7.4.220.0040.00416.97
7.4.210.0050.01016.70
7.4.200.0080.00016.77
7.4.160.0110.00816.77
7.4.150.0060.01217.40
7.4.140.0120.01017.86
7.4.130.0120.01216.91
7.4.120.0110.00816.82
7.3.330.0040.00413.45
7.3.320.0050.00013.47
7.3.310.0030.00316.58
7.3.300.0040.00416.45
7.3.290.0000.00716.68
7.3.280.0080.00816.62
7.3.270.0120.00617.40
7.3.260.0120.00816.56
7.3.250.0120.00916.67
7.3.240.0100.00716.72

preferences:
166.88 ms | 403 KiB | 5 Q