3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Data = " HTTP/1.1 200 OK Date: Mon, 17 Jun 2019 19:32:37 GMT Server: Apache/2.4.38 (Win32) OpenSSL/1.1.1a PHP/7.2.15 X-Powered-By: PHP/7.2.15 Set-Cookie: Avisistema=ihk9t1ms6r8i0u1j5t6jpjrqei; path=/; HttpOnly Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Set-Cookie: Avisistema=ihk9t1ms6r8i0u1j5t6jpjrqei; expires=Tue, 18-Jun-2019 03:32:37 GMT; Max-Age=28799; path=/; HttpOnly Set-Cookie: SageFirmeware=Avisistema.A.0.2015.01.10; expires=Tue, 18-Jun-2019 03:32:37 GMT; Max-Age=28799; path=/; HttpOnly Content-Length: 232 Content-Type: application/json Some-Garbage: test string"; echo preg_match('~^Content-Type: \K.+~m', $Data, $match) ? $match[0] : 'fail';

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.0030.00517.95
8.4.120.0120.00724.36
8.4.110.0120.00820.77
8.4.100.0120.00819.02
8.4.90.0110.00920.79
8.4.80.0040.00418.70
8.4.70.0110.00619.00
8.4.60.0110.00920.35
8.4.50.0080.00818.84
8.4.40.0030.00619.72
8.4.30.0130.00622.43
8.4.20.0030.00620.80
8.4.10.0090.00018.07
8.3.260.0150.00416.69
8.3.250.0090.00718.86
8.3.240.0140.00617.20
8.3.230.0080.01116.76
8.3.220.0070.01118.71
8.3.210.0120.00816.76
8.3.200.0120.00816.70
8.3.190.0120.00617.26
8.3.180.0070.00818.79
8.3.170.0110.00718.58
8.3.160.0110.00416.63
8.3.150.0110.00716.82
8.3.140.0000.00816.53
8.3.130.0050.00318.49
8.3.120.0040.00418.77
8.3.110.0060.00320.94
8.3.100.0100.00024.06
8.3.90.0120.00620.35
8.3.80.0030.00718.30
8.3.70.0110.00718.43
8.3.60.0100.00718.68
8.3.50.0100.00818.45
8.3.40.0150.00018.79
8.3.30.0070.00718.80
8.3.20.0040.00421.73
8.3.10.0080.00021.64
8.3.00.0080.00023.66
8.2.290.0100.00620.45
8.2.280.0030.00618.45
8.2.270.0100.01017.05
8.2.260.0060.00917.29
8.2.250.0070.01118.69
8.2.240.0070.01117.41
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0070.00726.77
8.2.200.0060.00318.42
8.2.190.0150.00616.58
8.2.180.0070.00716.88
8.2.170.0110.00722.96
8.2.160.0030.01019.46
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.19
8.2.110.0030.00622.20
8.2.100.0070.00417.97
8.2.90.0000.00818.03
8.2.80.0040.00418.03
8.2.70.0040.00417.93
8.2.60.0030.00618.22
8.2.50.0000.00818.10
8.2.40.0020.00520.46
8.2.30.0040.00419.22
8.2.20.0040.00418.15
8.2.10.0070.00019.12
8.2.00.0050.00219.14
8.1.330.0130.00622.02
8.1.320.0090.01116.41
8.1.310.0060.01318.43
8.1.300.0130.00618.50
8.1.290.0160.00018.88
8.1.280.0090.00625.92
8.1.270.0080.00023.96
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00623.83
8.1.230.0070.00321.03
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0110.00017.23
8.1.190.0030.00517.22
8.1.180.0080.00018.10
8.1.170.0000.00818.66
8.1.160.0040.00418.85
8.1.150.0040.00418.84
8.1.140.0040.00418.88
8.1.130.0030.00320.06
8.1.120.0030.00817.53
8.1.110.0020.00517.50
8.1.100.0030.00517.55
8.1.90.0050.00217.51
8.1.80.0000.00717.42
8.1.70.0000.00717.47
8.1.60.0030.00617.67
8.1.50.0000.00817.52
8.1.40.0030.00517.67
8.1.30.0060.00317.60
8.1.20.0030.00617.67
8.1.10.0050.00317.79
8.1.00.0070.00017.64
8.0.300.0030.00820.07
8.0.290.0060.00316.75
8.0.280.0070.00018.47
8.0.270.0000.00817.28
8.0.260.0030.00318.39
8.0.250.0030.00317.02
8.0.240.0030.00317.12
8.0.230.0040.00416.95
8.0.220.0030.00616.89
8.0.210.0000.00717.02
8.0.200.0000.00717.02
8.0.190.0040.00416.93
8.0.180.0000.00716.95
8.0.170.0030.00617.04
8.0.160.0030.00516.93
8.0.150.0030.00616.67
8.0.140.0050.00316.82
8.0.130.0000.00513.42
8.0.120.0080.00016.84
8.0.110.0040.00417.00
8.0.100.0000.00816.97
8.0.90.0040.00416.78
8.0.80.0100.00616.95
8.0.70.0000.00716.91
8.0.60.0040.00417.00
8.0.50.0000.00716.86
8.0.30.0080.01017.13
8.0.20.0130.00717.16
8.0.10.0050.00317.05
8.0.00.0050.01216.80
7.4.330.0000.00515.55
7.4.320.0030.00316.68
7.4.300.0030.00316.70
7.4.290.0000.00816.66
7.4.280.0050.00216.64
7.4.270.0050.00316.72
7.4.260.0050.00316.73
7.4.250.0000.00716.58
7.4.240.0000.00716.69
7.4.230.0000.00716.78
7.4.220.0000.00716.63
7.4.210.0040.01216.60
7.4.200.0040.00416.54
7.4.160.0130.00716.64
7.4.140.0160.00917.86
7.4.130.0180.00616.86
7.4.120.0150.00316.65
7.4.110.0110.00716.68
7.4.100.0130.00716.60
7.4.90.0060.01116.78
7.4.80.0190.00419.39
7.4.70.0070.01016.54
7.4.60.0090.00916.55
7.4.50.0130.00316.79
7.4.40.0000.02016.77
7.4.00.0070.01015.20
7.3.330.0030.00313.21
7.3.320.0030.00313.18
7.3.310.0000.00716.36
7.3.300.0030.00316.19
7.3.290.0060.00316.40
7.3.280.0080.01016.30
7.3.260.0080.01016.46
7.3.240.0080.01016.49
7.3.230.0090.00916.65
7.3.210.0100.00716.58
7.3.200.0120.00416.42
7.3.190.0110.00516.71
7.3.180.0070.01016.48
7.3.170.0070.00816.62
7.3.160.0050.01116.32
7.3.120.0070.01015.09
7.3.110.0040.01215.09
7.3.100.0070.00714.74
7.3.90.0110.00414.80
7.3.80.0000.01415.16
7.3.70.0070.01115.07
7.3.60.0060.00914.92
7.3.50.0110.00714.92
7.3.40.0080.00714.91
7.3.30.0070.00514.75
7.3.20.0160.00815.93
7.3.10.0070.01015.72
7.3.00.0080.00615.69
7.2.330.0070.01016.56
7.2.320.0140.00516.68
7.2.310.0150.00816.65
7.2.300.0100.01316.80
7.2.290.0180.00316.57
7.2.240.0100.00715.14
7.2.230.0140.00415.09
7.2.220.0000.01315.26
7.2.210.0090.00615.14
7.2.200.0080.01115.14
7.2.190.0010.01215.04
7.2.180.0070.00814.82
7.2.170.0120.00215.17
7.2.160.0080.00615.02
7.2.150.0110.00815.98
7.2.140.0140.00015.98
7.2.130.0090.00516.08
7.2.120.0060.01116.09
7.2.110.0080.00916.10
7.2.100.0130.00715.99
7.2.90.0120.00716.12
7.2.80.0090.00916.07
7.2.70.0100.00516.10
7.2.60.0110.00615.88
7.2.50.0150.00316.05
7.2.40.0510.00715.87
7.2.30.0090.00716.11
7.2.20.0100.00315.99
7.2.10.0080.01016.01
7.2.00.0100.00716.24
7.1.330.0100.00715.73
7.1.320.0120.00015.66
7.1.310.0100.00715.88
7.1.300.0080.00715.02
7.1.290.0110.00415.10
7.1.280.0070.00614.98
7.1.270.0100.00714.69
7.1.260.0070.00515.10
7.1.250.0070.01114.98

preferences:
150.26 ms | 403 KiB | 5 Q