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){ if(!in_array($k, $needToKeep)) unset($array[$k]); }; var_export($array);

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.0120.00318.68
8.3.50.0140.00822.24
8.3.40.0120.00919.01
8.3.30.0070.00719.16
8.3.20.0050.00320.44
8.3.10.0000.00820.82
8.3.00.0080.00019.63
8.2.180.0070.01319.04
8.2.170.0140.00422.96
8.2.160.0030.01020.78
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00322.66
8.2.110.0100.00019.44
8.2.100.0090.00318.06
8.2.90.0060.00319.48
8.2.80.0030.00517.97
8.2.70.0040.00717.86
8.2.60.0000.00918.05
8.2.50.0030.00518.07
8.2.40.0000.00918.41
8.2.30.0080.00518.39
8.2.20.0040.00417.91
8.2.10.0070.00018.42
8.2.00.0070.00018.01
8.1.280.0110.00425.92
8.1.270.0050.00322.36
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.44
8.1.230.0080.00319.12
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0060.00317.72
8.1.190.0040.00417.60
8.1.180.0060.00318.10
8.1.170.0000.00918.90
8.1.160.0000.00722.32
8.1.150.0050.00219.06
8.1.140.0040.00417.81
8.1.130.0000.00718.09
8.1.120.0070.00017.76
8.1.110.0030.00517.75
8.1.100.0040.00417.64
8.1.90.0000.00717.57
8.1.80.0030.00517.68
8.1.70.0070.00017.59
8.1.60.0040.00417.80
8.1.50.0080.00017.70
8.1.40.0040.00417.71
8.1.30.0040.00417.79
8.1.20.0040.00417.80
8.1.10.0000.00817.75
8.1.00.0050.00317.67
8.0.300.0000.00918.77
8.0.290.0040.00417.13
8.0.280.0040.00418.74
8.0.270.0000.00717.51
8.0.260.0030.00317.44
8.0.250.0030.00317.33
8.0.240.0030.00317.15
8.0.230.0000.00817.25
8.0.220.0040.00317.14
8.0.210.0000.00717.22
8.0.200.0030.00317.19
8.0.190.0060.00317.32
8.0.180.0000.00717.09
8.0.170.0000.00817.20
8.0.160.0000.00717.28
8.0.150.0000.00716.95
8.0.140.0050.00217.20
8.0.130.0000.00613.61
8.0.120.0050.00317.24
8.0.110.0000.00717.20
8.0.100.0040.00417.21
8.0.90.0080.00017.21
8.0.80.0100.00617.05
8.0.70.0080.00017.14
8.0.60.0040.00417.23
8.0.50.0030.00517.08
8.0.30.0100.00817.14
8.0.20.0110.01317.47
8.0.10.0080.00017.39
8.0.00.0050.01216.92
7.4.330.0030.00315.31
7.4.320.0020.00516.68
7.4.300.0060.00016.70
7.4.290.0030.00316.86
7.4.280.0080.00016.82
7.4.270.0000.00716.75
7.4.260.0070.00316.83
7.4.250.0030.00516.67
7.4.240.0030.00316.83
7.4.230.0030.00316.84
7.4.220.0060.01316.71
7.4.210.0060.00916.83
7.4.200.0070.00016.84
7.4.160.0030.01316.88
7.4.150.0100.01017.40
7.4.140.0080.01317.86
7.4.130.0080.01116.79
7.4.120.0080.01216.96
7.4.110.0070.01116.89
7.4.100.0170.00316.89
7.4.90.0140.00616.72
7.4.80.0070.01019.37
7.4.70.0100.01016.86
7.4.60.0140.00316.64
7.4.50.0030.00616.61
7.4.40.0040.01316.74
7.4.30.0070.01116.95
7.4.00.0100.00315.21
7.3.330.0050.00013.32
7.3.320.0030.00313.36
7.3.310.0080.00016.54
7.3.300.0050.00216.55
7.3.290.0130.00016.59
7.3.280.0080.00616.52
7.3.270.0070.01017.40
7.3.260.0100.01616.75
7.3.250.0110.01116.60
7.3.240.0110.00816.84
7.3.230.0110.01116.79
7.3.210.0090.00916.58
7.3.200.0180.00019.39
7.3.190.0060.01616.63
7.3.180.0060.00916.83
7.3.170.0060.01316.53
7.3.160.0190.00316.80
7.3.00.0100.00316.73
7.2.330.0100.00716.93
7.2.320.0100.00716.94
7.2.310.0140.01116.66
7.2.300.0090.00916.95
7.2.290.0160.00716.67
7.2.130.0030.00916.99
7.2.120.0040.01117.17
7.2.110.0090.00617.07
7.2.100.0180.00417.14
7.2.90.0040.00817.03
7.2.80.0040.00816.98
7.2.70.0060.00917.07
7.2.60.0030.01217.10
7.2.50.0070.00717.04
7.2.40.0030.00717.07
7.2.30.0080.00416.95
7.2.20.0000.01516.91
7.2.10.0090.00917.02
7.2.00.0080.00818.33
7.1.250.0060.00615.53
7.1.240.0100.00315.96
7.1.230.0040.00715.91
7.1.220.0140.00015.94
7.1.210.0110.00015.87
7.1.200.0030.00715.68
7.1.190.0030.00715.96
7.1.180.0000.01215.62
7.1.170.0030.00615.55
7.1.160.0030.00516.00
7.1.150.0090.00615.60
7.1.140.0060.00315.90
7.1.130.0030.01015.79
7.1.120.0170.00315.51
7.1.110.0080.00815.86
7.1.100.0050.00817.10
7.1.90.0110.00315.71
7.1.80.0030.01215.77
7.1.70.0030.00616.53
7.1.60.0110.01117.58
7.1.50.0070.01116.12
7.1.40.0060.00915.82
7.1.30.0070.00715.77
7.1.20.0060.00615.96
7.1.10.0120.00015.95
7.1.00.0070.04019.10
7.0.330.0070.00715.48
7.0.320.0000.00815.18
7.0.310.0090.00615.15
7.0.300.0100.00715.36
7.0.290.0060.01015.35
7.0.280.0030.00915.17
7.0.270.0070.00415.44
7.0.260.0040.00715.34
7.0.250.0030.00715.68
7.0.240.0000.00815.56
7.0.230.0030.01015.14
7.0.220.0000.00815.48
7.0.210.0040.01115.36
7.0.200.0060.00216.00
7.0.190.0060.01015.40
7.0.180.0070.00315.49
7.0.170.0070.00315.37
7.0.160.0070.00315.54
7.0.150.0030.01015.38
7.0.140.0030.04018.80
7.0.130.0000.01215.55
7.0.120.0120.00315.53
7.0.110.0130.03217.70
7.0.100.0020.04517.83
7.0.90.0050.04217.76
7.0.80.0120.03517.72
7.0.70.0070.04717.56
7.0.60.0020.04817.86
7.0.50.0070.04418.14
7.0.40.0030.04316.77
7.0.30.0080.04116.94
7.0.20.0050.04816.65
7.0.10.0120.04016.91
7.0.00.0030.05216.71
5.6.380.0030.01214.63
5.6.370.0040.00714.49
5.6.360.0060.00814.58
5.6.350.0030.01314.62
5.6.340.0030.00914.42
5.6.330.0040.00814.53
5.6.320.0100.00314.34
5.6.310.0000.01114.70
5.6.300.0000.01314.54
5.6.290.0030.00714.18
5.6.280.0050.03817.59
5.6.270.0030.00614.55
5.6.260.0090.02017.61
5.6.250.0090.03617.51
5.6.240.0080.04417.39
5.6.230.0050.04517.52
5.6.220.0020.05217.37
5.6.210.0050.04617.69
5.6.200.0120.04217.82
5.6.190.0090.04417.72
5.6.180.0050.04817.74
5.6.170.0060.04517.73
5.6.160.0020.04717.66
5.6.150.0070.04417.82
5.6.140.0070.04417.78
5.6.130.0050.04317.67
5.6.120.0100.04317.75
5.6.110.0080.04417.57
5.6.100.0070.04417.81
5.6.90.0030.04417.96
5.6.80.0110.04117.42
5.6.70.0070.03917.51
5.6.60.0140.03217.38
5.6.50.0080.03817.45
5.6.40.0050.04517.36
5.6.30.0050.04317.28
5.6.20.0030.04617.52
5.6.10.0070.04217.34
5.6.00.0050.04717.44
5.5.380.0080.03215.73
5.5.370.0020.04915.73
5.5.360.0030.03515.86
5.5.350.0030.04215.91
5.5.340.0080.03615.98
5.5.330.0080.03815.91
5.5.320.0080.02215.99
5.5.310.0070.03815.97
5.5.300.0050.02915.92
5.5.290.0050.03116.04
5.5.280.0100.02316.15
5.5.270.0110.04116.17
5.5.260.0020.04616.05
5.5.250.0030.04715.93
5.5.240.0050.03715.63
5.5.230.0070.02615.57
5.5.220.0020.04215.61
5.5.210.0130.03715.57
5.5.200.0020.04515.70
5.5.190.0120.03715.76
5.5.180.0090.04015.69
5.5.170.0070.00310.98
5.5.160.0050.04615.56
5.5.150.0050.04015.67
5.5.140.0110.03815.60
5.5.130.0050.04215.76
5.5.120.0050.04215.71
5.5.110.0050.04615.67
5.5.100.0100.04015.49
5.5.90.0040.02815.59
5.5.80.0050.03915.63
5.5.70.0060.04015.48
5.5.60.0080.03115.65
5.5.50.0080.03215.53
5.5.40.0100.04015.66
5.5.30.0070.04015.55
5.5.20.0030.04215.54
5.5.10.0060.04115.47
5.5.00.0090.04215.52
5.4.450.0120.03715.28
5.4.440.0030.04515.20
5.4.430.0040.04215.28
5.4.420.0110.02015.19
5.4.410.0060.02815.25
5.4.400.0110.03014.97
5.4.390.0070.02514.98
5.4.380.0080.04015.04
5.4.370.0090.03715.03
5.4.360.0100.04215.01
5.4.350.0080.04315.03
5.4.340.0150.01814.97
5.4.330.0000.00910.90
5.4.320.0100.03615.00
5.4.310.0070.04015.11
5.4.300.0110.03715.05
5.4.290.0090.03915.00
5.4.280.0070.03714.99
5.4.270.0050.04315.01
5.4.260.0070.02814.99
5.4.250.0030.04314.99
5.4.240.0030.04115.15
5.4.230.0060.02315.00
5.4.220.0100.02215.07
5.4.210.0050.03915.05
5.4.200.0090.03515.20
5.4.190.0130.03415.11
5.4.180.0070.04014.99
5.4.170.0080.03915.05
5.4.160.0070.04314.97
5.4.150.0060.03915.19
5.4.140.0070.03813.79
5.4.130.0070.03213.72
5.4.120.0050.04013.82
5.4.110.0040.03713.80
5.4.100.0050.03813.72
5.4.90.0030.03813.67
5.4.80.0080.02813.76
5.4.70.0110.03113.72
5.4.60.0030.03013.79
5.4.50.0050.03713.59
5.4.40.0040.04213.65
5.4.30.0080.03613.78
5.4.20.0030.04013.80
5.4.10.0120.03313.77
5.4.00.0060.02313.38
5.3.290.0150.01812.80
5.3.280.0070.03912.76
5.3.270.0090.03812.78
5.3.260.0030.04312.77
5.3.250.0050.02812.86
5.3.240.0050.04012.81
5.3.230.0150.03512.79
5.3.220.0040.03912.82
5.3.210.0040.04212.76
5.3.200.0070.03712.71
5.3.190.0030.04012.84
5.3.180.0050.03612.79
5.3.170.0030.04312.76
5.3.160.0020.04012.76
5.3.150.0080.03412.76
5.3.140.0050.04012.75
5.3.130.0080.03812.70
5.3.120.0030.04012.77
5.3.110.0080.03912.75
5.3.100.0050.04312.57
5.3.90.0070.03812.47
5.3.80.0050.04012.47
5.3.70.0030.04312.48
5.3.60.0030.04212.49
5.3.50.0080.03812.49
5.3.40.0030.04212.41
5.3.30.0090.03512.41
5.3.20.0100.03312.30
5.3.10.0020.02712.33
5.3.00.0030.04212.30
5.2.170.0030.03611.54
5.2.160.0020.02511.54
5.2.150.0030.02311.54
5.2.140.0080.02811.54
5.2.130.0020.02211.54
5.2.120.0010.03511.54
5.2.110.0030.03311.54
5.2.100.0020.03611.54
5.2.90.0020.02411.54
5.2.80.0050.02011.54
5.2.70.0130.02911.54
5.2.60.0030.03511.54
5.2.50.0040.03311.54
5.2.40.0050.03311.54
5.2.30.0030.02611.54
5.2.20.0070.03111.54
5.2.10.0030.03011.54
5.2.00.0040.02011.54
5.1.60.0050.02711.54
5.1.50.0030.02811.54
5.1.40.0020.02611.54
5.1.30.0030.03111.54
5.1.20.0070.02811.54
5.1.10.0060.02611.54
5.1.00.0020.02811.54
5.0.50.0020.02211.54
5.0.40.0070.02211.54
5.0.30.0050.02411.54
5.0.20.0020.02211.54
5.0.10.0020.02411.54
5.0.00.0010.03611.54
4.4.90.0050.01611.54
4.4.80.0030.01811.54
4.4.70.0020.02111.54
4.4.60.0060.01611.54
4.4.50.0020.01811.54
4.4.40.0020.03011.54
4.4.30.0070.01511.54
4.4.20.0020.01211.54
4.4.10.0050.01811.54
4.4.00.0060.02811.54
4.3.110.0030.01911.54
4.3.100.0000.01911.54
4.3.90.0010.01811.54
4.3.80.0020.02911.54
4.3.70.0020.01911.54
4.3.60.0010.01911.54
4.3.50.0000.02111.54
4.3.40.0030.02511.54
4.3.30.0020.01711.54
4.3.20.0000.01511.54
4.3.10.0030.01811.54
4.3.00.0010.02011.54

preferences:
39.08 ms | 401 KiB | 5 Q