3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$payload = file_get_contents('./csp-log.log'); $payload = "{\"csp-report\":{\"document-uri\":\"http://athleticssite.com/\", \"referrer\":\"\", \"violated-directive\":\"img-src\", \"effective-directive\":\"img-src\", \"original-policy\":\"default-src 'self' https://someurl.com; script-src 'self' 'unsafe-inline' https://use.typekit.com https://google-analytics.com https://ajax.googleapis.com https://js.hsforms.net https://ssl.google-analytics.com; img-src 'self' https://p.typekit.net https://ssl.google-analytics.com ; font-src https://use.typekit.com; report-uri /csp-violations-report-endpoint/;\", \"disposition\":\"report\", \"blocked-uri\":\"https://someurl.com/path/to/file/516.large.jpg?1530632190456\", \"status-code\":200, \"script-sample\":\"\"}} {\"csp-report\":{\"document-uri\":\"http://athleticssite.com/\", \"referrer\":\"\", \"violated-directive\":\"img-src\", \"effective-directive\":\"img-src\", \"original-policy\":\"default-src 'self' https://someurl.com; script-src 'self' 'unsafe-inline' https://use.typekit.com https://google-analytics.com https://ajax.googleapis.com https://js.hsforms.net https://ssl.google-analytics.com; img-src 'self' https://p.typekit.net https://ssl.google-analytics.com ; font-src https://use.typekit.com; report-uri /csp-violations-report-endpoint/;\", \"disposition\":\"report\", \"blocked-uri\":\"https://someurl.com/path/to/file/516.large.jpg?1530632190456\", \"status-code\":200, \"script-sample\":\"\"}}"; $matches = []; preg_match_all('/"blocked-uri":"(.*?)",/m', $payload, $matches); /* for($i = 0; $i < count($matches[1]); $i++) { echo $matches[1][$i] . "\n"; } */ foreach($matches as $match => $uri) { echo $uri[0] . "\n"; }

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.0040.01816.63
8.3.50.0140.00718.21
8.3.40.0070.00718.88
8.3.30.0070.00718.79
8.3.20.0040.00418.96
8.3.10.0050.00321.91
8.3.00.0040.00423.57
8.2.180.0070.01018.30
8.2.170.0110.00422.96
8.2.160.0100.00319.33
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00520.55
8.2.120.0040.00426.35
8.2.110.0060.00322.32
8.2.100.0080.00418.02
8.2.90.0040.00819.16
8.2.80.0000.00817.97
8.2.70.0060.00317.93
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0040.00419.33
8.2.30.0070.00319.43
8.2.20.0000.00718.17
8.2.10.0000.00818.25
8.2.00.0030.00319.42
8.1.280.0000.01525.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.61
8.1.230.0080.00319.13
8.1.220.0040.00417.76
8.1.210.0030.00518.77
8.1.200.0030.00617.61
8.1.190.0040.00417.48
8.1.180.0000.00918.10
8.1.170.0050.00318.97
8.1.160.0040.00418.95
8.1.150.0000.00718.95
8.1.140.0080.00017.76
8.1.130.0030.00318.98
8.1.120.0000.00817.57
8.1.110.0040.00417.63
8.1.100.0070.00017.53
8.1.90.0060.00617.54
8.1.80.0000.00717.68
8.1.70.0070.00017.57
8.1.60.0030.00617.79
8.1.50.0050.00317.53
8.1.40.0030.00517.56
8.1.30.0000.01117.86
8.1.20.0040.00417.69
8.1.10.0060.00317.78
8.1.00.0030.00517.69
8.0.300.0080.00018.77
8.0.290.0000.00717.00
8.0.280.0030.00518.48
8.0.270.0000.00717.30
8.0.260.0030.00617.42
8.0.250.0030.00317.17
8.0.240.0030.00317.11
8.0.230.0000.00717.11
8.0.220.0030.00316.97
8.0.210.0070.00017.07
8.0.200.0000.00617.02
8.0.190.0040.00317.07
8.0.180.0040.00417.12
8.0.170.0060.00317.07
8.0.160.0030.00517.07
8.0.150.0040.00716.90
8.0.140.0040.00416.92
8.0.130.0030.00313.49
8.0.120.0000.00717.00
8.0.110.0080.00016.90
8.0.100.0050.00216.86
8.0.90.0050.00317.09
8.0.80.0100.00617.07
8.0.70.0050.00217.05
8.0.60.0050.00317.06
8.0.50.0000.00817.12
8.0.30.0090.01017.34
8.0.20.0060.01217.53
8.0.10.0000.00717.06
8.0.00.0090.00916.79
7.4.330.0030.00315.55
7.4.320.0040.00416.85
7.4.300.0000.00616.76
7.4.290.0000.00716.86
7.4.280.0030.00516.73
7.4.270.0030.00716.80
7.4.260.0000.00716.80
7.4.250.0000.00716.81
7.4.240.0030.00516.85
7.4.230.0040.00416.88
7.4.220.0050.00316.85
7.4.210.0120.00316.78
7.4.200.0030.00316.93
7.4.160.0080.01016.78
7.4.140.0090.00917.86
7.4.130.0060.01216.92
7.4.120.0120.00516.71
7.4.110.0070.01016.53
7.4.100.0120.00916.63
7.4.90.0130.00616.61
7.4.80.0110.00819.39
7.4.70.0070.00916.79
7.4.60.0160.00616.67
7.4.50.0100.00616.69
7.4.40.0030.01516.84
7.4.00.0030.01315.15
7.3.330.0050.00013.37
7.3.320.0070.00013.42
7.3.310.0030.00316.45
7.3.300.0000.00716.44
7.3.290.0040.00416.45
7.3.280.0080.00816.41
7.3.260.0110.00716.58
7.3.240.0100.00916.62
7.3.230.0160.00316.89
7.3.210.0120.01216.83
7.3.200.0130.00316.56
7.3.190.0080.00816.88
7.3.180.0110.00516.69
7.3.170.0080.00816.60
7.3.160.0120.00616.62
7.2.330.0140.00716.68
7.2.320.0060.01017.08
7.2.310.0090.01316.75
7.2.300.0040.01516.84
7.2.290.0120.00616.80
7.2.70.0980.00315.43
7.2.60.0760.01015.18
7.2.50.0720.01615.22
7.2.40.0750.00915.04
7.2.30.0900.00715.04
7.2.20.0930.00715.05
7.2.10.0840.01414.83
7.2.00.0860.00315.01
7.1.200.0030.00615.97
7.1.170.0810.00314.16
7.1.160.0780.00613.64
7.1.150.0800.01314.16
7.1.140.0840.00713.99
7.1.130.0760.01214.31
7.1.120.0830.00314.06
7.1.110.0840.00713.93
7.1.100.0830.01214.09
7.1.90.1350.00614.07
7.1.80.1410.01013.92
7.1.70.1300.00714.23
7.1.60.1460.00631.88
7.1.50.1830.01332.00
7.1.40.1750.01632.13
7.1.30.2550.01331.77
7.1.20.1870.01032.18
7.1.10.1570.01013.65
7.1.00.1220.00314.09

preferences:
63.56 ms | 401 KiB | 5 Q