3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = <<< EOF <?xml version="1.0" encoding="ISO-8859-1" ?> <datainfo> <origin>NOAA/NOS/CO-OPS</origin> <disclaimer>Disclaimer: These data are based upon the latest information available as of the date of your request, and may differ from the published tide tables. </disclaimer> <producttype> Annual Tide Prediction </producttype> <stationname>Nonopapa, Niihau Island</stationname> <state>HI</state> <stationid>1610367</stationid> <stationtype>Subordinate</stationtype> <referencedToStationName>HONOLULU</referencedToStationName> <referencedToStationId>1612340</referencedToStationId> <HeightOffsetLow>*0.77</HeightOffsetLow> <HeightOffsetHigh>* 0.77</HeightOffsetHigh> <TimeOffsetLow>-11</TimeOffsetLow> <TimeOffsetHigh>-16</TimeOffsetHigh> <BeginDate>20131231 00:00</BeginDate> <EndDate>20141231 23:59</EndDate> <dataUnits>feet(ft) also in centimeters(cm)</dataUnits> <Timezone>LST</Timezone> <Datum>MLLW</Datum> <IntervalType>High/Low Tide Predictions</IntervalType> <data> <item> <date>2013/12/31</date> <day>Tue</day> <time>03:11 AM</time> <predictions_in_ft>2.0</predictions_in_ft> <predictions_in_cm>61</predictions_in_cm> <highlow>H</highlow> </item> <item> <date>2013/12/31</date> <day>Tue</day> <time>10:21 AM</time> <predictions_in_ft>0.1</predictions_in_ft> <predictions_in_cm>3</predictions_in_cm> <highlow>L</highlow> </item> </data></datainfo> EOF; $b = simplexml_load_string($a); $json = json_encode($b ); $array = json_decode($json,true); // unset undesirables foreach($array as $k -> $v){echo $k;}

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.0140.00018.80
8.3.50.0150.00722.07
8.3.40.0110.00418.96
8.3.30.0090.00619.20
8.3.20.0080.00020.59
8.3.10.0080.00020.77
8.3.00.0080.00019.50
8.2.180.0150.00316.63
8.2.170.0060.00922.96
8.2.160.0150.00020.75
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00822.54
8.2.110.0090.00020.68
8.2.100.0040.00818.16
8.2.90.0050.00320.26
8.2.80.0000.00822.59
8.2.70.0000.00817.75
8.2.60.0030.00617.63
8.2.50.0050.00318.18
8.2.40.0030.00519.50
8.2.30.0040.00818.36
8.2.20.0040.00417.98
8.2.10.0000.00818.44
8.2.00.0000.00717.97
8.1.280.0100.00325.92
8.1.270.0050.00322.52
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00320.80
8.1.230.0040.00721.16
8.1.220.0060.00318.02
8.1.210.0030.00519.29
8.1.200.0050.00317.60
8.1.190.0060.00317.50
8.1.180.0040.00418.10
8.1.170.0090.00017.65
8.1.160.0000.00722.22
8.1.150.0000.00719.05
8.1.140.0040.00417.79
8.1.130.0030.00318.10
8.1.120.0000.00717.61
8.1.110.0030.00517.71
8.1.100.0040.00417.63
8.1.90.0000.00717.64
8.1.80.0070.00017.64
8.1.70.0070.00017.64
8.1.60.0030.00617.86
8.1.50.0040.00417.67
8.1.40.0000.00817.77
8.1.30.0040.00417.95
8.1.20.0000.00817.84
8.1.10.0080.00017.73
8.1.00.0040.00417.73
8.0.300.0000.00820.12
8.0.290.0070.00017.43
8.0.280.0000.00718.74
8.0.270.0040.00417.41
8.0.260.0000.00717.53
8.0.250.0000.00717.23
8.0.240.0030.00317.29
8.0.230.0000.00717.12
8.0.220.0040.00417.06
8.0.210.0000.00717.17
8.0.200.0060.00017.16
8.0.190.0100.00017.14
8.0.180.0000.00717.17
8.0.170.0000.00817.19
8.0.160.0000.00717.06
8.0.150.0040.00417.11
8.0.140.0000.00817.13
8.0.130.0060.00013.64
8.0.120.0040.00417.26
8.0.110.0000.00817.17
8.0.100.0000.00717.01
8.0.90.0030.00517.11
8.0.80.0070.00717.11
8.0.70.0040.00417.28
8.0.60.0070.00017.27
8.0.50.0040.00417.06
8.0.30.0160.00517.20
8.0.20.0110.00917.60
8.0.10.0000.00817.12
8.0.00.0100.00717.08
7.4.330.0050.00015.30
7.4.320.0030.00316.73
7.4.300.0000.00616.78
7.4.290.0000.00716.87
7.4.280.0040.00416.82
7.4.270.0070.00016.78
7.4.260.0030.00616.69
7.4.250.0060.00316.86
7.4.240.0020.00516.80
7.4.230.0000.00716.95
7.4.220.0090.01016.69
7.4.210.0070.00716.63
7.4.200.0000.00716.71
7.4.160.0130.00316.63
7.4.150.0060.01217.40
7.4.140.0120.00917.86
7.4.130.0130.00316.84
7.4.120.0070.01016.79
7.4.110.0100.00716.70
7.4.100.0120.00916.54
7.4.90.0090.00916.82
7.4.80.0090.00919.37
7.4.70.0090.00816.92
7.4.60.0060.01016.73
7.4.50.0060.00016.74
7.4.40.0060.01416.69
7.4.30.0150.01116.87
7.4.00.0060.00915.18
7.3.330.0000.00513.46
7.3.320.0060.00013.47
7.3.310.0040.00416.58
7.3.300.0000.00716.34
7.3.290.0070.00716.53
7.3.280.0090.00816.55
7.3.270.0060.01117.40
7.3.260.0070.01016.50
7.3.250.0130.00816.63
7.3.240.0070.01016.52
7.3.230.0060.01516.71
7.3.210.0060.01016.46
7.3.200.0100.00719.39
7.3.190.0100.01316.70
7.3.180.0060.00916.57
7.3.170.0040.01416.63
7.3.160.0120.00816.85
7.3.120.0140.00315.02
7.3.110.0070.00715.21
7.3.100.0070.00715.16
7.3.90.0030.01215.24
7.3.80.0100.00714.92
7.3.70.0030.00614.93
7.3.60.0030.01014.96
7.3.50.0000.01415.15
7.3.40.0030.01014.99
7.3.30.0060.00914.75
7.3.20.0040.01116.86
7.3.10.0050.00916.81
7.3.00.0050.00616.82
7.2.330.0130.00316.66
7.2.320.0060.01016.84
7.2.310.0070.01016.78
7.2.300.0000.01816.83
7.2.290.0030.01316.94
7.2.240.0030.01415.18
7.2.230.0130.00315.40
7.2.220.0090.00614.97
7.2.210.0060.00815.00
7.2.200.0110.00315.42
7.2.190.0030.01015.14
7.2.180.0040.01215.00
7.2.170.0040.01414.77
7.2.160.0000.01614.91
7.2.150.0080.00816.85
7.2.140.0090.00617.23
7.2.130.0050.01217.12
7.2.120.0060.00817.05
7.2.110.0100.00316.91
7.2.100.0090.00517.05
7.2.90.0000.01117.02
7.2.80.0060.00817.09
7.2.70.0090.00317.23
7.2.60.0030.00917.14
7.2.50.0070.00717.10
7.2.40.0080.00716.90
7.2.30.0020.00817.01
7.2.20.0100.00516.93
7.2.10.0080.00717.12
7.2.00.0040.00517.87
7.1.330.0070.01015.80
7.1.320.0090.00616.08
7.1.310.0040.00415.78
7.1.300.0030.00616.04
7.1.290.0080.00016.11
7.1.280.0000.00916.08
7.1.270.0050.00316.02
7.1.260.0080.00616.14
7.1.250.0070.00715.64
7.1.200.0000.01415.76
7.1.100.0030.00718.19
7.1.70.0000.00717.01
7.1.60.0140.01119.32
7.1.50.0090.00917.03
7.1.00.0000.08022.48
7.0.200.0030.00616.75
7.0.140.0000.07722.18
7.0.90.0730.07019.96
7.0.80.0600.07020.06
7.0.70.0800.03020.00
7.0.60.0630.08719.95
7.0.50.0570.06020.45
7.0.40.0000.05020.16
7.0.30.0100.04320.09
7.0.20.0030.08720.05
7.0.10.0100.07020.25
7.0.00.0030.06320.27
5.6.240.0230.06020.72
5.6.230.0100.04320.70
5.6.220.0070.04320.82
5.6.210.0100.07320.70
5.6.200.0100.08321.19
5.6.190.0070.08321.13
5.6.180.0000.04721.19
5.6.170.0030.04721.02
5.6.160.0130.08021.09
5.6.150.0100.05021.10
5.6.140.0000.08721.13
5.6.130.0100.04721.18
5.6.120.0100.07321.01
5.6.110.0070.08321.16
5.6.100.0270.07021.13
5.6.90.0100.08021.14
5.6.80.0030.07020.54
5.6.70.0070.08320.43
5.6.60.0200.06720.50
5.6.50.0070.08020.44
5.6.40.0130.07320.63
5.6.30.0070.07320.68
5.6.20.0030.04720.37
5.6.10.0100.07720.48
5.6.00.0100.04020.61
5.5.380.0100.04020.48
5.5.370.0130.07020.50
5.5.360.0070.06720.63
5.5.350.0030.08320.53
5.5.340.0030.08020.98
5.5.330.0100.06720.86
5.5.320.0030.06021.04
5.5.310.0070.08320.84
5.5.300.0030.05721.03
5.5.290.0170.07021.09
5.5.280.0100.07720.85
5.5.270.0100.08020.84
5.5.260.0130.06321.07
5.5.250.0030.08720.82
5.5.240.0100.07720.38
5.5.230.0100.05020.45
5.5.220.0100.05320.41
5.5.210.0000.08020.30
5.5.200.0070.04720.39
5.5.190.0030.08320.14
5.5.180.0070.04720.41
5.5.160.0000.04320.32
5.5.150.0100.07720.33
5.5.140.0130.07320.13
5.5.130.0100.08020.43
5.5.120.0030.05320.41
5.5.110.0070.06720.32
5.5.100.0070.05320.10
5.5.90.0030.06320.27
5.5.80.0100.07320.09
5.5.70.0070.04320.15
5.5.60.0030.04720.28
5.5.50.0000.06020.27
5.5.40.0100.05020.16
5.5.30.0170.07020.05
5.5.20.0100.07720.24
5.5.10.0030.08720.25
5.5.00.0000.08720.23
5.4.450.0030.08719.29
5.4.440.0130.07319.54
5.4.430.0100.05319.52
5.4.420.0100.07319.44
5.4.410.0000.05019.25
5.4.400.0000.07318.90
5.4.390.0130.05319.21
5.4.380.0070.07718.91
5.4.370.0030.07719.13
5.4.360.0070.06719.22
5.4.350.0070.08019.18
5.4.340.0070.07319.18
5.4.320.0100.07719.18
5.4.310.0170.06319.05
5.4.300.0030.08319.18
5.4.290.0070.04019.20
5.4.280.0130.07019.20
5.4.270.0070.07718.89
5.4.260.0070.07319.19
5.4.250.0070.04019.22
5.4.240.0000.08719.20
5.4.230.0070.08019.20
5.4.220.0070.07719.02
5.4.210.0130.07719.18
5.4.200.0100.07319.37
5.4.190.0000.07719.05
5.4.180.0070.07719.17
5.4.170.0070.06719.20
5.4.160.0100.06719.17
5.4.150.0070.08019.11
5.4.140.0070.06716.38
5.4.130.0130.06016.46
5.4.120.0030.07716.46
5.4.110.0030.07016.48
5.4.100.0030.03716.49
5.4.90.0100.06716.57
5.4.80.0070.07016.52
5.4.70.0070.07716.41
5.4.60.0000.07716.43
5.4.50.0100.07316.46
5.4.40.0100.07316.60
5.4.30.0070.07316.42
5.4.20.0170.06316.35
5.4.10.0070.07716.52
5.4.00.0130.06015.89
5.3.290.0030.06714.77
5.3.280.0000.08314.75
5.3.270.0170.06014.74
5.3.260.0100.07714.69
5.3.250.0070.07014.57
5.3.240.0070.04014.70
5.3.230.0100.07314.70
5.3.220.0070.04714.50
5.3.210.0070.06314.68
5.3.200.0070.03714.67
5.3.190.0070.05314.67
5.3.180.0170.06014.68
5.3.170.0100.07314.62
5.3.160.0070.06014.75
5.3.150.0030.08314.67
5.3.140.0130.06314.71
5.3.130.0100.07314.51
5.3.120.0100.07714.63
5.3.110.0130.07014.67
5.3.100.0070.07713.98
5.3.90.0170.04313.98
5.3.80.0130.06714.18
5.3.70.0170.06714.17
5.3.60.0100.07014.11
5.3.50.0070.07013.92
5.3.40.0070.07713.92
5.3.30.0030.04713.79
5.3.20.0130.06313.81
5.3.10.0100.03713.76
5.3.00.0030.07013.72
5.2.170.0030.04311.22
5.2.160.0070.06011.16
5.2.150.0170.05311.16
5.2.140.0030.05011.16
5.2.130.0000.04011.23
5.2.120.0070.04711.22
5.2.110.0030.05011.17
5.2.100.0070.05711.12
5.2.90.0070.06311.28
5.2.80.0070.06011.18
5.2.70.0070.04011.05
5.2.60.0100.05711.14
5.2.50.0070.06011.19
5.2.40.0130.05011.03
5.2.30.0000.06310.99
5.2.20.0030.05711.14
5.2.10.0100.04711.08
5.2.00.0070.05310.97
5.1.60.0100.04310.20
5.1.50.0100.04710.16
5.1.40.0130.04710.17
5.1.30.0170.04310.58
5.1.20.0030.05710.60
5.1.10.0070.05010.22
5.1.00.0130.04710.28
5.0.50.0030.0478.73
5.0.40.0070.0278.66
5.0.30.0030.0338.34
5.0.20.0030.0408.43
5.0.10.0200.0308.36
5.0.00.0100.0538.34
4.4.90.0070.0138.34
4.4.80.0030.0238.34
4.4.70.0070.0278.34
4.4.60.0000.0378.34
4.4.50.0000.0338.34
4.4.40.0000.0408.34
4.4.30.0100.0308.34
4.4.20.0100.0278.34
4.4.10.0000.0378.34
4.4.00.0000.0408.34
4.3.110.0030.0378.34
4.3.100.0030.0178.34
4.3.90.0030.0338.34
4.3.80.0030.0538.34
4.3.70.0030.0338.34
4.3.60.0070.0338.34
4.3.50.0070.0308.34
4.3.40.0100.0438.34
4.3.30.0030.0338.34
4.3.20.0000.0308.34
4.3.10.0030.0278.34
4.3.00.0000.0378.34

preferences:
48.82 ms | 401 KiB | 5 Q