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.40.0110.00418.81
8.3.30.0070.00719.26
8.3.20.0050.00320.59
8.3.10.0040.00420.61
8.3.00.0030.00619.50
8.2.170.0080.00822.96
8.2.160.0070.00720.81
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00422.43
8.2.110.0030.00622.46
8.2.100.0040.00718.16
8.2.90.0040.00419.42
8.2.80.0060.00317.97
8.2.70.0040.00417.75
8.2.60.0060.00318.18
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0030.00918.35
8.2.20.0040.00417.95
8.2.10.0070.00018.29
8.2.00.0040.00417.92
8.1.270.0000.00822.44
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.93
8.1.230.0030.00819.34
8.1.220.0000.00817.93
8.1.210.0030.00618.77
8.1.200.0040.00417.48
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0000.00918.88
8.1.160.0040.00422.35
8.1.150.0020.00519.10
8.1.140.0050.00217.61
8.1.130.0000.00718.18
8.1.120.0050.00317.73
8.1.110.0030.00517.69
8.1.100.0000.00717.76
8.1.90.0000.00817.62
8.1.80.0040.00417.67
8.1.70.0000.00717.61
8.1.60.0040.00417.82
8.1.50.0040.00417.71
8.1.40.0000.00717.85
8.1.30.0080.00017.79
8.1.20.0000.00817.93
8.1.10.0040.00417.75
8.1.00.0040.00417.70
8.0.300.0050.00218.77
8.0.290.0000.00717.13
8.0.280.0000.00718.59
8.0.270.0030.00317.36
8.0.260.0030.00317.51
8.0.250.0000.00717.29
8.0.240.0000.00717.32
8.0.230.0040.00417.28
8.0.220.0030.00317.10
8.0.210.0050.00317.10
8.0.200.0030.00317.18
8.0.190.0080.00417.28
8.0.180.0000.00717.25
8.0.170.0030.00517.18
8.0.160.0000.00817.18
8.0.150.0030.00617.05
8.0.140.0000.00717.14
8.0.130.0030.00313.68
8.0.120.0000.00817.08
8.0.110.0050.00217.22
8.0.100.0060.00317.32
8.0.90.0000.00817.23
8.0.80.0090.00917.14
8.0.70.0080.00017.07
8.0.60.0040.00417.08
8.0.50.0040.00417.04
8.0.30.0130.00917.41
8.0.20.0110.01317.40
8.0.10.0000.00717.20
8.0.00.0080.01017.08
7.4.330.0030.00215.32
7.4.320.0030.00316.84
7.4.300.0000.00616.62
7.4.290.0030.00316.90
7.4.280.0060.00316.80
7.4.270.0030.00316.70
7.4.260.0060.00316.74
7.4.250.0040.00416.65
7.4.240.0060.00116.82
7.4.230.0000.00816.86
7.4.220.0090.01016.93
7.4.210.0030.01216.76
7.4.200.0050.00216.57
7.4.160.0090.00616.93
7.4.150.0070.01117.40
7.4.140.0080.01617.86
7.4.130.0050.01216.69
7.4.120.0070.01016.84
7.4.110.0100.00616.89
7.4.100.0090.01316.78
7.4.90.0060.01316.82
7.4.80.0180.00019.37
7.4.70.0090.00916.61
7.4.60.0110.00616.74
7.4.50.0060.00016.43
7.4.40.0060.01116.77
7.4.30.0080.01216.80
7.4.00.0080.00815.00
7.3.330.0050.00013.38
7.3.320.0030.00313.37
7.3.310.0020.00516.47
7.3.300.0070.00016.56
7.3.290.0120.00616.55
7.3.280.0090.00716.56
7.3.270.0070.01117.40
7.3.260.0110.00616.62
7.3.250.0120.00916.66
7.3.240.0100.00616.64
7.3.230.0090.01016.58
7.3.210.0070.01116.59
7.3.200.0060.01119.39
7.3.190.0080.01116.52
7.3.180.0110.00516.57
7.3.170.0120.01216.68
7.3.160.0070.01016.52
7.3.10.0210.00316.54
7.3.00.0220.00416.62
7.2.330.0120.00416.70
7.2.320.0120.00416.94
7.2.310.0140.00316.86
7.2.300.0090.00916.92
7.2.290.0140.00316.71
7.2.130.0180.00316.66
7.2.120.0130.00716.52
7.2.110.0100.00616.60
7.2.100.0090.00916.52
7.2.90.0320.00716.83
7.2.80.0210.00016.54
7.2.70.0070.01016.74
7.2.60.0280.01416.48
7.2.50.0270.01316.57
7.2.40.0210.01016.42
7.2.30.0080.01116.89
7.2.20.0220.00916.63
7.2.10.0280.00716.95
7.2.00.0220.00418.28
7.1.250.0110.00715.07
7.1.100.0040.00718.33
7.1.70.0040.00417.40
7.1.60.0090.01519.32
7.1.50.0090.01217.13
7.1.00.0070.07322.59
7.0.200.0080.00016.59
7.0.140.0000.07322.21
7.0.90.0100.07319.96
7.0.80.0170.04319.98
7.0.70.0530.07719.96
7.0.60.0130.04319.89
7.0.50.0670.08320.32
7.0.40.0230.04320.25
7.0.30.0000.05020.25
7.0.20.0100.07720.07
7.0.10.0230.06720.07
7.0.00.0030.07720.13
5.6.280.0070.06721.06
5.6.230.0100.06020.55
5.6.220.0030.08720.64
5.6.210.0070.08020.59
5.6.200.0100.08021.13
5.6.190.0170.07321.09
5.6.180.0130.06021.16
5.6.170.0170.04721.31
5.6.160.0100.07321.29
5.6.150.0070.06021.17
5.6.140.0100.03021.21
5.6.130.0070.07321.10
5.6.120.0000.05321.29
5.6.110.0070.05721.10
5.6.100.0070.06021.09
5.6.90.0030.05021.13
5.6.80.0100.05320.52
5.6.70.0030.06020.57
5.6.60.0030.05320.57
5.6.50.0170.07320.70
5.6.40.0000.06320.46
5.6.30.0070.07720.57
5.6.20.0070.07720.47
5.6.10.0100.04020.64
5.6.00.0070.07720.44
5.5.370.0100.08020.59
5.5.360.0030.04320.44
5.5.350.0100.04320.45
5.5.340.0070.07720.88
5.5.330.0100.07720.81
5.5.320.0130.07320.89
5.5.310.0070.06021.05
5.5.300.0030.07721.01
5.5.290.0130.06720.78
5.5.280.0130.06720.88
5.5.270.0030.05020.78
5.5.260.0070.07321.02
5.5.250.0030.08320.69
5.5.240.0070.07720.41
5.5.230.0070.05720.35
5.5.220.0100.04320.31
5.5.210.0130.08020.35
5.5.200.0130.07320.32
5.5.190.0130.06020.27
5.5.180.0030.07720.26
5.5.160.0130.07320.41
5.5.150.0070.03720.43
5.5.140.0100.05020.39
5.5.130.0100.04320.40
5.5.120.0070.05320.31
5.5.110.0170.05320.40
5.5.100.0070.08020.27
5.5.90.0170.03320.30
5.5.80.0070.06020.24
5.5.70.0130.06720.11
5.5.60.0130.06720.24
5.5.50.0100.04720.14
5.5.40.0100.07720.04
5.5.30.0000.08020.04
5.5.20.0100.07320.23
5.5.10.0070.05720.26
5.5.00.0070.05020.11
5.4.450.0070.06719.21
5.4.440.0100.04719.36
5.4.430.0030.04019.55
5.4.420.0130.04719.70
5.4.410.0030.04719.25
5.4.400.0130.07319.41
5.4.390.0130.07018.87
5.4.380.0000.07719.23
5.4.370.0130.04019.23
5.4.360.0200.06319.05
5.4.350.0200.07319.38
5.4.340.0070.07318.90
5.4.320.0130.07319.23
5.4.310.0100.06019.19
5.4.300.0070.04719.24
5.4.290.0130.06019.17
5.4.280.0030.05018.90
5.4.270.0070.05319.18
5.4.260.0070.04319.18
5.4.250.0100.10019.13
5.4.240.0130.07319.20
5.4.230.0100.04719.18
5.4.220.0030.07019.15
5.4.210.0070.06719.16
5.4.200.0130.07019.19
5.4.190.0130.06319.21
5.4.180.0000.07719.18
5.4.170.0100.06319.16
5.4.160.0130.07319.17
5.4.150.0130.06318.88
5.4.140.0100.07016.37
5.4.130.0070.07316.46
5.4.120.0170.06016.21
5.4.110.0070.04316.45
5.4.100.0070.04016.37
5.4.90.0070.07316.55
5.4.80.0030.04316.39
5.4.70.0130.06316.58
5.4.60.0130.06316.50
5.4.50.0000.07716.33
5.4.40.0100.07316.33
5.4.30.0030.07716.54
5.4.20.0000.08016.35
5.4.10.0100.06316.61
5.4.00.0100.03715.95
5.3.290.0100.04314.77
5.3.280.0070.04714.70
5.3.270.0100.07314.78
5.3.260.0070.05714.55
5.3.250.0070.07314.79
5.3.240.0070.07014.79
5.3.230.0000.08014.67
5.3.220.0000.07314.68
5.3.210.0100.07014.49
5.3.200.0030.03714.65
5.3.190.0100.06014.68
5.3.180.0070.04014.67
5.3.170.0030.06714.71
5.3.160.0130.03714.74
5.3.150.0100.04314.66
5.3.140.0100.04714.73
5.3.130.0070.07314.71
5.3.120.0200.04714.52
5.3.110.0100.08314.62
5.3.100.0070.07314.15
5.3.90.0030.06014.10
5.3.80.0130.08014.16
5.3.70.0000.06014.18
5.3.60.0130.06714.08
5.3.50.0070.07714.12
5.3.40.0100.07314.11
5.3.30.0030.04013.89
5.3.20.0070.07313.80
5.3.10.0270.05313.69
5.3.00.0000.07713.79
5.2.170.0030.04011.22
5.2.160.0030.06011.27
5.2.150.0100.04011.24
5.2.140.0070.06311.22
5.2.130.0100.05011.19
5.2.120.0100.05311.30
5.2.110.0030.05011.32
5.2.100.0030.05011.27
5.2.90.0030.06711.17
5.2.80.0030.05311.30
5.2.70.0030.06311.19
5.2.60.0130.04311.27
5.2.50.0100.05711.12
5.2.40.0000.03711.21
5.2.30.0070.05310.90
5.2.20.0130.03011.09
5.2.10.0030.06011.00
5.2.00.0000.04010.97
5.1.60.0000.05710.25
5.1.50.0000.03010.14
5.1.40.0070.04310.23
5.1.30.0030.04710.58
5.1.20.0000.03010.42
5.1.10.0030.02710.29
5.1.00.0070.02710.26
5.0.50.0030.0308.80
5.0.40.0000.0238.62
5.0.30.0030.0278.41
5.0.20.0000.0208.41
5.0.10.0000.0208.41
5.0.00.0000.0308.41
4.4.90.0000.0378.41
4.4.80.0030.0308.41
4.4.70.0000.0208.41
4.4.60.0030.0178.41
4.4.50.0070.0108.41
4.4.40.0030.0278.41
4.4.30.0000.0378.41
4.4.20.0000.0208.41
4.4.10.0030.0178.41
4.4.00.0030.0238.41
4.3.110.0030.0178.41
4.3.100.0000.0178.41
4.3.90.0000.0178.41
4.3.80.0000.0278.41
4.3.70.0030.0138.41
4.3.60.0000.0178.41
4.3.50.0030.0238.41
4.3.40.0070.0178.41
4.3.30.0000.0178.41
4.3.20.0030.0138.41
4.3.10.0000.0138.41
4.3.00.0000.0178.41

preferences:
39.71 ms | 400 KiB | 5 Q