3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_file('http://weather.yahooapis.com/forecastrss?w=868274&u=c'); $weatherInfo = $xml->channel->item->description; $imagePattern = '/src="(.*?)"/i'; preg_match($imagePattern, $weatherInfo, $matches); $imageSrc = $matches[1]; $degreesPattern = '/.*?, (-?\d+) C/i'; preg_match($degreesPattern, $weatherInfo, $matches); $degrees = $matches[1]; echo $degrees;

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.0110.01118.93
8.3.50.0110.00622.30
8.3.40.0140.00419.48
8.3.30.0030.01219.26
8.3.20.0060.00319.35
8.3.10.0080.00021.47
8.3.00.0000.00822.00
8.2.180.0000.01616.75
8.2.170.0210.00022.96
8.2.160.0070.00721.26
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0030.00619.26
8.2.110.0030.00621.41
8.2.100.0080.00418.28
8.2.90.0060.00319.42
8.2.80.0060.00318.00
8.2.70.0080.00018.00
8.2.60.0040.00418.18
8.2.50.0030.00618.25
8.2.40.0050.00318.59
8.2.30.0000.00821.39
8.2.20.0000.00818.07
8.2.10.0030.00518.18
8.2.00.0030.00718.28
8.1.280.0120.00325.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0070.00728.09
8.1.240.0140.00321.74
8.1.230.0110.00018.02
8.1.220.0050.00717.90
8.1.210.0030.00618.77
8.1.200.0060.00317.72
8.1.190.0060.00317.60
8.1.180.0030.00618.10
8.1.170.0040.00418.95
8.1.160.0080.00019.07
8.1.150.0040.00418.92
8.1.140.0040.00417.75
8.1.130.0030.00318.12
8.1.120.0000.01017.79
8.1.110.0040.00417.80
8.1.100.0000.00817.67
8.1.90.0030.00617.66
8.1.80.0000.00817.84
8.1.70.0000.00717.74
8.1.60.0060.00317.84
8.1.50.0080.00017.79
8.1.40.0000.00817.83
8.1.30.0040.00417.72
8.1.20.0000.00817.96
8.1.10.0030.00617.98
8.1.00.0000.01217.86
8.0.300.0050.00318.77
8.0.290.0040.00417.25
8.0.280.0070.00018.76
8.0.270.0070.00017.49
8.0.260.0000.01117.21
8.0.250.0000.00817.40
8.0.240.0040.00417.25
8.0.230.0070.00017.21
8.0.220.0040.00417.26
8.0.210.0040.00417.26
8.0.200.0050.00317.38
8.0.190.0070.00017.29
8.0.180.0000.00817.32
8.0.170.0060.00317.17
8.0.160.0040.00417.38
8.0.150.0000.00717.23
8.0.140.0050.00217.25
8.0.130.0030.00313.78
8.0.120.0040.00417.13
8.0.110.0030.00617.34
8.0.100.0080.00017.30
8.0.90.0030.00617.22
8.0.80.0090.00617.31
8.0.70.0000.00817.16
8.0.60.0030.00517.31
8.0.50.0040.00417.16
8.0.30.0160.00617.48
8.0.20.0110.00917.61
8.0.10.0000.00817.26
8.0.00.0100.01517.27
7.4.330.0000.00517.20
7.4.320.0080.00016.99
7.4.300.0030.00316.89
7.4.290.0030.00316.78
7.4.280.0000.00717.04
7.4.270.0000.00717.07
7.4.260.0030.00313.80
7.4.250.0100.00017.07
7.4.240.0040.00417.13
7.4.230.0040.00416.89
7.4.220.0150.00616.94
7.4.210.0080.00917.14
7.4.200.0070.00017.01
7.4.190.0000.00817.05
7.4.160.0080.00817.04
7.4.150.0180.00317.40
7.4.140.0100.01017.86
7.4.130.0150.00717.09
7.4.120.0110.00817.01
7.4.110.0100.00717.06
7.4.100.0100.01317.04
7.4.90.0140.01217.06
7.4.80.0100.01019.39
7.4.70.0120.00616.91
7.4.60.0070.01017.09
7.4.50.0040.00417.07
7.4.40.0060.01022.77
7.4.30.0090.00917.08
7.4.00.0070.01015.58
7.3.330.0030.00313.54
7.3.320.0050.00013.46
7.3.310.0070.00016.62
7.3.300.0000.00716.67
7.3.290.0120.00916.81
7.3.280.0060.01216.75
7.3.270.0110.00817.40
7.3.260.0110.00918.24
7.3.250.0080.01216.88
7.3.240.0170.00716.73
7.3.230.0060.01217.16
7.3.210.0120.00917.03
7.3.200.0060.01519.39
7.3.190.0090.01516.81
7.3.180.0110.00717.05
7.3.170.0120.01117.05
7.3.160.0070.01317.01
7.3.120.0070.00715.47
7.2.330.0070.01717.13
7.2.320.0100.01017.11
7.2.310.0170.00717.22
7.2.300.0110.00616.89
7.2.290.0070.01116.96
7.2.60.0030.01317.25
7.2.00.0090.00619.93
7.1.200.0210.01415.78
7.1.100.0040.00818.71
7.1.70.0040.00417.70
7.1.60.0000.01417.77
7.1.50.0070.00417.20
7.1.40.0140.00717.01
7.1.30.0000.01617.09
7.1.20.0030.00917.19
7.1.10.0000.00817.14
7.1.00.0060.00617.36
7.0.200.0070.00316.88
7.0.190.0040.00417.46
7.0.180.0070.00716.88
7.0.170.0070.00716.70
7.0.160.0030.00716.73
7.0.150.0080.00016.85
7.0.140.0030.00617.06
7.0.130.0080.00016.93
7.0.120.0030.00817.19
7.0.110.0050.00316.83
7.0.100.0000.01016.84
7.0.90.0030.00616.68
7.0.80.0030.00917.07
7.0.70.0030.00616.84
7.0.60.0040.00416.60
7.0.50.0060.00616.71
7.0.40.0030.00615.28
7.0.30.0040.00715.28
7.0.20.0000.00915.28
7.0.10.0100.00315.28
7.0.00.0040.00415.28
5.6.300.0030.04921.03
5.6.290.0170.04620.89
5.6.280.0260.03221.29
5.6.270.0060.03821.10
5.6.260.0030.04621.28
5.6.250.0000.05021.04
5.6.240.0030.04421.12
5.6.230.0030.05721.14
5.6.220.0030.05321.26
5.6.210.0000.04821.26
5.6.200.0060.03821.21
5.6.190.0330.04021.21
5.6.180.0000.04921.06
5.6.170.0060.04521.21
5.6.160.0030.04421.05
5.6.150.0000.04421.20
5.6.140.0100.05221.05
5.6.130.0030.04521.21
5.6.120.0030.04920.92
5.6.110.0030.04520.94
5.6.100.0070.04821.20
5.6.90.0000.05321.08
5.6.80.0100.03420.49
5.6.70.0060.03820.36
5.6.60.0000.05320.32
5.6.50.0070.03920.44
5.6.40.0030.04020.57
5.6.30.0000.04720.55
5.6.20.0070.03720.30
5.6.10.0060.03820.54
5.6.00.0000.04220.38
5.5.380.0000.04417.89
5.5.370.0030.03917.71
5.5.360.0030.05117.67
5.5.350.0030.04217.91
5.5.340.0270.03318.30
5.5.330.0070.04118.36
5.5.320.0070.04018.06
5.5.310.0070.04018.38
5.5.300.0130.02918.11
5.5.290.0060.04218.34
5.5.280.0000.04618.33
5.5.270.0030.05218.30
5.5.260.0000.04518.37
5.5.250.0060.03818.03
5.5.240.0070.03617.61
5.5.230.0200.03617.72
5.5.220.0000.04917.69
5.5.210.0030.03917.79
5.5.200.0000.06217.73
5.5.190.0000.04517.33
5.5.180.0030.04517.57
5.5.160.0060.03617.75
5.5.150.0160.03917.65
5.5.140.0060.03817.72
5.5.130.0000.04617.75
5.5.120.0030.03817.64
5.5.110.0060.03417.43
5.5.100.0030.04617.48
5.5.90.0030.04017.55
5.5.80.0030.03717.31
5.5.70.0130.03917.64
5.5.60.0040.03917.27
5.5.50.0000.04617.59
5.5.40.0230.03217.30
5.5.30.0030.03817.59
5.5.20.0030.04317.62
5.5.10.0070.03317.29
5.5.00.0030.03917.48
5.4.450.0030.04319.43
5.4.440.0070.04319.43
5.4.430.0030.04019.47
5.4.420.0300.04319.41
5.4.410.0070.03619.29
5.4.400.0030.04319.26
5.4.390.0200.03919.41
5.4.380.0130.05619.46
5.4.370.0000.04619.09
5.4.360.0000.05819.19
5.4.350.0030.04119.09
5.4.340.0030.05219.43
5.4.320.0030.04319.43
5.4.310.0130.03219.14
5.4.300.0000.03919.12
5.4.290.0030.04219.16
5.4.280.0000.04819.29
5.4.270.0000.04219.16
5.4.260.0030.04319.15
5.4.250.0030.04019.08
5.4.240.0060.04219.11
5.4.230.0070.03319.11
5.4.220.0070.03819.13
5.4.210.0000.04519.36
5.4.200.0030.04019.08
5.4.190.0000.03919.14
5.4.180.0060.03419.40
5.4.170.0000.04419.07
5.4.160.0000.04519.17
5.4.150.0070.03419.35
5.4.140.0030.04116.68
5.4.130.0060.03216.98
5.4.120.0000.04516.98
5.4.110.0030.04116.91
5.4.100.0030.03517.00
5.4.90.0100.04016.67
5.4.80.0000.04216.80
5.4.70.0030.03317.02
5.4.60.0000.04016.98
5.4.50.0030.03616.89
5.4.40.0000.04116.80
5.4.30.0030.03516.65
5.4.20.0040.03516.96
5.4.10.0030.03516.85
5.4.00.0030.03816.16
5.3.290.0000.04515.28
5.3.280.0000.04315.28
5.3.270.0040.04615.28
5.3.260.0000.04515.28
5.3.250.0040.03915.28
5.3.240.0070.03115.28
5.3.230.0030.03615.28
5.3.220.0060.04515.28
5.3.210.0000.04115.28
5.3.200.0140.03415.28
5.3.190.0100.06115.28
5.3.180.0000.04215.28
5.3.170.0000.04815.28
5.3.160.0030.03915.28
5.3.150.0000.04415.28
5.3.140.0000.03915.28
5.3.130.0070.04415.28
5.3.120.0030.04515.28
5.3.110.0100.03315.28
5.3.100.0100.03415.28
5.3.90.0030.03815.28
5.3.80.0070.03215.28
5.3.70.0090.03115.28
5.3.60.0090.03015.28
5.3.50.0150.02715.28
5.3.40.0030.03515.28
5.3.30.0000.05115.28
5.3.20.0030.04415.28
5.3.10.0100.02915.28
5.3.00.0030.03715.28

preferences:
41.46 ms | 401 KiB | 5 Q