3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '({"title": "Latest Common Alerting Protocol Files", "link": "http://www.tsunami.gov/", "description": "Tsunami Warning Centers", "modified": "Tue Jul 18 01:08:31 UTC 2017", "generator": "http://www.tsunami.gov/", "items": [ { "capFile": "/events/PAAQ/2017/07/17/ot9dh6/2/WEAK51/PAAQCAP.xml" }, { "capFile": "/events/PAAQ/2017/12/08/p0mzdc/1/WEAK53/PAAQCAP.xml" }, { "capFile": "/events/PAAQ/2017/11/30/p09376/1/WEXX32/PAAQCAP.xml" }, { "capFile": "/events/PHEB/2017/11/19/17323002/5/WEPA40/PHEBCAP.xml" }, { "capFile": "/events/PHEB/2017/12/08/17342002/1/WEPA42/PHEBCAP.xml" }, { "capFile": "/events/PHEB/2017/12/08/17342002/1/WEHW42/PHEBCAP.xml" }, { "capFile": "/events/PHEB/2017/11/04/17308000/3/WEZS40/PHEBCAP.xml" }, { "capFile": "/events/PHEB/2017/12/08/17342003/2/WEZS42/PHEBCAP.xml" }, { "capFile": "/events/PHEB/2017/12/08/17342002/1/WEGM42/PHEBCAP.xml" }, { "capFile": "/events/PHEB/2017/12/09/17343000/1/WECA42/PHEBCAP.xml" }, { "capFile": "/events/PHEB/2017/11/30/17334001/1/WECA43/PHEBCAP.xml" }, ]})'; preg_match_all("/capFile\": \"(.*?)\"/", $data, $capFilePaths); //Extract cap location URL preg_match("/link\": \"(.*?)\"/", $data, $capLocationURL); // print_r($capFilePaths[1]); // echo $capLocationURL[1]; // if(filter_var($capLocationURL[1], FILTER_VALIDATE_URL)) { // echo 'Valid URL'; // } foreach ($capFilePaths[1] as $capRelativePath) { echo $capRelativePath; }

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.00618.18
8.3.50.0040.01119.88
8.3.40.0090.00618.82
8.3.30.0090.00618.98
8.3.20.0070.00022.08
8.3.10.0080.00020.73
8.3.00.0120.00321.72
8.2.180.0160.00916.75
8.2.170.0150.00322.96
8.2.160.0140.00320.44
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0030.00520.40
8.2.120.0050.00326.35
8.2.110.0070.00320.54
8.2.100.0030.00918.09
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0030.00517.98
8.2.60.0080.00017.93
8.2.50.0070.00018.10
8.2.40.0070.00020.55
8.2.30.0050.00419.38
8.2.20.0000.00818.08
8.2.10.0040.00418.04
8.2.00.0040.00418.19
8.1.280.0070.01525.92
8.1.270.0030.00522.27
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.44
8.1.230.0110.00017.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0000.00817.48
8.1.180.0000.00718.10
8.1.170.0030.00518.75
8.1.160.0000.00718.86
8.1.150.0030.00618.90
8.1.140.0040.00419.13
8.1.130.0030.00318.89
8.1.120.0000.00817.62
8.1.110.0080.00017.67
8.1.100.0030.00617.63
8.1.90.0030.00517.67
8.1.80.0070.00417.54
8.1.70.0000.00717.50
8.1.60.0040.00417.76
8.1.50.0080.00017.70
8.1.40.0020.00517.77
8.1.30.0030.00517.79
8.1.20.0040.00417.88
8.1.10.0030.00517.70
8.1.00.0060.00617.70
8.0.300.0000.00818.77
8.0.290.0000.00817.00
8.0.280.0000.00718.49
8.0.270.0070.00017.28
8.0.260.0070.00017.00
8.0.250.0040.00417.04
8.0.240.0040.00417.11
8.0.230.0000.00717.19
8.0.220.0030.00316.97
8.0.210.0000.00716.97
8.0.200.0000.00617.15
8.0.190.0000.00817.14
8.0.180.0080.00016.92
8.0.170.0040.00417.09
8.0.160.0050.00317.09
8.0.150.0000.00717.01
8.0.140.0000.00716.97
8.0.130.0050.00013.54
8.0.120.0100.00016.94
8.0.110.0000.00716.97
8.0.100.0040.00316.95
8.0.90.0030.00516.96
8.0.80.0090.00917.13
8.0.70.0050.00217.13
8.0.60.0050.00317.11
8.0.50.0000.00716.97
8.0.30.0070.01217.27
8.0.20.0110.00917.43
8.0.10.0040.00417.14
8.0.00.0120.00617.00
7.4.330.0000.00516.85
7.4.320.0000.00616.86
7.4.300.0030.00316.88
7.4.290.0070.00016.80
7.4.280.0030.00616.75
7.4.270.0030.00316.83
7.4.260.0050.00216.88
7.4.250.0030.00316.65
7.4.240.0070.00016.66
7.4.230.0000.00716.63
7.4.220.0090.00016.59
7.4.210.0040.01616.82
7.4.200.0040.00416.78
7.4.160.0100.00616.62
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0000.01616.67
7.4.120.0080.01316.68
7.4.110.0090.00916.74
7.4.100.0140.00516.91
7.4.90.0030.01316.77
7.4.80.0130.00419.39
7.4.70.0060.01216.71
7.4.60.0080.00816.56
7.4.50.0100.01016.76
7.4.40.0110.01516.76
7.4.30.0160.00616.89
7.4.10.0060.00614.91
7.4.00.0100.00415.03
7.3.330.0030.00313.39
7.3.320.0030.00313.47
7.3.310.0000.00716.45
7.3.300.0070.00016.39
7.3.290.0070.00716.46
7.3.280.0070.00816.42
7.3.270.0090.00917.40
7.3.260.0150.00216.62
7.3.250.0100.00816.59
7.3.240.0120.00816.73
7.3.230.0040.01316.58
7.3.210.0080.00916.72
7.3.200.0120.00316.52
7.3.190.0090.01216.73
7.3.180.0100.00816.65
7.3.170.0140.00716.75
7.3.160.0130.00316.77
7.3.130.0060.01015.04
7.3.120.0070.01015.14
7.3.110.0070.01015.03
7.3.100.0070.00815.16
7.3.90.0050.01215.03
7.3.80.0050.00814.72
7.3.70.0030.00814.85
7.3.60.0040.00915.01
7.3.50.0030.00914.92
7.3.40.0050.01114.85
7.3.30.0060.00515.11
7.3.20.0040.00716.77
7.3.10.0070.00616.78
7.3.00.0060.00616.74
7.2.330.0150.00316.89
7.2.320.0060.01216.86
7.2.310.0070.01116.80
7.2.300.0060.01016.82
7.2.290.0150.00316.74
7.2.260.0030.01615.19
7.2.250.0050.01115.31
7.2.240.0020.01115.05
7.2.230.0030.01115.31
7.2.220.0070.00615.09
7.2.210.0090.00315.11
7.2.200.0050.00915.25
7.2.190.0070.00915.26
7.2.180.0110.00515.31
7.2.170.0020.01015.04
7.2.160.0090.00415.39
7.2.150.0010.01016.96
7.2.140.0030.00817.06
7.2.130.0060.01017.08
7.2.120.0070.00717.06
7.2.110.0090.00817.11
7.2.100.0100.00617.07
7.2.90.0030.01017.19
7.2.80.0020.01117.10
7.2.70.0060.00717.10
7.2.60.0040.00917.04
7.2.50.0050.00617.22
7.2.40.0050.00517.13
7.2.30.0020.01117.11
7.2.20.0080.00717.04
7.2.10.0050.00817.16
7.2.00.0030.00817.66
7.1.330.0020.01016.19
7.1.320.0070.00615.80
7.1.310.0050.00915.90
7.1.300.0020.01315.94
7.1.290.0070.00815.92
7.1.280.0060.00615.99
7.1.270.0020.00715.86
7.1.260.0020.00915.95
7.1.250.0060.00815.95
7.1.240.0020.00916.12
7.1.230.0070.00815.99
7.1.220.0040.00715.86
7.1.210.0060.00315.94
7.1.200.0050.00715.94
7.1.190.0050.00615.84
7.1.180.0090.00415.86
7.1.170.0050.00616.01
7.1.160.0050.00616.07
7.1.150.0040.00915.89
7.1.140.0020.01015.93
7.1.130.0040.00715.98
7.1.120.0070.00416.62
7.1.110.0040.00616.48
7.1.100.0070.00416.44
7.1.90.0060.00616.47
7.1.80.0040.00816.53
7.1.70.0070.00616.22
7.1.60.0070.00720.90
7.1.50.0070.00920.69
7.1.40.0080.00620.61
7.1.30.0060.00720.68
7.1.20.0040.01020.57
7.1.10.0050.00616.03
7.1.00.0050.00716.19
7.0.330.0020.00815.60
7.0.320.0080.00915.52
7.0.310.0060.00315.58
7.0.300.0090.00215.49
7.0.290.0040.00415.64
7.0.280.0060.00815.61
7.0.270.0070.00315.50
7.0.260.0100.00315.62
7.0.250.0000.01215.59
7.0.240.0020.01115.42
7.0.230.0060.00815.57
7.0.220.0070.00615.79
7.0.210.0050.00615.57
7.0.200.0060.00515.54
7.0.190.0070.00715.47
7.0.180.0030.01015.35
7.0.170.0030.01115.57
7.0.160.0030.00915.30
7.0.150.0070.00815.66
7.0.140.0020.00815.72
7.0.130.0020.01315.62
7.0.120.0040.00615.70
7.0.110.0050.00715.77
7.0.100.0020.01015.59
7.0.90.0040.00715.55
7.0.80.0030.00815.60
7.0.70.0030.00815.68
7.0.60.0070.00715.60
7.0.50.0010.01215.53
7.0.40.0080.00613.68
7.0.30.0050.00613.43
7.0.20.0070.00213.41
7.0.10.0010.00713.71
7.0.00.0040.00613.59
5.6.400.0040.00714.59
5.6.390.0000.01214.71
5.6.380.0050.00814.53
5.6.370.0020.00714.56
5.6.360.0080.00514.43
5.6.350.0060.00614.52
5.6.340.0050.01114.69
5.6.330.0090.00214.53
5.6.320.0060.00314.20
5.6.310.0050.01014.50
5.6.300.0080.00514.41
5.6.290.0020.01314.56
5.6.280.0050.01014.23
5.6.270.0020.01114.54
5.6.260.0070.00614.39
5.6.250.0020.00914.33
5.6.240.0070.00414.53
5.6.230.0100.00314.37
5.6.220.0070.00714.51
5.6.210.0090.00514.41
5.6.200.0070.00814.48
5.6.190.0020.00914.48
5.6.180.0050.00514.50
5.6.170.0080.00614.44
5.6.160.0060.00514.53
5.6.150.0090.00514.18
5.6.140.0050.00914.38
5.6.130.0080.00514.35
5.6.120.0080.00314.25
5.6.110.0050.00414.37
5.6.100.0030.01014.54
5.6.90.0060.00414.23
5.6.80.0050.00914.13
5.6.70.0080.00614.33
5.6.60.0060.00814.24
5.6.50.0070.00614.39
5.6.40.0050.00514.18
5.6.30.0060.00614.27
5.6.20.0020.00814.36
5.6.10.0020.01014.39
5.6.00.0050.00814.36

preferences:
63.16 ms | 401 KiB | 5 Q