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.110.0040.00420.94
8.3.100.0080.00018.45
8.3.90.0090.00916.88
8.3.80.0030.00617.97
8.3.70.0090.00916.74
8.3.60.0080.00818.68
8.3.50.0050.01019.20
8.3.40.0040.01218.93
8.3.30.0070.00719.02
8.3.20.0050.00321.95
8.3.10.0040.00420.64
8.3.00.0120.00323.63
8.2.230.0090.00622.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0180.00016.63
8.2.180.0180.00416.61
8.2.170.0000.01522.96
8.2.160.0060.00920.45
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00720.35
8.2.120.0030.00626.35
8.2.110.0060.00322.28
8.2.100.0090.00318.03
8.2.90.0030.00619.34
8.2.80.0030.00517.97
8.2.70.0030.00517.75
8.2.60.0040.00418.03
8.2.50.0000.00818.22
8.2.40.0070.00020.59
8.2.30.0000.00719.39
8.2.20.0050.00318.23
8.2.10.0020.00518.16
8.2.00.0050.00218.18
8.1.290.0060.00318.88
8.1.280.0070.01425.92
8.1.270.0040.00423.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.90
8.1.230.0080.00417.70
8.1.220.0030.00517.74
8.1.210.0090.00018.77
8.1.200.0100.00017.36
8.1.190.0000.00817.23
8.1.180.0100.00018.10
8.1.170.0050.00318.66
8.1.160.0050.00218.86
8.1.150.0070.00018.85
8.1.140.0040.00419.06
8.1.130.0000.00718.99
8.1.120.0030.00517.61
8.1.110.0040.00417.54
8.1.100.0000.00717.65
8.1.90.0040.00417.63
8.1.80.0040.00417.52
8.1.70.0030.00517.57
8.1.60.0030.00617.65
8.1.50.0070.00017.67
8.1.40.0060.00317.71
8.1.30.0040.00417.85
8.1.20.0030.00617.86
8.1.10.0050.00317.78
8.1.00.0030.00717.70
8.0.300.0070.00018.77
8.0.290.0040.00417.00
8.0.280.0030.00318.48
8.0.270.0030.00317.30
8.0.260.0000.00617.00
8.0.250.0040.00417.13
8.0.240.0050.00317.15
8.0.230.0000.00717.08
8.0.220.0030.00417.00
8.0.210.0070.00017.09
8.0.200.0030.00317.14
8.0.190.0040.00417.14
8.0.180.0050.00316.97
8.0.170.0040.00416.98
8.0.160.0040.00417.08
8.0.150.0070.00016.98
8.0.140.0040.00416.92
8.0.130.0030.00313.53
8.0.120.0050.00517.04
8.0.110.0000.00817.07
8.0.100.0070.00016.98
8.0.90.0030.00516.95
8.0.80.0030.01617.07
8.0.70.0000.00717.11
8.0.60.0040.00417.10
8.0.50.0050.00316.90
8.0.30.0110.00817.21
8.0.20.0080.01117.43
8.0.10.0000.00817.20
8.0.00.0160.00316.94
7.4.330.0000.00516.75
7.4.320.0030.00316.84
7.4.300.0060.00016.78
7.4.290.0020.00516.84
7.4.280.0030.00616.73
7.4.270.0040.00416.69
7.4.260.0000.00716.81
7.4.250.0040.00416.84
7.4.240.0000.00716.85
7.4.230.0040.00416.64
7.4.220.0030.00616.56
7.4.210.0130.00716.79
7.4.200.0080.00016.88
7.4.160.0070.00916.74
7.4.150.0150.01317.40
7.4.140.0110.00817.86
7.4.130.0070.01016.57
7.4.120.0100.01216.77
7.4.110.0090.00816.63
7.4.100.0070.01516.78
7.4.90.0030.01416.67
7.4.80.0040.01219.39
7.4.70.0040.01316.86
7.4.60.0030.01316.63
7.4.50.0070.00716.73
7.4.40.0130.00316.63
7.4.30.0030.01516.71
7.4.10.0070.00715.21
7.4.00.0060.01115.13
7.3.330.0050.00013.36
7.3.320.0030.00313.38
7.3.310.0000.00716.57
7.3.300.0000.00716.47
7.3.290.0080.00716.37
7.3.280.0100.00616.44
7.3.270.0070.01017.40
7.3.260.0120.00516.70
7.3.250.0080.01016.50
7.3.240.0080.01116.61
7.3.230.0110.00716.56
7.3.210.0060.01016.59
7.3.200.0070.01016.82
7.3.190.0090.01216.62
7.3.180.0080.00816.44
7.3.170.0110.00716.59
7.3.160.0000.01616.76
7.3.130.0090.00915.15
7.3.120.0080.01115.14
7.3.110.0100.00715.18
7.3.100.0070.00915.24
7.3.90.0030.00914.90
7.3.80.0030.01115.24
7.3.70.0020.00814.84
7.3.60.0070.00715.01
7.3.50.0090.00515.03
7.3.40.0070.00715.06
7.3.30.0060.00614.92
7.3.20.0080.00616.93
7.3.10.0110.00616.68
7.3.00.0060.00916.57
7.2.330.0030.01616.75
7.2.320.0110.01116.86
7.2.310.0140.00416.88
7.2.300.0130.00516.89
7.2.290.0060.01017.00
7.2.260.0070.01015.21
7.2.250.0090.00915.37
7.2.240.0050.01115.09
7.2.230.0060.00815.30
7.2.220.0070.00915.28
7.2.210.0070.00715.24
7.2.200.0060.00715.28
7.2.190.0030.01115.28
7.2.180.0030.01015.29
7.2.170.0080.00515.32
7.2.160.0040.01214.92
7.2.150.0060.01016.99
7.2.140.0090.00317.07
7.2.130.0080.00717.14
7.2.120.0110.00716.97
7.2.110.0090.00916.89
7.2.100.0070.01216.99
7.2.90.0120.00316.79
7.2.80.0080.00917.02
7.2.70.0060.01017.08
7.2.60.0050.00816.96
7.2.50.0100.00316.87
7.2.40.0100.00616.88
7.2.30.0060.01217.05
7.2.20.0080.00817.05
7.2.10.0100.00317.03
7.2.00.0030.01117.97
7.1.330.0030.01015.96
7.1.320.0050.01216.11
7.1.310.0050.00716.12
7.1.300.0070.00716.14
7.1.290.0040.00916.08
7.1.280.0070.00515.84
7.1.270.0060.00516.07
7.1.260.0070.00515.94
7.1.250.0110.00615.88
7.1.240.0040.00915.90
7.1.230.0050.01015.93
7.1.220.0100.00415.74
7.1.210.0100.00815.80
7.1.200.0100.00715.91
7.1.190.0130.00515.79
7.1.180.0080.00815.67
7.1.170.0060.00615.88
7.1.160.0060.01115.87
7.1.150.0100.00615.84
7.1.140.0090.00515.91
7.1.130.0080.00515.89
7.1.120.0030.01016.79
7.1.110.0020.00916.68
7.1.100.0030.00816.69
7.1.90.0060.00716.65
7.1.80.0060.00816.79
7.1.70.0060.00716.34
7.1.60.0070.00922.23
7.1.50.0080.00922.22
7.1.40.0080.00822.04
7.1.30.0140.00522.20
7.1.20.0110.00522.27
7.1.10.0050.01016.29
7.1.00.0090.00516.29
7.0.330.0080.00815.48
7.0.320.0070.00715.58
7.0.310.0050.00515.70
7.0.300.0000.00915.61
7.0.290.0030.01015.61
7.0.280.0030.00615.47
7.0.270.0070.00715.32
7.0.260.0060.00615.49
7.0.250.0100.00315.68
7.0.240.0030.01315.59
7.0.230.0090.00615.61
7.0.220.0040.01115.56
7.0.210.0090.00615.58
7.0.200.0060.00315.55
7.0.190.0120.00615.59
7.0.180.0060.00615.46
7.0.170.0030.00915.47
7.0.160.0000.01715.30
7.0.150.0030.01215.58
7.0.140.0070.00715.53
7.0.130.0030.00615.79
7.0.120.0060.00615.41
7.0.110.0060.00615.73
7.0.100.0090.00615.66
7.0.90.0030.01015.77
7.0.80.0060.00915.71
7.0.70.0000.01215.55
7.0.60.0050.00515.67
7.0.50.0040.01115.70
7.0.40.0060.00613.56
7.0.30.0060.00913.73
7.0.20.0070.00713.48
7.0.10.0000.00913.61
7.0.00.0000.01113.60
5.6.400.0100.00314.56
5.6.390.0030.01614.33
5.6.380.0060.00814.55
5.6.370.0070.00714.52
5.6.360.0040.00814.66
5.6.350.0030.00914.57
5.6.340.0090.00314.37
5.6.330.0030.00614.57
5.6.320.0090.00314.38
5.6.310.0000.01314.46
5.6.300.0030.01414.68
5.6.290.0100.00714.34
5.6.280.0000.01014.58
5.6.270.0000.00914.57
5.6.260.0040.00814.85
5.6.250.0070.01014.17
5.6.240.0030.01214.75
5.6.230.0060.01314.50
5.6.220.0030.00714.64
5.6.210.0040.01114.31
5.6.200.0030.00614.36
5.6.190.0000.01314.57
5.6.180.0060.00314.50
5.6.170.0130.00014.75
5.6.160.0030.01014.20
5.6.150.0060.01014.52
5.6.140.0030.01114.30
5.6.130.0040.01214.44
5.6.120.0060.00914.46
5.6.110.0070.00714.52
5.6.100.0040.00714.34
5.6.90.0060.00314.29
5.6.80.0060.00914.15
5.6.70.0030.00714.16
5.6.60.0080.00414.42
5.6.50.0000.01214.53
5.6.40.0070.00714.34
5.6.30.0120.00314.39
5.6.20.0000.01314.38
5.6.10.0060.00914.27
5.6.00.0170.00014.05

preferences:
65.54 ms | 403 KiB | 5 Q