3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '`\[(msg|uri) "(.*?)"\]`mi'; $str = '[Wed Feb 06 08:57:54 2019] [error] [client 123.123.123.123] ModSecurity: Access denied with code 403 (phase 2). Operator EQ matched 0 at REQUEST_HEADERS. [file "/etc/httpd/modsecurity.d/activated_rules/modsecurity_crs_21_protocol_anomalies.conf"] [line "47"] [id "960015"] [rev "1"] [msg "Request Missing an Accept Header"] [severity "NOTICE"] [ver "OWASP_CRS/2.2.6"] [maturity "9"] [accuracy "9"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/MISSING_HEADER_ACCEPT"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "something.net"] [uri "/index.php/admin/"] [unique_id "XFsEAsDzZbMAAGY5i5oAAAAA"]'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result print_r($matches); foreach($matches as $match){ $expected[] = $match[2]; } print_r($expected); ?>

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.4.130.0120.00817.78
8.4.120.0120.00720.76
8.4.110.0140.00622.31
8.4.100.0050.00618.00
8.4.90.0120.00520.77
8.4.80.0100.00918.98
8.4.70.0120.00720.97
8.4.60.0140.00718.93
8.4.50.0030.00520.39
8.4.40.0100.00019.70
8.4.30.0160.00317.61
8.4.20.0050.00320.25
8.4.10.0060.00320.37
8.3.260.0130.00616.93
8.3.250.0100.00718.91
8.3.240.0070.01116.57
8.3.230.0070.00618.70
8.3.220.0110.00618.85
8.3.210.0090.00216.63
8.3.200.0050.00416.97
8.3.190.0140.00417.25
8.3.180.0110.00516.78
8.3.170.0000.01517.36
8.3.160.0070.01019.05
8.3.150.0030.00617.36
8.3.140.0030.00618.98
8.3.130.0060.00318.49
8.3.120.0060.00318.93
8.3.110.0090.00020.94
8.3.100.0090.00024.06
8.3.90.0040.01126.77
8.3.80.0030.00616.88
8.3.70.0120.00318.68
8.3.60.0120.00918.80
8.3.50.0080.00717.51
8.3.40.0110.00418.79
8.3.30.0140.00018.79
8.3.20.0070.00021.90
8.3.10.0080.00020.68
8.3.00.0000.00817.75
8.2.290.0080.01120.80
8.2.280.0090.01018.81
8.2.270.0090.00916.84
8.2.260.0040.00416.84
8.2.250.0120.00817.14
8.2.240.0080.00018.88
8.2.230.0070.00322.58
8.2.220.0030.00637.54
8.2.210.0070.00726.77
8.2.200.0090.00016.88
8.2.190.0060.01516.63
8.2.180.0140.00718.41
8.2.170.0110.00422.96
8.2.160.0070.01020.57
8.2.150.0000.00825.66
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0050.00319.35
8.2.110.0050.00522.26
8.2.100.0000.01217.97
8.2.90.0000.01018.00
8.2.80.0000.00918.86
8.2.70.0080.00017.75
8.2.60.0050.00317.75
8.2.50.0050.00317.75
8.2.40.0030.00619.47
8.2.30.0070.00019.26
8.2.20.0020.00518.26
8.2.10.0040.00419.53
8.2.00.0000.00818.02
8.1.330.0110.00721.89
8.1.320.0130.00516.41
8.1.310.0110.00718.59
8.1.300.0090.00620.14
8.1.290.0090.00018.88
8.1.280.0130.00725.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.01020.86
8.1.230.0070.00420.87
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0050.00318.78
8.1.160.0040.00418.91
8.1.150.0000.00718.92
8.1.140.0030.00520.77
8.1.130.0070.00020.17
8.1.120.0080.00017.51
8.1.110.0000.00717.58
8.1.100.0050.00317.59
8.1.90.0080.00017.50
8.1.80.0040.00417.46
8.1.70.0030.00417.52
8.1.60.0030.00517.66
8.1.50.0090.00317.59
8.1.40.0000.01017.68
8.1.30.0030.00617.81
8.1.20.0030.00517.72
8.1.10.0030.00517.72
8.1.00.0000.00817.52
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0000.00718.46
8.0.270.0040.00416.91
8.0.260.0000.00818.38
8.0.250.0030.00316.96
8.0.240.0040.00417.06
8.0.230.0050.00317.12
8.0.220.0070.00016.92
8.0.210.0000.00817.03
8.0.200.0030.00317.12
8.0.190.0040.00416.99
8.0.180.0040.00416.89
8.0.170.0040.00417.04
8.0.160.0030.00617.07
8.0.150.0000.00717.03
8.0.140.0040.00416.92
8.0.130.0030.00313.57
8.0.120.0050.00317.04
8.0.110.0060.00317.02
8.0.100.0040.00417.00
8.0.90.0000.00716.95
8.0.80.0130.00317.06
8.0.70.0000.00716.93
8.0.60.0000.00816.94
8.0.50.0050.00316.98
8.0.30.0090.01017.19
8.0.20.0150.00517.29
8.0.10.0050.00217.12
8.0.00.0100.00916.89
7.4.330.0040.00015.55
7.4.320.0030.00316.68
7.4.300.0030.00316.61
7.4.290.0040.00416.76
7.4.280.0030.00516.56
7.4.270.0030.00316.77
7.4.260.0040.00416.62
7.4.250.0030.00516.63
7.4.240.0070.00016.82
7.4.230.0030.00316.48
7.4.220.0020.00516.89
7.4.210.0080.00716.75
7.4.200.0050.00216.82
7.4.160.0120.00616.66
7.4.140.0180.00817.86
7.4.130.0070.01016.78
7.4.120.0080.00916.74
7.4.110.0130.00316.60
7.4.100.0100.00716.77
7.4.90.0100.01016.73
7.4.80.0030.01319.39
7.4.70.0060.01116.62
7.4.60.0090.00616.46
7.4.50.0110.00716.42
7.4.40.0030.01616.82
7.4.00.0070.01014.72
7.3.330.0030.00313.35
7.3.320.0000.00513.38
7.3.310.0000.00816.42
7.3.300.0000.00716.51
7.3.290.0070.00016.26
7.3.280.0070.01016.43
7.3.260.0120.00716.60
7.3.240.0120.00616.63
7.3.230.0050.01116.68
7.3.210.0030.01316.77
7.3.200.0070.01016.70
7.3.190.0040.01816.81
7.3.180.0060.01616.45
7.3.170.0030.01316.66
7.3.160.0110.00516.42
7.3.10.0350.00714.98
7.3.00.0240.01215.02
7.2.330.0120.00616.77
7.2.320.0070.01016.79
7.2.310.0100.00616.80
7.2.300.0030.01316.75
7.2.290.0060.00916.87
7.2.130.0440.00614.95
7.2.120.0470.00715.21
7.2.110.0490.00415.41
7.2.100.0450.02115.28
7.2.90.0560.00715.33
7.2.80.0400.01015.15
7.2.70.0370.01415.15
7.2.60.0540.00015.20
7.2.50.0500.00615.39
7.2.40.0510.00615.12
7.2.30.0510.00415.19
7.2.20.0460.01215.24
7.2.10.0410.01415.07
7.2.00.0450.00715.29
7.1.250.0330.00714.27

preferences:
28.3 ms | 403 KiB | 5 Q