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; $needToKeep = ['referencedToStationName','referencedToStationId','HeightOffsetLow','HeightOffsetHigh','TimeOffsetLow','TimeOffsetHigh','stationname','stationid','stationtype']; $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.0060.00918.66
8.3.50.0160.00522.10
8.3.40.0100.00718.90
8.3.30.0060.00919.34
8.3.20.0000.00820.41
8.3.10.0060.00320.77
8.3.00.0030.00519.63
8.2.180.0070.01118.38
8.2.170.0070.00722.96
8.2.160.0000.01420.60
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00322.61
8.2.110.0030.00619.43
8.2.100.0060.00619.89
8.2.90.0000.00919.48
8.2.80.0060.00318.00
8.2.70.0060.00317.88
8.2.60.0080.00018.15
8.2.50.0080.00018.10
8.2.40.0000.00818.28
8.2.30.0030.00718.44
8.2.20.0030.00518.07
8.2.10.0040.00418.34
8.2.00.0040.00417.89
8.1.280.0070.00725.92
8.1.270.0040.00422.30
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00024.12
8.1.230.0060.00617.95
8.1.220.0030.00618.01
8.1.210.0050.00318.77
8.1.200.0040.00417.48
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0030.00518.65
8.1.160.0070.00022.32
8.1.150.0060.00319.13
8.1.140.0000.00817.67
8.1.130.0030.00318.02
8.1.120.0040.00417.74
8.1.110.0040.00417.68
8.1.100.0000.00717.56
8.1.90.0000.00717.71
8.1.80.0040.00417.58
8.1.70.0040.00417.64
8.1.60.0040.00417.84
8.1.50.0030.00517.63
8.1.40.0000.00817.82
8.1.30.0000.00817.69
8.1.20.0000.00817.87
8.1.10.0040.00417.55
8.1.00.0000.00717.64
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0050.00318.57
8.0.270.0050.00217.52
8.0.260.0030.00317.51
8.0.250.0040.00417.23
8.0.240.0000.00717.27
8.0.230.0030.00517.13
8.0.220.0030.00317.20
8.0.210.0070.00017.04
8.0.200.0030.00317.20
8.0.190.0000.01117.16
8.0.180.0040.00417.22
8.0.170.0030.00517.21
8.0.160.0000.00717.09
8.0.150.0030.00517.14
8.0.140.0090.00016.97
8.0.130.0000.00513.59
8.0.120.0040.00417.16
8.0.110.0000.00717.09
8.0.100.0050.00217.16
8.0.90.0030.00517.05
8.0.80.0090.00617.23
8.0.70.0050.00217.22
8.0.60.0040.00417.24
8.0.50.0020.00517.05
8.0.30.0060.01317.41
8.0.20.0090.01417.40
8.0.10.0040.00417.22
8.0.00.0080.00817.08
7.4.330.0030.00215.25
7.4.320.0000.00616.75
7.4.300.0030.00316.71
7.4.290.0070.00016.71
7.4.280.0050.00216.74
7.4.270.0000.00716.78
7.4.260.0000.01016.70
7.4.250.0000.00816.66
7.4.240.0050.00216.82
7.4.230.0030.00316.79
7.4.220.0100.01016.59
7.4.210.0100.00316.86
7.4.200.0000.00716.78
7.4.160.0110.00616.73
7.4.150.0070.01017.40
7.4.140.0090.00917.86
7.4.130.0060.01016.75
7.4.120.0090.01016.77
7.4.110.0110.00516.63
7.4.100.0030.01416.54
7.4.90.0030.01316.60
7.4.80.0040.01419.37
7.4.70.0000.01716.76
7.4.60.0110.00516.80
7.4.50.0060.00016.69
7.4.40.0070.01016.76
7.4.30.0120.00616.88
7.4.10.0000.01516.00
7.4.00.0080.00915.59
7.3.330.0000.00613.28
7.3.320.0020.00213.48
7.3.310.0040.00416.65
7.3.300.0070.00016.59
7.3.290.0070.00716.61
7.3.280.0080.00916.54
7.3.270.0140.00517.40
7.3.260.0150.00816.68
7.3.250.0090.01316.57
7.3.240.0180.00416.58
7.3.230.0180.00316.84
7.3.210.0090.00616.70
7.3.200.0100.00719.39
7.3.190.0090.00916.60
7.3.180.0060.01016.73
7.3.170.0100.00716.70
7.3.160.0030.01616.54
7.3.130.0000.01416.00
7.3.120.0030.01316.00
7.3.110.0070.00716.00
7.3.100.0090.00616.00
7.3.90.0000.01616.00
7.3.80.0060.00316.00
7.3.70.0040.00716.00
7.3.60.0090.00916.00
7.3.50.0080.00316.00
7.3.40.0130.00016.00
7.3.30.0030.00716.00
7.3.20.0060.00316.72
7.3.10.0030.01316.77
7.3.00.0000.01416.50
7.2.330.0140.00316.90
7.2.320.0060.01016.95
7.2.310.0100.01316.70
7.2.300.0110.00516.89
7.2.290.0040.01816.95
7.2.260.0060.01216.00
7.2.250.0060.01016.00
7.2.240.0030.01316.00
7.2.230.0060.01116.00
7.2.220.0000.01716.00
7.2.210.0000.01416.00
7.2.200.0070.00716.00
7.2.190.0000.00916.00
7.2.180.0100.00716.00
7.2.170.0150.00016.00
7.2.160.0090.00016.00
7.2.150.0060.00617.00
7.2.140.0070.01016.83
7.2.130.0000.01116.96
7.2.120.0030.01016.77
7.2.110.0070.00716.78
7.2.100.0140.00316.81
7.2.90.0070.00717.13
7.2.80.0090.00317.23
7.2.70.0070.01117.08
7.2.60.0040.01217.08
7.2.50.0080.00317.07
7.2.40.0030.00917.04
7.2.30.0080.00317.21
7.2.20.0060.00317.01
7.2.10.0070.00417.09
7.2.00.0070.00717.02
7.1.330.0070.00716.16
7.1.320.0040.01116.00
7.1.310.0040.00416.01
7.1.300.0030.01016.00
7.1.290.0030.01016.00
7.1.280.0040.00716.12
7.1.270.0030.00716.00
7.1.260.0030.00516.00
7.1.250.0030.00616.00
7.1.240.0030.01016.00
7.1.230.0100.00716.11
7.1.220.0110.00716.09
7.1.210.0040.01116.00
7.1.200.0070.00716.00
7.1.190.0000.01516.00
7.1.180.0030.00616.00
7.1.170.0090.00016.00
7.1.160.0110.00416.00
7.1.150.0040.00816.00
7.1.140.0000.01316.00
7.1.130.0000.00916.02
7.1.120.0100.00716.00
7.1.110.0060.00616.00
7.1.100.0090.00016.00
7.1.90.0070.00716.00
7.1.80.0090.00316.00
7.1.70.0060.00516.61
7.1.60.0060.01317.66
7.1.50.0100.00616.45
7.1.40.0000.01716.06
7.1.30.0000.01616.00
7.1.20.0000.01716.00
7.1.10.0030.01016.02
7.1.00.0010.04619.23
7.0.330.0030.01216.00
7.0.320.0040.00716.00
7.0.310.0030.01016.00
7.0.300.0070.00716.00
7.0.290.0060.00316.00
7.0.280.0060.00616.00
7.0.270.0090.00016.00
7.0.260.0070.00716.00
7.0.250.0080.00016.00
7.0.240.0050.00516.00
7.0.230.0080.00516.00
7.0.220.0050.01016.00
7.0.210.0000.01316.00
7.0.200.0070.00616.36
7.0.190.0040.01416.00
7.0.180.0040.01116.00
7.0.170.0040.00916.00
7.0.160.0110.00416.00
7.0.150.0120.00316.00
7.0.140.0070.03919.10
7.0.130.0070.00716.00
7.0.120.0060.00916.00
7.0.110.0030.00716.00
7.0.100.0000.01116.00
7.0.90.0280.03018.11
7.0.80.0400.03818.02
7.0.70.0250.02917.99
7.0.60.0280.04718.05
7.0.50.0350.04318.24
7.0.40.0070.04418.07
7.0.30.0080.04218.09
7.0.20.0060.02518.13
7.0.10.0030.04618.08
7.0.00.0100.04218.03
5.6.400.0090.00316.00
5.6.390.0040.00416.00
5.6.380.0030.01016.00
5.6.370.0050.00516.00
5.6.360.0070.00716.00
5.6.350.0040.01116.00
5.6.340.0060.00616.00
5.6.330.0100.00316.00
5.6.320.0030.01016.00
5.6.310.0090.00916.00
5.6.300.0060.00916.00
5.6.290.0080.00616.00
5.6.280.0050.03818.61
5.6.270.0060.00616.00
5.6.260.0110.00416.00
5.6.250.0000.01316.00
5.6.240.0050.03918.31
5.6.230.0050.04518.29
5.6.220.0040.03418.35
5.6.210.0030.05018.38
5.6.200.0070.04818.63
5.6.190.0080.04318.51
5.6.180.0100.04018.58
5.6.170.0100.04318.59
5.6.160.0050.03018.59
5.6.150.0130.04118.59
5.6.140.0080.04118.64
5.6.130.0070.04718.51
5.6.120.0100.04318.61
5.6.110.0100.04218.56
5.6.100.0100.04518.54
5.6.90.0120.03218.63
5.6.80.0080.04218.33
5.6.70.0070.02618.26
5.6.60.0080.02818.24
5.6.50.0120.03518.30
5.6.40.0050.03018.25
5.6.30.0080.04318.29
5.6.20.0050.03518.25
5.6.10.0110.03718.25
5.6.00.0050.04218.22
5.5.380.0100.04018.31
5.5.370.0050.04018.29
5.5.360.0160.03518.29
5.5.350.0070.04218.26
5.5.340.0130.03718.39
5.5.330.0050.04318.44
5.5.320.0050.04618.52
5.5.310.0090.02818.44
5.5.300.0120.03318.42
5.5.290.0070.04318.45
5.5.280.0080.03618.52
5.5.270.0080.03318.46
5.5.260.0160.04018.46
5.5.250.0070.02718.30
5.5.240.0060.02718.19
5.5.230.0100.04118.16
5.5.220.0030.04518.13
5.5.210.0080.04018.17
5.5.200.0020.03118.13
5.5.190.0050.04618.16
5.5.180.0100.02518.14
5.5.170.0040.01116.00
5.5.160.0080.04018.18
5.5.150.0140.03418.21
5.5.140.0040.03918.13
5.5.130.0050.03918.18
5.5.120.0000.03618.15
5.5.110.0100.04218.09
5.5.100.0090.04218.08
5.5.90.0120.04118.12
5.5.80.0050.03718.09
5.5.70.0100.03818.13
5.5.60.0090.04118.07
5.5.50.0070.02518.08
5.5.40.0050.03018.15
5.5.30.0070.02918.04
5.5.20.0080.03218.12
5.5.10.0100.04018.07
5.5.00.0090.02318.05
5.4.450.0060.04317.61
5.4.440.0050.02717.60
5.4.430.0060.04317.61
5.4.420.0070.04617.75
5.4.410.0030.04217.70
5.4.400.0030.02717.60
5.4.390.0050.02217.52
5.4.380.0190.03317.61
5.4.370.0070.03717.60
5.4.360.0050.04117.62
5.4.350.0070.04017.56
5.4.340.0040.03917.57
5.4.330.0060.00316.00
5.4.320.0070.02317.60
5.4.310.0050.04217.60
5.4.300.0100.03217.69
5.4.290.0030.02617.56
5.4.280.0070.04117.57
5.4.270.0020.04717.59
5.4.260.0140.03217.43
5.4.250.0030.04317.60
5.4.240.0090.02817.60
5.4.230.0070.02917.52
5.4.220.0060.02517.56
5.4.210.0070.03817.56
5.4.200.0070.03917.59
5.4.190.0050.03717.60
5.4.180.0050.02817.60
5.4.170.0050.04317.59
5.4.160.0050.02517.61
5.4.150.0060.03717.56
5.4.140.0110.03516.23
5.4.130.0080.02016.18
5.4.120.0050.03716.21
5.4.110.0090.03916.26
5.4.100.0080.03516.29
5.4.90.0030.02316.28
5.4.80.0080.03716.25
5.4.70.0080.03816.21
5.4.60.0080.03216.25
5.4.50.0060.03516.22
5.4.40.0060.02616.27
5.4.30.0100.03116.21
5.4.20.0040.02716.26
5.4.10.0050.02216.21
5.4.00.0050.02315.99
5.3.290.0130.06714.63
5.3.280.0100.07314.43
5.3.270.0070.07714.59
5.3.260.0100.05314.48
5.3.250.0000.05714.46
5.3.240.0030.04714.47
5.3.230.0100.07314.59
5.3.220.0100.07314.57
5.3.210.0170.04714.44
5.3.200.0130.07014.56
5.3.190.0070.04314.56
5.3.180.0070.07314.55
5.3.170.0070.07314.42
5.3.160.0100.06014.52
5.3.150.0100.06314.55
5.3.140.0100.05314.50
5.3.130.0100.07714.55
5.3.120.0070.07714.54
5.3.110.0030.04014.54
5.3.100.0100.04314.05
5.3.90.0000.07013.97
5.3.80.0030.06714.03
5.3.70.0000.08013.96
5.3.60.0070.04313.94
5.3.50.0070.07313.91
5.3.40.0070.07313.93
5.3.30.0100.06013.87
5.3.20.0130.06313.45
5.3.10.0070.07013.52
5.3.00.0000.07013.55
5.2.170.0070.06011.62
5.2.160.0100.04311.62
5.2.150.0100.05711.62
5.2.140.0100.06011.62
5.2.130.0130.05011.62
5.2.120.0030.04711.62
5.2.110.0100.05711.62
5.2.100.0070.05711.62
5.2.90.0030.06011.62
5.2.80.0070.06011.62
5.2.70.0130.05711.62
5.2.60.0030.06311.62
5.2.50.0030.03311.62
5.2.40.0100.04711.62
5.2.30.0000.04011.62
5.2.20.0070.02711.62
5.2.10.0030.04311.62
5.2.00.0100.04311.62
5.1.60.0000.02711.62
5.1.50.0070.03011.62
5.1.40.0000.04011.62
5.1.30.0000.03011.62
5.1.20.0030.02311.62
5.1.10.0000.02711.62
5.1.00.0000.02311.62
5.0.50.0000.02011.62
5.0.40.0000.02011.62
5.0.30.0030.03311.62
5.0.20.0000.02011.62
5.0.10.0100.01311.62
5.0.00.0000.03011.62
4.4.90.0000.02011.62
4.4.80.0030.02311.62
4.4.70.0000.02011.62
4.4.60.0030.01711.62
4.4.50.0000.03011.62
4.4.40.0030.02311.62
4.4.30.0030.02011.62
4.4.20.0030.01311.62
4.4.10.0000.02711.62
4.4.00.0000.02711.62
4.3.110.0030.02311.62
4.3.100.0000.01711.62
4.3.90.0000.01311.62
4.3.80.0030.04311.62
4.3.70.0000.02011.62
4.3.60.0030.01311.62
4.3.50.0000.02011.62
4.3.40.0000.02311.62
4.3.30.0000.02711.62
4.3.20.0070.01311.62
4.3.10.0000.03011.62
4.3.00.0000.01711.62

preferences:
45.97 ms | 401 KiB | 5 Q