3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exit = "<s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body ><GetReadingsResponse xmlns='http://tempuri.org/'><GetReadingsResult xmlns:a='ht tp://schemas.datacontract.org/2004/07/SACObjects.Common.ObjectModel' xmlns:i='ht tp://www.w3.org/2001/XMLSchema-instance'><a:Lettura><a:CODUTE>456</a:CODUTE><a:D 1F1>12343</a:D1F1><a:D1F2>-1.7976931348623157E+308</a:D1F2><a:D1F3>-1.7976931348 623157E+308</a:D1F3><a:DMAX i:nil='true'/><a:DMIN i:nil='true'/><a:DNAH i:nil='t rue'/><a:DNAL i:nil='true'/><a:DTCL>2015-11-25T00:00:00</a:DTCL><a:DTE>2015-11-2 5T06:00:00</a:DTE><a:DTFH i:nil='true'/><a:DTFL i:nil='true'/><a:DVAR i:nil='tru e'/><a:FST>Ok</a:FST><a:IDL>0</a:IDL><a:LEG>OraLegale</a:LEG><a:NFA>0</a:NFA><a: SENT>N</a:SENT><a:TLE>Giornaliera</a:TLE><a:TYPL>Tot_Vb_g</a:TYPL></a:Lettura></ GetReadingsResult></GetReadingsResponse></s:Body></s:Envelope>"; str_replace ("<a:", '<', $exit); str_replace ("</a:", "</", $exit); $find1 = "Lettura>"; $find2 = "/Lettura>"; $pos = strpos($exit,$find1); echo $pos,"\n"; $sub= substr($exit,intval($find1),strlen($exit)-($find1-1)-($find2)); echo $sub; ?>

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.0090.01218.43
8.3.60.0090.01318.32
8.3.50.0140.00521.16
8.3.40.0070.00718.83
8.3.30.0110.00418.54
8.3.20.0070.00020.21
8.3.10.0040.00423.52
8.3.00.0000.00821.90
8.2.190.0090.00616.58
8.2.180.0040.01116.38
8.2.170.0120.00922.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0050.00320.65
8.2.120.0030.00526.35
8.2.110.0050.00519.26
8.2.100.0060.00617.68
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0090.00017.75
8.2.60.0060.00319.66
8.2.50.0050.00318.09
8.2.40.0060.00322.27
8.2.30.0030.00519.35
8.2.20.0070.00017.77
8.2.10.0050.00318.05
8.2.00.0040.00418.12
8.1.280.0060.00925.92
8.1.270.0130.00622.24
8.1.260.0040.00428.09
8.1.250.0110.00728.09
8.1.240.0060.00322.61
8.1.230.0070.00317.83
8.1.220.0060.00317.77
8.1.210.0000.00818.77
8.1.200.0070.00417.13
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00720.57
8.1.150.0050.00318.81
8.1.140.0000.00819.51
8.1.130.0000.00817.63
8.1.120.0040.00317.34
8.1.110.0050.00317.44
8.1.100.0040.00417.36
8.1.90.0000.00717.32
8.1.80.0080.00017.41
8.1.70.0040.00417.48
8.1.60.0040.00417.48
8.1.50.0040.00417.41
8.1.40.0040.00417.40
8.1.30.0000.00817.55
8.1.20.0040.00417.53
8.1.10.0000.00717.56
8.1.00.0000.00917.55
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0030.00318.31
8.0.270.0070.00017.36
8.0.260.0000.00717.30
8.0.250.0030.00317.05
8.0.240.0070.00017.00
8.0.230.0000.00716.91
8.0.220.0040.00416.88
8.0.210.0000.00716.91
8.0.200.0030.00316.96
8.0.190.0030.00616.92
8.0.180.0000.00916.82
8.0.170.0040.00416.95
8.0.160.0000.00816.85
8.0.150.0070.00016.82
8.0.140.0000.00716.76
8.0.130.0030.00313.34
8.0.120.0030.00516.83
8.0.110.0000.00716.73
8.0.100.0040.00416.79
8.0.90.0030.00516.93
8.0.80.0060.00916.86
8.0.70.0050.00316.92
8.0.60.0040.00416.85
8.0.50.0000.00816.79
8.0.30.0110.00817.12
8.0.20.0100.00917.40
8.0.10.0050.00216.91
8.0.00.0130.00716.81
7.4.330.0050.00016.86
7.4.320.0000.00716.45
7.4.300.0000.00716.67
7.4.290.0040.00716.57
7.4.280.0050.00316.58
7.4.270.0030.00316.52
7.4.260.0030.00316.38
7.4.250.0000.00816.38
7.4.240.0030.00316.64
7.4.230.0040.00416.53
7.4.220.0120.00616.43
7.4.210.0070.01216.68
7.4.200.0040.00416.33
7.4.160.0070.01016.34
7.4.150.0070.01017.40
7.4.140.0080.01417.86
7.4.130.0120.00916.48
7.4.120.0100.00916.58
7.4.110.0080.00816.70
7.4.100.0160.00616.67
7.4.90.0050.01416.65
7.4.80.0100.00719.39
7.4.70.0130.00316.66
7.4.60.0090.00916.34
7.4.50.0090.00916.47
7.4.40.0140.00416.70
7.4.30.0130.00516.57
7.4.00.0070.01014.95
7.3.330.0000.00513.30
7.3.320.0000.00513.26
7.3.310.0030.00316.22
7.3.300.0000.00716.32
7.3.290.0040.00416.36
7.3.280.0110.00516.39
7.3.270.0030.01417.40
7.3.260.0130.00316.36
7.3.250.0120.00616.44
7.3.240.0110.01016.34
7.3.230.0080.00816.55
7.3.210.0130.00316.51
7.3.200.0120.00916.43
7.3.190.0040.01216.39
7.3.180.0120.00616.44
7.3.170.0120.01316.34
7.3.160.0190.00016.42
7.2.330.0070.01116.71
7.2.320.0150.00316.72
7.2.310.0120.00916.61
7.2.300.0030.01416.60
7.2.290.0170.00716.50
7.2.60.0000.01716.77
7.2.00.0030.01319.32
7.1.200.0070.00715.70
7.1.100.0040.00718.14
7.1.70.0100.00317.09
7.1.60.0220.00419.40
7.1.50.0040.01816.70
7.1.00.0000.08022.45
7.0.200.0470.00914.39
7.0.60.0300.07719.92
7.0.50.0100.07717.80
7.0.40.0170.05720.08
7.0.30.0130.05020.17
7.0.20.0330.06320.00
7.0.10.0070.09020.20
7.0.00.0100.08020.13
5.6.280.0000.04021.04
5.6.210.0100.07720.71
5.6.200.0100.07718.13
5.6.190.0070.09020.32
5.6.180.0230.07020.45
5.6.170.0400.06320.41
5.6.160.0070.07020.44
5.6.150.0000.04718.21
5.6.140.0030.06318.10
5.6.130.0070.08318.11
5.6.120.0000.04721.11
5.6.110.0030.07320.95
5.6.100.0000.04320.97
5.6.90.0030.06721.12
5.6.80.0070.07720.39
5.5.350.0170.05720.37
5.5.340.0000.09017.94
5.5.330.0030.08320.42
5.5.320.0600.06020.24
5.5.310.0370.06720.50
5.5.300.0070.08718.02
5.5.290.0070.08717.89
5.5.280.0100.07320.87
5.5.270.0070.08020.79
5.5.260.0130.04320.86
5.5.250.0130.05320.50
5.5.240.0200.05020.16

preferences:
48.88 ms | 401 KiB | 5 Q