3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = [ '10MinAvgWindSpeed.gif', 'AirDensity.gif', 'Barometer.gif', 'ET.gif', 'Rain.gif', 'DewPoint.gif', 'EMC.gif', 'HeatIndex.gif', 'Humidity2.gif', 'Humidity3.gif', 'InsideDewPoint.gif', 'InsideHeatIndex.gif', 'InsideHumidity.gif', 'InsideTemp.gif', 'LeafTemp2.gif', 'LeafTemp1.gif', 'LeafWetness1.gif', 'LeafWetness2.gif', 'MonthlyET.gif', 'MonthlyRain.gif', 'OutsideHumidity.gif', 'OutsideTemp.gif', 'RainRate.gif', 'RainRate.gif', 'RainStorm.gif', 'SoilMoisture1.gif', 'SoilMoist2.gif', 'SoilMoist3.gif', 'SoilMoist4.gif', 'SoilTemp1.gif', 'SoilTemp2.gif', 'SoilTemp3.gif', 'SoilTemp4.gif', 'SolarRad.gif', 'THW.gif', 'Temperature2.gif', 'Temperature2.gif', 'Temperature3.gif', 'Temperature4.gif', 'UV.gif', 'WindChill.gif', 'WindDirection.gif', 'WindSpeed.gif', 'YearlyET.gif', 'YearlyRain.gif', 'AirDensityHistory.gif', 'BarometerHistory.gif', 'CoolDegDaysHistory.gif', 'DewPointHistory.gif', 'EMCHistory.gif', 'ETHistory.gif', 'HeatIndexHistory.gif', 'HeatDegDaysHistory.gif', 'HiWindSpeedHistory.gif', 'HighSolarRadHistory.gif', 'HighUVHistory.gif', 'HighWindDirHistory.gif', 'Humidity2History.gif', 'Humidity3History.gif', 'InsideDewPointHistory.gif', 'InsideHeatIndexHistory.gif', 'InsideHumidityHistory.gif', 'InsideTempHistory.gif', 'ReceptionHistory.gif', 'LeafTemp1History.gif', 'LeafTemp2History.gif', 'LeafWet1History.gif', 'LeafWet2History.gif', 'OutsideHumidityHistory.gif', 'OutsideTempHistory.gif', 'RainHistory.gif', 'RainRateHistory.gif', 'SoilMoist1History.gif', 'SoilMoist2History.gif', 'SoilMoist3History.gif', 'SoilMoist4History.gif', 'SoilTemp1History.gif', 'SoilTemp2History.gif', 'SoilTemp3History.gif', 'SoilTemp4History.gif', 'SolarEnergyHistory.gif', 'SolarRadHistory.gif', 'THSWHistory.gif', 'THWHistory.gif', 'Temperature2History.gif', 'Temperature3History.gif', 'Temperature4History.gif', 'UVHistory.gif', 'DoseHistory.gif', 'WindChillHistory.gif', 'WindDirectionHistory.gif', 'WindRunHistory.gif', 'WindSpeedHistory.gif', ]; sort($a); var_export($a);
Output for 5.4.0 - 7.1.0
array ( 0 => '10MinAvgWindSpeed.gif', 1 => 'AirDensity.gif', 2 => 'AirDensityHistory.gif', 3 => 'Barometer.gif', 4 => 'BarometerHistory.gif', 5 => 'CoolDegDaysHistory.gif', 6 => 'DewPoint.gif', 7 => 'DewPointHistory.gif', 8 => 'DoseHistory.gif', 9 => 'EMC.gif', 10 => 'EMCHistory.gif', 11 => 'ET.gif', 12 => 'ETHistory.gif', 13 => 'HeatDegDaysHistory.gif', 14 => 'HeatIndex.gif', 15 => 'HeatIndexHistory.gif', 16 => 'HiWindSpeedHistory.gif', 17 => 'HighSolarRadHistory.gif', 18 => 'HighUVHistory.gif', 19 => 'HighWindDirHistory.gif', 20 => 'Humidity2.gif', 21 => 'Humidity2History.gif', 22 => 'Humidity3.gif', 23 => 'Humidity3History.gif', 24 => 'InsideDewPoint.gif', 25 => 'InsideDewPointHistory.gif', 26 => 'InsideHeatIndex.gif', 27 => 'InsideHeatIndexHistory.gif', 28 => 'InsideHumidity.gif', 29 => 'InsideHumidityHistory.gif', 30 => 'InsideTemp.gif', 31 => 'InsideTempHistory.gif', 32 => 'LeafTemp1.gif', 33 => 'LeafTemp1History.gif', 34 => 'LeafTemp2.gif', 35 => 'LeafTemp2History.gif', 36 => 'LeafWet1History.gif', 37 => 'LeafWet2History.gif', 38 => 'LeafWetness1.gif', 39 => 'LeafWetness2.gif', 40 => 'MonthlyET.gif', 41 => 'MonthlyRain.gif', 42 => 'OutsideHumidity.gif', 43 => 'OutsideHumidityHistory.gif', 44 => 'OutsideTemp.gif', 45 => 'OutsideTempHistory.gif', 46 => 'Rain.gif', 47 => 'RainHistory.gif', 48 => 'RainRate.gif', 49 => 'RainRate.gif', 50 => 'RainRateHistory.gif', 51 => 'RainStorm.gif', 52 => 'ReceptionHistory.gif', 53 => 'SoilMoist1History.gif', 54 => 'SoilMoist2.gif', 55 => 'SoilMoist2History.gif', 56 => 'SoilMoist3.gif', 57 => 'SoilMoist3History.gif', 58 => 'SoilMoist4.gif', 59 => 'SoilMoist4History.gif', 60 => 'SoilMoisture1.gif', 61 => 'SoilTemp1.gif', 62 => 'SoilTemp1History.gif', 63 => 'SoilTemp2.gif', 64 => 'SoilTemp2History.gif', 65 => 'SoilTemp3.gif', 66 => 'SoilTemp3History.gif', 67 => 'SoilTemp4.gif', 68 => 'SoilTemp4History.gif', 69 => 'SolarEnergyHistory.gif', 70 => 'SolarRad.gif', 71 => 'SolarRadHistory.gif', 72 => 'THSWHistory.gif', 73 => 'THW.gif', 74 => 'THWHistory.gif', 75 => 'Temperature2.gif', 76 => 'Temperature2.gif', 77 => 'Temperature2History.gif', 78 => 'Temperature3.gif', 79 => 'Temperature3History.gif', 80 => 'Temperature4.gif', 81 => 'Temperature4History.gif', 82 => 'UV.gif', 83 => 'UVHistory.gif', 84 => 'WindChill.gif', 85 => 'WindChillHistory.gif', 86 => 'WindDirection.gif', 87 => 'WindDirectionHistory.gif', 88 => 'WindRunHistory.gif', 89 => 'WindSpeed.gif', 90 => 'WindSpeedHistory.gif', 91 => 'YearlyET.gif', 92 => 'YearlyRain.gif', )
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/VHq5v on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/VHq5v on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/VHq5v on line 2
Process exited with code 255.