3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '[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('/\[([a-z_]+)\s*([^]]*)\]/', $string, $matches); $output = array_combine($matches[1], $matches[2]); $output = array_map(function ($v) { return trim($v, '"'); }, $output); print_r($output);

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.00617.95
8.4.120.0110.00920.77
8.4.110.0100.00818.82
8.4.100.0110.00717.99
8.4.90.0120.00820.77
8.4.80.0040.00518.83
8.4.70.0060.00320.68
8.4.60.0090.01020.72
8.4.50.0040.00518.72
8.4.40.0100.01019.43
8.4.30.0100.01017.86
8.4.20.0130.00620.54
8.4.10.0030.00620.47
8.3.260.0120.00716.88
8.3.250.0050.00319.12
8.3.240.0130.00616.70
8.3.230.0130.00716.81
8.3.220.0120.00318.82
8.3.210.0120.00618.56
8.3.200.0060.00316.53
8.3.190.0060.00318.73
8.3.180.0050.00418.83
8.3.170.0090.00917.28
8.3.160.0000.00818.67
8.3.150.0120.00316.73
8.3.140.0040.00416.85
8.3.130.0120.00616.73
8.3.120.0060.00318.92
8.3.110.0040.00420.94
8.3.100.0030.00616.74
8.3.90.0060.00926.77
8.3.80.0090.00018.30
8.3.70.0190.00316.88
8.3.60.0140.00718.33
8.3.50.0080.00817.28
8.3.40.0090.00618.77
8.3.30.0140.00018.76
8.3.20.0040.00421.85
8.3.10.0040.00420.75
8.3.00.0000.00817.59
8.2.290.0060.00417.04
8.2.280.0120.00718.23
8.2.270.0100.00716.84
8.2.260.0060.00317.32
8.2.250.0060.00316.73
8.2.240.0030.00718.86
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0000.00926.77
8.2.200.0090.00016.63
8.2.190.0120.00318.66
8.2.180.0140.00425.92
8.2.170.0090.00922.96
8.2.160.0070.00720.52
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0030.00618.21
8.2.120.0040.00426.16
8.2.110.0030.00622.28
8.2.100.0090.00319.77
8.2.90.0050.00317.88
8.2.80.0050.00318.96
8.2.70.0030.00617.88
8.2.60.0000.01017.68
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0060.00318.18
8.2.20.0000.00818.15
8.2.10.0040.00419.60
8.2.00.0000.00718.21
8.1.330.0110.00816.36
8.1.320.0080.00718.14
8.1.310.0090.00917.05
8.1.300.0150.00416.55
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0090.00023.72
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0040.00420.64
8.1.230.0080.00317.89
8.1.220.0040.00417.78
8.1.210.0090.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00917.34
8.1.180.0000.00918.10
8.1.170.0040.00418.76
8.1.160.0050.00518.95
8.1.150.0070.00318.97
8.1.140.0040.00419.04
8.1.130.0050.00217.66
8.1.120.0040.00417.64
8.1.110.0000.00717.66
8.1.100.0050.00217.64
8.1.90.0050.00317.50
8.1.80.0040.00417.61
8.1.70.0000.00717.64
8.1.60.0050.00317.80
8.1.50.0030.00717.64
8.1.40.0050.00317.62
8.1.30.0000.00817.71
8.1.20.0030.00617.75
8.1.10.0080.00017.63
8.1.00.0050.00217.67
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.43
8.0.270.0030.00316.91
8.0.260.0070.00016.98
8.0.250.0030.00317.01
8.0.240.0000.00817.08
8.0.230.0000.00816.93
8.0.220.0070.00016.97
8.0.210.0060.00016.99
8.0.200.0040.00417.02
8.0.190.0000.00717.10
8.0.180.0000.00817.11
8.0.170.0040.00417.08
8.0.160.0050.00317.08
8.0.150.0040.00416.97
8.0.140.0040.00416.93
8.0.130.0000.00513.49
8.0.120.0060.00316.86
8.0.110.0030.00516.93
8.0.100.0000.00716.94
8.0.90.0000.00717.04
8.0.80.0080.01017.01
8.0.70.0000.00716.84
8.0.60.0000.00717.08
8.0.50.0000.00716.83
8.0.30.0090.00917.24
8.0.20.0080.01317.37
8.0.10.0000.00717.07
8.0.00.0140.00816.74
7.4.330.0000.00415.55
7.4.320.0000.00616.65
7.4.300.0040.00416.79
7.4.290.0060.00316.73
7.4.280.0030.00516.71
7.4.270.0000.00716.75
7.4.260.0000.00816.81
7.4.250.0000.00716.83
7.4.240.0040.00416.86
7.4.230.0040.00416.90
7.4.220.0000.00816.72
7.4.210.0030.01216.71
7.4.200.0070.00016.71
7.4.160.0100.00716.73
7.4.140.0090.00917.86
7.4.130.0210.00016.71
7.4.120.0130.00616.58
7.4.110.0210.00416.54
7.4.100.0070.01116.73
7.4.90.0100.00716.74
7.4.80.0090.01219.39
7.4.70.0090.00916.55
7.4.60.0040.01116.84
7.4.50.0060.00916.32
7.4.40.0110.00716.56
7.4.00.0060.01015.30
7.3.330.0000.00513.41
7.3.320.0060.00013.19
7.3.310.0030.00316.32
7.3.300.0070.00016.35
7.3.290.0060.00316.41
7.3.280.0070.00716.38
7.3.260.0110.00916.54
7.3.230.0090.00916.70
7.3.210.0110.00916.69
7.3.200.0060.01616.80
7.3.190.0030.01716.69
7.3.180.0090.00916.72
7.3.170.0120.00916.66
7.3.160.0150.00616.52
7.3.120.0070.01014.85
7.3.110.0090.00914.81
7.3.100.0030.01314.91
7.3.90.0000.00914.96
7.3.80.0060.00614.93
7.3.70.0040.01115.16
7.3.60.0030.01314.91
7.3.50.0040.00815.02
7.3.40.0070.01115.00
7.3.30.0000.01815.09
7.3.20.0040.00716.53
7.3.10.0240.00715.60
7.3.00.0270.00915.76
7.2.330.0080.00816.81
7.2.320.0120.00616.74
7.2.310.0120.00616.83
7.2.300.0030.01316.67
7.2.290.0080.00916.95
7.2.240.0040.01514.92
7.2.230.0120.00315.10
7.2.220.0030.01315.12
7.2.210.0090.00614.81
7.2.200.0070.00714.93
7.2.190.0080.00415.20
7.2.180.0110.00715.10
7.2.170.0090.00615.28
7.2.160.0070.00715.29
7.2.150.0070.01017.04
7.2.140.0070.00416.95
7.2.130.0220.00815.93
7.2.120.0300.00615.91
7.2.110.0240.00416.11
7.2.100.0240.00416.04
7.2.90.0250.00416.23
7.2.80.0220.00915.92
7.2.70.0220.00516.08
7.2.60.0200.00715.99
7.2.50.0240.01016.16
7.2.40.0270.00316.04
7.2.30.0290.00516.06
7.2.20.0260.00516.24
7.2.10.0230.00315.98
7.2.00.0230.01016.23
7.1.330.0120.00616.00
7.1.320.0030.01015.91
7.1.310.0060.00615.76
7.1.300.0030.00615.68
7.1.290.0060.01016.11
7.1.280.0030.01415.70
7.1.270.0070.01015.89
7.1.260.0040.01115.87
7.1.250.0310.00314.96

preferences:
117.07 ms | 403 KiB | 5 Q