3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/(?P<hostname>[\w\.]+) ' . '(?P<forwardedFor>(?:[\d\.]+, )*(?:[\d\.]+)|-) ' . '(?P<remoteHostname>[\d\.]+) ' . '(?P<remoteLogname>[^\s]+) ' . '(?P<remoteUsername>[^\s]+) ' . '\[' . '(?P<requestDate>[^\]]+)' . '\] ' . '"' . '(?P<method>\w+) ' . '(?P<uri>[^\s]+) ' . '(?<httpVersion>[^\"]+)' . '" ' . '(?P<responseStatus>\d+) ' . '(?P<responseSize>\d+)/'; $test = 'my.server.com 24.24.24.3, 1.2.3.4 1.2.3.5 - - [18/May/2016:02:57:25 -0400] "GET /veer/eye?params=1&are=2&right=3&here=4 HTTP/1.1" 200 146351'; $test2 = 'qa-test.test.com - 80.82.65.120 - - [18/May/2016:00:30:20 -0400] "GET // HTTP/1.1" 404 198'; preg_match($pattern, $test, $matches); print_r($matches); preg_match($pattern, $test2, $matches); print_r($matches);

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.0090.01217.83
8.4.120.0140.00523.91
8.4.110.0110.00922.57
8.4.100.0160.00418.09
8.4.90.0140.00718.60
8.4.80.0080.00818.00
8.4.70.0060.00617.80
8.4.60.0150.00618.87
8.4.50.0120.00919.72
8.4.40.0100.01019.73
8.4.30.0060.01017.84
8.4.20.0150.00617.83
8.4.10.0040.00717.81
8.3.260.0140.00516.44
8.3.250.0050.00318.63
8.3.240.0130.00717.18
8.3.230.0050.00416.54
8.3.220.0020.00616.95
8.3.210.0130.00416.69
8.3.200.0120.00516.91
8.3.190.0100.00817.06
8.3.180.0080.01116.71
8.3.170.0110.00717.14
8.3.160.0080.00616.79
8.3.150.0130.00618.98
8.3.140.0040.01116.62
8.3.130.0030.00618.43
8.3.120.0060.00318.87
8.3.110.0000.00820.94
8.3.100.0080.00024.06
8.3.90.0050.00326.77
8.3.80.0000.01517.97
8.3.70.0120.00918.43
8.3.60.0060.01218.55
8.3.50.0100.00922.05
8.3.40.0120.00618.93
8.3.30.0120.00318.90
8.3.20.0110.00719.09
8.3.10.0000.00721.80
8.3.00.0080.00021.01
8.2.290.0070.00820.41
8.2.280.0050.00618.43
8.2.270.0190.00016.61
8.2.260.0140.00420.73
8.2.250.0000.00816.77
8.2.240.0100.01017.14
8.2.230.0000.00922.58
8.2.220.0000.00837.54
8.2.210.0120.00626.77
8.2.200.0100.00018.54
8.2.190.0120.00616.88
8.2.180.0120.00318.18
8.2.170.0090.00622.96
8.2.160.0070.00718.94
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0070.00021.12
8.2.110.0040.00421.31
8.2.100.0080.00817.64
8.2.90.0040.00419.14
8.2.80.0000.00817.97
8.2.70.0000.01017.63
8.2.60.0000.01017.93
8.2.50.0040.00418.10
8.2.40.0000.00822.25
8.2.30.0040.00419.33
8.2.20.0000.01017.91
8.2.10.0060.00318.01
8.2.00.0000.00718.23
8.1.330.0130.00423.83
8.1.320.0070.00316.51
8.1.310.0050.00316.94
8.1.300.0140.00718.12
8.1.290.0070.00330.84
8.1.280.0040.01125.92
8.1.270.0030.00523.89
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00917.48
8.1.230.0040.00817.89
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0030.00717.60
8.1.190.0060.00317.47
8.1.180.0040.00418.10
8.1.170.0000.00818.75
8.1.160.0040.00418.99
8.1.150.0000.00818.89
8.1.140.0080.00019.62
8.1.130.0030.00617.58
8.1.120.0040.00417.54
8.1.110.0030.00717.52
8.1.100.0030.00717.56
8.1.90.0030.00517.62
8.1.80.0030.00417.56
8.1.70.0030.00517.64
8.1.60.0080.00017.66
8.1.50.0080.00017.68
8.1.40.0040.00417.57
8.1.30.0000.00917.80
8.1.20.0000.00817.69
8.1.10.0040.00417.71
8.1.00.0000.00817.64
8.0.300.0030.00718.77
8.0.290.0060.00317.00
8.0.280.0030.00318.40
8.0.270.0030.00317.01
8.0.260.0030.00317.36
8.0.250.0030.00317.03
8.0.240.0090.00016.94
8.0.230.0040.00417.08
8.0.220.0000.00817.05
8.0.210.0000.00716.93
8.0.200.0070.00017.09
8.0.190.0000.00816.93
8.0.180.0040.00416.93
8.0.170.0030.00517.03
8.0.160.0070.00016.99
8.0.150.0040.00316.84
8.0.140.0070.00017.03
8.0.130.0000.00613.45
8.0.120.0000.00817.00
8.0.110.0050.00216.86
8.0.100.0000.00716.90
8.0.90.0050.00217.01
8.0.80.0120.00617.07
8.0.70.0040.00417.13
8.0.60.0030.00316.98
8.0.50.0040.00417.00
8.0.30.0090.00817.29
8.0.20.0100.01017.40
8.0.10.0080.00017.02
8.0.00.0030.01316.73
7.4.330.0060.00015.08
7.4.320.0040.00416.79
7.4.300.0030.00316.79
7.4.290.0030.00316.64
7.4.280.0030.00616.79
7.4.270.0080.00016.74
7.4.260.0030.00316.72
7.4.250.0070.00016.75
7.4.240.0040.00416.70
7.4.230.0040.00416.80
7.4.220.0120.01316.81
7.4.210.0070.00716.66
7.4.200.0030.00616.89
7.4.160.0110.00516.57
7.4.150.0000.01717.40
7.4.140.0120.00617.86
7.4.130.0150.00516.56
7.4.120.0080.00916.52
7.4.110.0110.01416.63
7.4.100.0130.00416.96
7.4.90.0140.00716.79
7.4.80.0090.00919.39
7.4.70.0120.00616.66
7.4.60.0090.00916.75
7.4.50.0120.00616.54
7.4.40.0070.01016.59
7.4.30.0130.00316.53
7.4.00.0070.01115.18
7.3.330.0000.00713.15
7.3.320.0050.00013.15
7.3.310.0040.00416.38
7.3.300.0050.00216.16
7.3.290.0100.00616.37
7.3.280.0060.01016.33
7.3.270.0000.01717.40
7.3.260.0110.00616.44
7.3.250.0080.00916.51
7.3.240.0110.01016.39
7.3.230.0140.00316.69
7.3.210.0070.01016.33
7.3.200.0170.00316.57
7.3.190.0060.00916.30
7.3.180.0080.00816.29
7.3.170.0110.01116.33
7.3.160.0130.00316.31
7.3.120.0030.01615.09
7.3.110.0070.00714.84
7.3.100.0130.00314.70
7.3.90.0060.00315.02
7.3.80.0060.01015.17
7.3.70.0000.01414.80
7.3.60.0080.00614.77
7.3.50.0100.00714.86
7.3.40.0060.00614.92
7.3.30.0070.00714.92
7.3.20.0030.01016.77
7.3.10.0060.00716.50
7.3.00.0080.00416.73
7.2.330.0130.00316.49
7.2.320.0090.01316.69
7.2.310.0130.01016.62
7.2.300.0170.00716.60
7.2.290.0070.01016.59
7.2.250.0070.01115.26
7.2.240.0070.01015.16
7.2.230.0050.00514.95
7.2.220.0040.01114.77
7.2.210.0070.01014.97
7.2.200.0000.01315.05
7.2.190.0090.00615.04
7.2.180.0130.00314.89
7.2.170.0090.00314.99
7.2.130.0120.00216.82
7.2.120.0050.00516.81
7.2.110.0060.00916.52
7.2.100.0030.01016.54
7.2.90.0090.00616.92
7.2.80.0100.00616.95
7.2.70.0040.01016.66
7.2.60.0110.00616.85
7.2.50.0050.00716.76
7.2.40.0080.00616.85
7.2.30.0070.00616.86
7.2.20.0060.00716.75
7.2.10.0100.00516.74
7.2.00.0040.01117.83
7.1.330.0040.01416.02
7.1.320.0030.01316.03
7.1.310.0060.00615.92
7.1.300.0040.01115.87
7.1.290.0040.01115.97
7.1.280.0000.01315.84
7.1.270.0070.00715.92
7.1.260.0030.01015.65
7.1.250.0070.00715.88
7.1.100.0030.01018.48
7.1.70.0000.00817.12
7.1.60.0060.01919.47
7.1.00.0030.07722.40
7.0.200.0030.00517.04
7.0.70.0970.07020.10
7.0.60.1030.06320.05
7.0.50.1170.06320.32
7.0.40.1400.05020.37
7.0.30.1070.05720.37
7.0.20.0870.06720.36
7.0.10.1170.05720.38
7.0.00.1000.07020.36
5.6.280.0070.06720.77
5.6.220.0730.05720.62
5.6.210.0730.06320.53
5.6.200.0970.05321.02
5.6.190.1170.05021.14
5.6.180.1000.05321.13
5.6.170.0770.06021.09
5.6.160.0800.06021.09
5.6.150.0900.08721.02
5.6.140.0730.05721.07
5.6.130.0770.06321.14
5.6.120.0230.07321.08
5.6.110.0530.05321.07
5.6.100.1070.06021.08
5.6.90.1070.05021.08
5.6.80.1000.05320.45
5.6.70.1170.06020.55
5.6.60.1530.07020.53
5.6.50.1130.06320.55
5.6.40.1300.06020.36
5.6.30.1200.07320.47
5.6.20.1730.07320.35
5.6.10.1200.05720.37
5.6.00.1270.05720.51
5.5.360.0970.06320.40
5.5.350.0930.05320.50
5.5.340.0900.05320.96
5.5.330.0900.05320.91
5.5.320.1000.08020.82
5.5.310.0830.06020.97
5.5.300.0900.05720.86
5.5.290.0700.07320.88
5.5.280.0030.06720.77
5.5.270.1070.05720.82
5.5.260.1030.06320.77
5.5.250.1100.06320.80
5.5.240.1270.06320.27
5.5.230.1070.06320.33
5.5.220.1100.06320.30
5.5.210.1300.06320.20
5.5.200.1070.06320.30
5.5.190.1200.05320.21
5.5.180.1070.06020.17
5.5.160.1070.07320.30
5.5.150.1300.06020.19
5.5.140.1300.05720.18
5.5.130.1300.05320.30
5.5.120.0930.06320.12
5.5.110.0970.05320.29
5.5.100.1100.05720.14
5.5.90.1500.06320.21
5.5.80.1530.05020.07
5.5.70.1130.05020.09
5.5.60.1030.06019.99
5.5.50.1470.05020.00
5.5.40.1800.06020.17
5.5.30.1570.06020.02
5.5.20.1330.06720.05
5.5.10.2070.07019.95
5.5.00.1370.05720.06

preferences:
30.2 ms | 403 KiB | 5 Q