3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = '<function controlid="foobar"><create_potransaction><transactiontype>Item Receipt</transactiontype><datecreated><year>2016</year><month>12</month><day>07</day></datecreated><vendorid>49041</vendorid><documentno>IR-400206</documentno><datedue><year>2016</year><month>12</month><day>09</day></datedue><returnto><contactname>Johnny on the Spot Porta Potties LLC - Lexington, IL</contactname></returnto><payto><contactname>Johnny on the Spot Porta Potties LLC - Lexington, IL</contactname></payto><customfields><customfield><customfieldname>audit_notes</customfieldname><customfieldvalue>Site Add: 1301 South Main Street, Type: Construction Standard , Quantity: 2 – On Call, hStdChg: $70, hDeliv: $ 0, hRemove: 0, hBilling: 28 Days, hXtraServ: 0, hOther: 0, hFuel%: 0, hFuel$: 0, hTax%: 0, cStdChg: $155, cDeliv: $ 0, cRemove: 0, cBilling: 28 Days, cXtraServ: 0, cOther: 0, cTax%: 0, PO/Job Number: ----------- Profit Margin of $170 or 54.8%</customfieldvalue></customfield></customfields><potransitems><potransitem><itemid>50110</itemid><itemdesc>Normal, IL 61761'; $endash = html_entity_decode('\u0096', ENT_COMPAT, 'UTF-8'); $str = str_replace(chr(150), "-", $var);//&#194;&#150; $str = str_replace(chr(194), "-", $str);//&#194;&#150; $string = filter_var($var, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH); var_dump(is_numeric(-5)); //echo $str;

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.0110.00416.63
8.3.50.0080.01121.02
8.3.40.0080.00818.59
8.3.30.0040.01118.58
8.3.20.0040.00420.79
8.3.10.0000.00721.86
8.3.00.0040.00417.50
8.2.180.0110.00416.63
8.2.170.0100.00722.96
8.2.160.0030.01020.38
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00417.97
8.2.120.0000.00726.35
8.2.110.0090.00020.27
8.2.100.0090.00317.66
8.2.90.0000.00817.63
8.2.80.0040.00417.97
8.2.70.0080.00017.76
8.2.60.0000.00718.09
8.2.50.0050.00318.10
8.2.40.0040.00422.15
8.2.30.0000.00820.90
8.2.20.0080.00017.88
8.2.10.0040.00418.04
8.2.00.0040.00417.79
8.1.280.0100.01025.92
8.1.270.0070.00021.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.79
8.1.230.0070.00420.91
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0080.00517.13
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0000.00818.52
8.1.160.0000.00722.07
8.1.150.0040.00418.83
8.1.140.0040.00419.42
8.1.130.0030.00319.03
8.1.120.0040.00417.40
8.1.110.0040.00417.44
8.1.100.0040.00417.31
8.1.90.0080.00017.28
8.1.80.0030.00617.28
8.1.70.0030.00317.38
8.1.60.0080.00017.53
8.1.50.0040.00417.43
8.1.40.0040.00417.45
8.1.30.0040.00417.50
8.1.20.0060.00317.54
8.1.10.0000.00717.52
8.1.00.0050.00617.41
8.0.300.0040.00419.60
8.0.290.0030.00616.75
8.0.280.0000.00718.45
8.0.270.0000.00717.11
8.0.260.0030.00317.11
8.0.250.0030.00316.95
8.0.240.0040.00416.80
8.0.230.0030.00316.88
8.0.220.0050.00316.81
8.0.210.0000.00716.82
8.0.200.0000.00616.90
8.0.190.0040.00416.92
8.0.180.0090.00016.77
8.0.170.0000.00816.89
8.0.160.0000.00716.87
8.0.150.0000.00716.84
8.0.140.0000.00816.82
8.0.130.0030.00313.31
8.0.120.0000.00816.83
8.0.110.0000.00716.82
8.0.100.0040.00416.88
8.0.90.0050.00316.89
8.0.80.0130.00916.80
8.0.70.0070.00016.79
8.0.60.0000.00716.94
8.0.50.0040.00416.78
8.0.30.0100.00816.93
8.0.20.0070.01417.40
8.0.10.0000.00716.83
8.0.00.0160.00616.60
7.4.330.0020.00215.55
7.4.320.0030.00316.59
7.4.300.0070.00016.53
7.4.290.0040.00416.39
7.4.280.0040.00416.43
7.4.270.0000.00716.47
7.4.260.0080.00016.44
7.4.250.0070.00016.51
7.4.240.0000.00716.61
7.4.230.0030.00316.63
7.4.220.0140.01016.57
7.4.210.0070.00716.39
7.4.200.0030.00316.33
7.4.160.0090.00616.39
7.4.150.0220.00317.40
7.4.140.0160.01217.86
7.4.130.0060.01116.40
7.4.120.0120.00616.39
7.4.110.0060.01516.38
7.4.100.0110.00716.37
7.4.90.0070.01016.48
7.4.80.0060.01619.39
7.4.70.0070.01016.47
7.4.60.0100.01316.44
7.4.50.0030.00916.30
7.4.40.0070.01016.11
7.4.30.0040.01116.41
7.4.10.0080.01014.72
7.4.00.0080.01014.71
7.3.330.0050.00012.84
7.3.320.0000.00512.98
7.3.310.0030.00316.07
7.3.300.0070.00016.16
7.3.290.0070.00716.18
7.3.280.0100.00816.16
7.3.270.0130.00417.40
7.3.260.0110.01216.19
7.3.250.0040.01316.37
7.3.240.0130.00316.31
7.3.230.0070.01116.34
7.3.210.0100.00716.05
7.3.200.0100.00616.14
7.3.190.0080.00816.35
7.3.180.0090.00916.50
7.3.170.0070.01016.12
7.3.160.0170.00016.47
7.3.130.0090.00614.75
7.3.120.0080.00914.55
7.3.110.0080.00914.81
7.3.100.0080.00814.80
7.3.90.0060.00914.68
7.3.80.0060.00514.57
7.3.70.0020.01014.63
7.3.60.0060.00614.77
7.3.50.0070.00714.71
7.3.40.0060.00914.62
7.3.30.0030.00914.59
7.3.20.0060.00816.33
7.3.10.0060.00916.46
7.3.00.0060.00816.56
7.2.330.0130.00416.48
7.2.320.0110.00616.25
7.2.310.0090.00916.43
7.2.300.0070.01316.44
7.2.290.0060.01216.53
7.2.260.0070.00815.07
7.2.250.0130.00414.85
7.2.240.0030.01214.83
7.2.230.0090.00914.97
7.2.220.0070.00914.87
7.2.210.0060.01014.61
7.2.200.0040.01014.99
7.2.190.0040.01014.88
7.2.180.0050.00714.69
7.2.170.0070.00614.96
7.2.160.0050.01014.88
7.2.150.0050.01116.59
7.2.140.0020.01316.83
7.2.130.0040.00716.76
7.2.120.0140.00416.84
7.2.110.0020.01116.66
7.2.100.0060.00716.69
7.2.90.0060.00616.91
7.2.80.0030.01116.70
7.2.70.0070.00516.74
7.2.60.0020.01216.81
7.2.50.0060.01016.72
7.2.40.0040.00916.88
7.2.30.0060.00816.77
7.2.20.0070.00516.81
7.2.10.0010.01016.53
7.2.00.0050.00816.77
7.1.330.0040.00815.60
7.1.320.0090.00615.73
7.1.310.0030.00915.65
7.1.300.0020.01315.65
7.1.290.0080.00415.75
7.1.280.0040.00815.66
7.1.270.0020.01115.55
7.1.260.0040.00915.59
7.1.250.0110.00515.70
7.1.240.0100.00415.63
7.1.230.0050.00815.75
7.1.220.0080.00515.62
7.1.210.0000.01015.68
7.1.200.0060.00715.56
7.1.190.0020.01115.83
7.1.180.0100.00515.79
7.1.170.0070.00715.84
7.1.160.0080.00515.61
7.1.150.0070.00715.84
7.1.140.0060.00715.82
7.1.130.0060.00315.73
7.1.120.0050.01015.80
7.1.110.0050.00815.74
7.1.100.0080.00615.79
7.1.90.0080.00615.57
7.1.80.0060.00915.62
7.1.70.0050.00716.15
7.1.60.0070.00616.17
7.1.50.0100.00515.63
7.1.40.0080.00715.54
7.1.30.0030.01115.45
7.1.20.0030.00715.53
7.1.10.0100.00315.60
7.1.00.0040.02618.06
7.0.330.0070.00615.09
7.0.320.0050.00915.36
7.0.310.0020.01015.38
7.0.300.0020.00815.37
7.0.290.0050.00715.28
7.0.280.0060.00614.98
7.0.270.0060.00515.30
7.0.260.0070.00715.44
7.0.250.0050.00815.25
7.0.240.0050.00915.41
7.0.230.0070.00715.29
7.0.220.0040.00815.42
7.0.210.0090.00615.34
7.0.200.0050.01215.68
7.0.190.0060.00815.44
7.0.180.0020.01015.21
7.0.170.0030.01015.13
7.0.160.0060.00915.34
7.0.150.0070.00915.38
7.0.140.0080.02217.52
7.0.130.0090.02017.41
7.0.120.0090.02217.64
7.0.110.0070.02317.47
7.0.100.0070.02317.56
7.0.90.0040.02517.68
7.0.80.0080.02117.60
7.0.70.0040.03117.51
7.0.60.0040.02717.62
7.0.50.0070.02417.63
7.0.40.0080.02116.38
7.0.30.0060.02316.15
7.0.20.0070.02316.31
7.0.10.0030.02516.27
7.0.00.0060.02316.27
5.6.400.0090.00514.08
5.6.390.0110.00714.15
5.6.380.0050.00814.34
5.6.370.0020.01114.21
5.6.360.0040.00814.26
5.6.350.0090.00514.06
5.6.340.0040.01214.13
5.6.330.0020.01314.17
5.6.320.0110.00514.20
5.6.310.0040.00614.11
5.6.300.0110.00514.27
5.6.290.0050.02516.48
5.6.280.0090.02316.54
5.6.270.0040.02716.53
5.6.260.0080.02116.56
5.6.250.0040.02516.43
5.6.240.0080.02316.45
5.6.230.0050.02516.35
5.6.220.0070.03016.41
5.6.210.0060.02916.42
5.6.200.0120.02516.31
5.6.190.0080.02316.29
5.6.180.0080.02416.26
5.6.170.0070.02416.54
5.6.160.0060.02516.44
5.6.150.0050.02516.32
5.6.140.0060.02316.49
5.6.130.0070.02016.34
5.6.120.0090.02216.53
5.6.110.0080.02416.35
5.6.100.0040.03216.41
5.6.90.0060.02516.54
5.6.80.0090.02516.15
5.6.70.0080.02616.26
5.6.60.0060.02616.08
5.6.50.0070.02316.01
5.6.40.0050.02616.15
5.6.30.0030.02716.15
5.6.20.0070.02516.04
5.6.10.0080.02316.08
5.6.00.0070.02516.15

preferences:
61.85 ms | 401 KiB | 5 Q