3v4l.org

run code in 300+ PHP versions simultaneously
<?php $station = "KORD";// Enter your airport's code here. $metarwx = "http://weather.noaa.gov/pub/data/observations/metar/stations/$station.TXT"; $metars = file_get_contents($metarwx); $metar = getCloud($metars); echo $metar; function getCloud($wxReport) { $clouds = ['BKN', 'CAVOK', 'CLR', 'FEW', 'NSC', 'OVC', 'SCT', 'SKC', 'VV']; $wxReportArray = explode(' ', $wxReport); foreach($wxReportArray as $rptPart){ $rptPart = preg_replace('/[0-9]+/', '', $rptPart); if(in_array($rptPart, $clouds)){ return $rptPart; } } }

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.0090.01219.18
8.3.50.0140.00621.33
8.3.40.0110.00719.29
8.3.30.0130.00720.73
8.3.20.0070.01320.77
8.3.10.0170.00321.34
8.3.00.0070.00422.55
8.2.180.0180.00018.92
8.2.170.0090.00622.96
8.2.160.0160.00622.40
8.2.150.0030.00624.18
8.2.140.0060.00924.66
8.2.130.0000.00926.16
8.2.120.0120.00621.16
8.2.110.0030.00622.50
8.2.100.0060.00617.97
8.2.90.0040.00419.38
8.2.80.0050.00318.14
8.2.70.0060.00318.00
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0060.00318.34
8.2.30.0040.00419.65
8.2.20.0040.00417.83
8.2.10.0030.00518.16
8.2.00.0050.00317.91
8.1.280.0100.01025.92
8.1.270.0070.00723.99
8.1.260.0100.01026.35
8.1.250.0130.00728.09
8.1.240.0070.00721.92
8.1.230.0100.00322.32
8.1.220.0030.00617.80
8.1.210.0080.00018.77
8.1.200.0030.00717.61
8.1.190.0000.00817.62
8.1.180.0040.00418.10
8.1.170.0080.00018.75
8.1.160.0080.00019.10
8.1.150.0000.00818.89
8.1.140.0040.00417.84
8.1.130.0070.00017.92
8.1.120.0000.00717.84
8.1.110.0040.00417.73
8.1.100.0080.00017.75
8.1.90.0040.00417.63
8.1.80.0080.00017.85
8.1.70.0040.00417.67
8.1.60.0000.00817.96
8.1.50.0080.00017.93
8.1.40.0090.00017.68
8.1.30.0030.00517.82
8.1.20.0030.00617.89
8.1.10.0000.00817.92
8.1.00.0030.00517.75
8.0.300.0000.00918.77
8.0.290.0030.00517.41
8.0.280.0000.00718.80
8.0.270.0000.00817.55
8.0.260.0000.00717.19
8.0.250.0030.00617.44
8.0.240.0000.01017.43
8.0.230.0040.00417.38
8.0.220.0030.00317.26
8.0.210.0000.00717.23
8.0.200.0030.00317.45
8.0.190.0040.00717.25
8.0.180.0030.00517.18
8.0.170.0000.00817.22
8.0.160.0040.00417.26
8.0.150.0040.00417.30
8.0.140.0070.00017.21
8.0.130.0030.00313.82
8.0.120.0090.00017.34
8.0.110.0030.00517.38
8.0.100.0040.00417.45
8.0.90.0040.00417.45
8.0.80.0000.02017.38
8.0.70.0040.00417.35
8.0.60.0080.00017.37
8.0.50.0000.00717.27
8.0.30.0150.00717.56
8.0.20.0140.00617.47
8.0.10.0040.00417.42
8.0.00.0090.01317.43
7.4.330.0030.00317.00
7.4.320.0060.00017.04
7.4.300.0000.00717.05
7.4.290.0070.00016.92
7.4.280.0000.00816.93
7.4.270.0050.00516.94
7.4.260.0000.00613.75
7.4.250.0040.00416.86
7.4.240.0050.00217.01
7.4.230.0000.00716.88
7.4.220.0120.00616.94
7.4.210.0110.00717.01
7.4.200.0040.00417.09
7.4.190.0070.00017.18
7.4.160.0130.00916.82
7.4.150.0120.00617.40
7.4.140.0110.01117.86
7.4.130.0080.01216.95
7.4.120.0090.01117.09
7.4.110.0150.00917.04
7.4.100.0140.00517.00
7.4.90.0070.01117.01
7.4.80.0140.00419.39
7.4.70.0090.00916.93
7.4.60.0090.00916.99
7.4.50.0000.00917.04
7.4.40.0100.00722.77
7.4.30.0060.01416.73
7.4.00.0080.00815.29
7.3.330.0030.00313.63
7.3.320.0030.00313.61
7.3.310.0070.00016.74
7.3.300.0030.00316.81
7.3.290.0000.01916.84
7.3.280.0130.00616.84
7.3.270.0090.00917.40
7.3.260.0100.01018.24
7.3.250.0120.00616.94
7.3.240.0080.01017.10
7.3.230.0190.00616.91
7.3.210.0060.01216.89
7.3.200.0090.00919.39
7.3.190.0200.00316.96
7.3.180.0070.01016.95
7.3.170.0090.01316.95
7.3.160.0060.01216.89
7.3.120.0090.00915.23
7.3.110.0040.01515.29
7.3.100.0090.00915.52
7.3.90.0070.00715.20
7.3.80.0000.01115.24
7.3.70.0030.01215.50
7.3.60.0040.00915.39
7.3.50.0110.00415.38
7.3.40.0060.00615.08
7.3.30.0070.00715.09
7.3.20.0030.00616.93
7.3.10.0060.00617.13
7.3.00.0070.00317.28
7.2.330.0070.01317.09
7.2.320.0130.01016.98
7.2.310.0110.00717.09
7.2.300.0030.01417.00
7.2.290.0170.00317.04
7.2.250.0090.01015.45
7.2.240.0070.01415.32
7.2.230.0060.00915.30
7.2.220.0070.01015.50
7.2.210.0090.00315.40
7.2.200.0040.01515.60
7.2.190.0080.00415.59
7.2.180.0070.00715.65
7.2.170.0000.01215.59
7.2.60.0040.00716.93
7.2.00.0030.01019.77
7.1.330.0070.01016.13
7.1.320.0070.00716.48
7.1.310.0070.00415.97
7.1.300.0040.01116.15
7.1.290.0040.01116.45
7.1.280.0040.00716.36
7.1.270.0000.01516.40
7.1.260.0060.00616.32
7.1.200.0040.01216.25
7.1.100.0060.00818.68
7.1.70.0000.01317.55
7.1.60.0110.01419.17
7.1.50.0100.01417.31
7.1.00.0030.03722.63
7.0.200.0110.00017.24
7.0.140.0000.07322.42
7.0.110.0170.07020.23
7.0.100.0170.07720.27
7.0.90.0100.08320.46
7.0.80.0170.07320.23
7.0.70.0130.05720.27
7.0.60.0230.07320.29
7.0.50.0100.08720.32
7.0.40.0100.04720.06
7.0.30.0130.04320.05
7.0.20.0100.08020.00
7.0.10.0200.03720.13
7.0.00.0070.07720.00
5.6.280.0030.07321.21
5.6.260.0070.06720.89
5.6.250.0170.02720.93
5.6.240.0070.06320.92
5.6.230.0100.03720.91
5.6.220.0070.08020.91
5.6.210.0130.04720.93
5.6.200.0070.07720.91
5.6.190.0130.07320.88
5.6.180.0170.07020.91
5.6.170.0030.05020.91
5.6.160.0070.07720.91
5.6.150.0070.08021.06
5.6.140.0070.07321.13
5.6.130.0100.08020.91
5.6.120.0100.07721.13
5.6.110.0070.06021.11
5.6.100.0170.04320.89
5.6.90.0070.06020.91
5.6.80.0000.04320.29
5.6.70.0130.03720.31
5.6.60.0070.03720.38
5.6.50.0070.03720.29
5.6.40.0070.03720.42
5.6.30.0030.04020.40
5.6.20.0030.04320.41
5.6.10.0030.04720.41
5.6.00.0100.04320.30
5.5.380.0030.04317.85
5.5.370.0030.08717.98
5.5.360.0070.04317.90
5.5.350.0070.04717.93
5.5.340.0100.04318.30
5.5.330.0130.07318.25
5.5.320.0130.06718.37
5.5.310.0130.06318.30
5.5.300.0130.07018.36
5.5.290.0100.07718.29
5.5.280.0100.07718.37
5.5.270.0100.08318.25
5.5.260.0030.08018.39
5.5.250.0030.06018.11
5.5.240.0070.03717.99
5.5.230.0170.06318.05
5.5.220.0070.07317.98
5.5.210.0100.04317.63
5.5.200.0070.03717.76
5.5.190.0070.03717.93
5.5.180.0070.03717.82
5.5.160.0030.04017.74
5.5.150.0000.04017.93
5.5.140.0030.04017.72
5.5.130.0170.02717.74
5.5.120.0100.07317.61
5.5.110.0000.08717.80
5.5.100.0070.08017.62
5.5.90.0000.04017.82
5.5.80.0070.06317.55
5.5.70.0030.04017.61
5.5.60.0030.04717.70
5.5.50.0030.04317.50
5.5.40.0030.05717.70
5.5.30.0000.05317.84
5.5.20.0070.04317.64
5.5.10.0030.03717.61
5.5.00.0030.03717.59
5.4.450.0170.06719.76
5.4.440.0130.07719.95
5.4.430.0070.07019.73
5.4.420.0070.04320.01
5.4.410.0030.07019.61
5.4.400.0100.03319.46
5.4.390.0070.07019.72
5.4.380.0000.04319.27
5.4.370.0100.02719.54
5.4.360.0070.04319.24
5.4.350.0070.03319.51
5.4.340.0000.04719.20
5.4.320.0070.03319.24
5.4.310.0000.04319.45
5.4.300.0000.07319.27
5.4.290.0100.03019.40
5.4.280.0100.07319.46
5.4.270.0070.06319.56
5.4.260.0100.06319.20
5.4.250.0070.04319.71
5.4.240.0130.05319.39
5.4.230.0100.04019.40
5.4.220.0070.03719.40
5.4.210.0030.03719.45
5.4.200.0100.03019.23
5.4.190.0070.03019.54
5.4.180.0030.03719.71
5.4.170.0070.03319.53
5.4.160.0030.03719.23
5.4.150.0030.04019.61
5.4.140.0100.02716.72
5.4.130.0070.02717.01
5.4.120.0030.03016.84
5.4.110.0000.04316.78
5.4.100.0070.02716.73
5.4.90.0030.03016.97
5.4.80.0030.03016.92
5.4.70.0070.02716.87
5.4.60.0070.02316.75
5.4.50.0070.02716.94
5.4.40.0030.03016.84
5.4.30.0030.07717.00
5.4.20.0000.03316.91
5.4.10.0030.03316.99
5.4.00.0170.02016.30
5.3.290.0030.03714.70
5.3.280.0030.05014.57
5.3.270.0070.03314.73
5.3.260.0000.04014.64
5.3.250.0100.03014.61
5.3.240.0030.03714.56
5.3.230.0000.03314.59
5.3.220.0070.03314.58
5.3.210.0030.03714.58
5.3.200.0000.03314.42
5.3.190.0070.02714.43
5.3.180.0000.03314.65
5.3.170.0000.03714.44
5.3.160.0000.03314.58
5.3.150.0000.03314.64
5.3.140.0000.03314.43
5.3.130.0030.03314.55
5.3.120.0030.03014.57
5.3.110.0030.03014.56
5.3.100.0030.03314.28
5.3.90.0000.06314.04
5.3.80.0030.03714.11
5.3.70.0100.03314.15
5.3.60.0070.06714.08
5.3.50.0030.07313.98
5.3.40.0030.06314.17
5.3.30.0030.06013.94
5.3.20.0030.06713.79
5.3.10.0070.07313.64
5.3.00.0030.07713.51
5.2.170.0070.05711.85
5.2.160.0030.03311.85
5.2.150.0030.06311.85
5.2.140.0070.06011.85
5.2.130.0100.05711.85
5.2.120.0070.03311.85
5.2.110.0100.06311.85
5.2.100.0070.06711.85
5.2.90.0070.06311.85
5.2.80.0070.06311.85
5.2.70.0130.05011.85
5.2.60.0030.05711.85
5.2.50.0030.03311.85
5.2.40.0000.06711.85
5.2.30.0130.04711.85
5.2.20.0070.06011.85
5.2.10.0030.04011.85
5.2.00.0070.05711.85
5.1.60.0070.02011.85
5.1.50.0000.05711.85
5.1.40.0070.04011.85
5.1.30.0100.03011.85
5.1.20.0100.05011.85
5.1.10.0070.05311.85
5.1.00.0070.05311.85
5.0.50.0100.02011.85
5.0.40.0030.03711.85
5.0.30.0000.07011.85
5.0.20.0030.04311.85
5.0.10.0030.04311.85
5.0.00.0030.05711.85
4.4.90.0000.03311.85
4.4.80.0030.04011.85
4.4.70.0000.03711.85
4.4.60.0070.03311.85
4.4.50.0030.03711.85
4.4.40.0000.05311.85
4.4.30.0000.02711.85
4.4.20.0000.03311.85
4.4.10.0030.04011.85
4.4.00.0030.05011.85
4.3.110.0030.03311.85
4.3.100.0030.03311.85
4.3.90.0000.03711.85
4.3.80.0030.05311.85
4.3.70.0030.02011.85
4.3.60.0030.03711.85
4.3.50.0030.03011.85
4.3.40.0000.04711.85
4.3.30.0000.03711.85
4.3.20.0030.03711.85
4.3.10.0000.03711.85
4.3.00.0000.03011.85

preferences:
41.09 ms | 401 KiB | 5 Q