3v4l.org

run code in 300+ PHP versions simultaneously
<?php function newGetTranslationFilesPattern($langcode = NULL) { // The file name matches: drupal-[release version].[language code].po // When provided the $langcode is use as language code. If not provided all // language codes will match. return '!drupal-[0-9a-z\.-]+' . (!empty($langcode) ? '\.' . preg_quote($langcode, '!') : '') . '\.po$!'; } function oldGetTranslationFilesPattern($langcode = NULL) { // The file name matches: drupal-[release version].[language code].po // When provided the $langcode is use as language code. If not provided all // language codes will match. return '!drupal-[0-9a-z\.-]+\.' . (!empty($langcode) ? preg_quote($langcode, '!') : '[^\.]+') . '\.po$!'; } print "pcre.jit = " . ini_get('pcre.jit') . "\n"; print "Old: " . preg_match(oldGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n"; print "New: " . preg_match(newGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n\n"; ini_set('pcre.jit', 0); print "pcre.jit = " . ini_get('pcre.jit') . "\n"; print "Old: " . preg_match(oldGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n"; print "New: " . preg_match(newGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n\n"; ini_set('pcre.jit', 1); print "pcre.jit = " . ini_get('pcre.jit') . "\n"; print "Old: " . preg_match(oldGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n"; print "New: " . preg_match(newGetTranslationFilesPattern(), 'drupal-8.0.0.de.po') . "\n\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.70.0130.00616.88
8.3.60.0130.01016.88
8.3.50.0130.00318.32
8.3.40.0110.00721.99
8.3.30.0150.00318.81
8.3.20.0090.00024.18
8.3.10.0160.00324.66
8.3.00.0000.00826.16
8.2.190.0140.00416.88
8.2.180.0210.00025.92
8.2.170.0090.00619.08
8.2.160.0110.00422.96
8.2.150.0050.00225.66
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0080.00026.35
8.2.110.0030.00622.23
8.2.100.0090.00317.72
8.2.90.0090.00017.75
8.2.80.0050.00318.73
8.2.70.0060.00317.63
8.2.60.0030.00617.75
8.2.50.0050.00318.05
8.2.40.0050.00519.88
8.2.30.0080.00018.04
8.2.20.0000.00718.01
8.2.10.0000.00819.29
8.2.00.0040.00419.30
8.1.280.0110.00725.92
8.1.270.0000.00823.99
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0080.00422.25
8.1.230.0090.00322.68
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0060.00317.48
8.1.190.0080.00017.48
8.1.180.0030.00618.10
8.1.170.0000.00818.77
8.1.160.0050.00218.89
8.1.150.0040.00418.96
8.1.140.0040.00420.48
8.1.130.0050.00220.21
8.1.120.0020.00517.61
8.1.110.0000.00817.57
8.1.100.0000.00817.48
8.1.90.0020.00517.59
8.1.80.0050.00317.63
8.1.70.0000.00717.63
8.1.60.0030.00617.54
8.1.50.0040.00417.66
8.1.40.0000.00817.65
8.1.30.0080.00017.83
8.1.20.0000.01017.79
8.1.10.0050.00217.60
8.1.00.0100.00017.62
8.0.300.0040.00420.59
8.0.290.0070.00017.00
8.0.280.0030.00318.45
8.0.270.0030.00318.13
8.0.260.0030.00318.63
8.0.250.0000.00717.09
8.0.240.0070.00016.93
8.0.230.0000.01017.09
8.0.220.0000.00716.95
8.0.210.0000.00716.99
8.0.200.0040.00416.98
8.0.190.0060.00317.11
8.0.180.0000.00717.08
8.0.170.0030.00716.91
8.0.160.0070.00017.07
8.0.150.0030.00516.90
8.0.140.0000.00916.99
8.0.130.0000.00613.38
8.0.120.0060.00316.96
8.0.110.0000.00716.91
8.0.100.0040.00417.00
8.0.90.0000.00816.82
8.0.80.0120.00716.98
8.0.70.0020.00516.92
8.0.60.0000.00816.81
8.0.50.0000.00817.00
8.0.30.0120.00617.26
8.0.20.0140.00617.10
8.0.10.0000.01017.22
8.0.00.0090.01016.82
7.4.330.0050.00015.55
7.4.320.0000.00716.67
7.4.300.0030.00316.74
7.4.290.0040.00416.53
7.4.280.0050.00316.85
7.4.270.0000.00816.73
7.4.260.0060.00013.38
7.4.250.0040.00416.77
7.4.240.0070.00016.72
7.4.230.0030.00316.45
7.4.220.0030.00316.78
7.4.210.0040.01016.73
7.4.200.0000.00716.88
7.4.130.0150.00516.82
7.4.120.0070.01316.64
7.4.110.0120.00816.67
7.4.100.0130.00616.86
7.4.90.0110.00716.68
7.4.80.0130.00616.59
7.4.70.0160.00316.68
7.4.60.0070.01016.54
7.4.50.0150.00616.64
7.4.40.0030.01416.58
7.4.30.0070.01116.63
7.4.20.0100.00716.84
7.4.10.0110.00616.64
7.4.00.0070.01016.45
7.3.330.0030.00316.31
7.3.320.0030.00313.41
7.3.310.0000.00916.46
7.3.300.0030.00316.43
7.3.290.0110.00516.34
7.3.260.0120.00616.55
7.3.240.0100.00716.27
7.3.230.0100.01316.54
7.3.220.0150.00316.74
7.3.210.0030.01416.40
7.3.200.0140.00316.36
7.3.190.0060.01216.61
7.3.180.0130.00316.45
7.3.170.0080.00816.57
7.3.160.0110.01116.68
7.3.150.0090.00916.67
7.3.140.0030.01316.38
7.3.130.0100.00616.48
7.3.120.0040.01816.23
7.3.110.0070.01016.50
7.3.100.0090.00916.30
7.3.90.0080.00816.32
7.3.80.0140.00316.76
7.3.70.0070.01516.42
7.3.60.0180.00016.45
7.3.50.0140.00716.46
7.3.40.0090.01316.38
7.3.30.0070.01116.56
7.3.20.0100.01316.53
7.3.10.0110.01416.52
7.3.00.0110.00916.46
7.2.340.0070.01416.79
7.2.330.0110.00716.85
7.2.320.0070.01116.80
7.2.310.0180.00316.71
7.2.300.0090.00916.55
7.2.290.0060.01116.64
7.2.280.0120.00616.59
7.2.270.0180.00016.77
7.2.260.0130.01016.58
7.2.250.0110.00716.57
7.2.240.0150.00616.77
7.2.230.0120.00616.67
7.2.220.0090.00916.66
7.2.210.0150.00716.50
7.2.200.0120.00616.67
7.2.190.0130.00816.54
7.2.180.0090.01216.68
7.2.170.0090.01116.70
7.2.160.0120.00916.46
7.2.150.0060.01316.83
7.2.140.0120.00916.91
7.2.130.0130.01316.54
7.2.120.0040.01816.73
7.2.110.0090.01516.63
7.2.100.0160.00316.57
7.2.90.0140.00816.57
7.2.80.0110.01216.66
7.2.70.0110.00816.80
7.2.60.0130.01016.52
7.2.50.0100.01016.73
7.2.40.0050.01416.71
7.2.30.0100.01016.92
7.2.20.0100.01016.80
7.2.10.0200.00316.57
7.2.00.0060.01716.66
7.1.330.0210.00915.82
7.1.320.0260.00415.88
7.1.310.0190.01515.66
7.1.300.0210.01115.61
7.1.290.0200.01015.75
7.1.280.0270.00515.63
7.1.270.0200.01015.91
7.1.260.0210.00815.57
7.1.250.0240.00715.45
7.1.240.0370.01015.76
7.1.230.0170.01815.73
7.1.220.0170.01415.58
7.1.210.0250.01015.70
7.1.200.0210.01015.81
7.1.190.0190.01115.80
7.1.180.0180.01815.55
7.1.170.0250.00615.76
7.1.160.0230.01015.81
7.1.150.0530.00315.86
7.1.140.0310.00615.67
7.1.130.0300.00815.72
7.1.120.0200.01615.76
7.1.110.0250.00315.72
7.1.100.0250.00715.82
7.1.90.0200.01015.88
7.1.80.0200.01315.86
7.1.70.0170.01515.62
7.1.60.0230.00715.71
7.1.50.0600.00415.66
7.1.40.0230.01015.40
7.1.30.0300.00915.66
7.1.20.0260.00515.72
7.1.10.0230.01415.63
7.1.00.0250.01115.77
7.0.330.0380.00415.33
7.0.320.0180.01115.32
7.0.310.0220.00715.44
7.0.300.0250.00315.50
7.0.290.0230.00815.57
7.0.280.0230.00615.63
7.0.270.0240.00615.31
7.0.260.0240.00815.54
7.0.250.0230.00815.60
7.0.240.0240.00815.46
7.0.230.0180.01115.43
7.0.220.0190.01515.26
7.0.210.0200.00915.40
7.0.200.0190.01015.35
7.0.190.0170.01615.45
7.0.180.0250.00415.55
7.0.170.0260.00915.43
7.0.160.0250.00715.38
7.0.150.0240.00915.37
7.0.140.0210.01215.48
7.0.130.0260.00715.35
7.0.120.0160.01615.28
7.0.110.0400.00015.36
7.0.100.0230.01315.49
7.0.90.0250.00515.51
7.0.80.0180.01615.37
7.0.70.0150.01615.39
7.0.60.0150.00815.18
7.0.50.0110.01115.45
7.0.40.0110.01115.35
7.0.30.0330.00915.35
7.0.20.0270.00515.25
7.0.10.0250.00515.27
7.0.00.0260.00615.25
5.6.400.0140.01815.83
5.6.390.0160.01616.16
5.6.380.0270.00616.02
5.6.370.0170.01416.28
5.6.360.0170.01116.14
5.6.350.0210.01116.01
5.6.340.0200.01016.00
5.6.330.0240.00616.05
5.6.320.0210.01216.14
5.6.310.0290.00315.86
5.6.300.0160.02215.94
5.6.290.0260.00816.14
5.6.280.0180.01415.82
5.6.270.0240.01116.01
5.6.260.0230.01216.06
5.6.250.0270.00915.91
5.6.240.0310.00416.03
5.6.230.0220.01416.13
5.6.220.0230.00715.90
5.6.210.0150.00415.96
5.6.200.0060.01216.00
5.6.190.0080.01215.74
5.6.180.0070.01816.07
5.6.170.0260.01015.92
5.6.160.0150.01815.84
5.6.150.0250.00916.09
5.6.140.0240.00915.90
5.6.130.0240.01015.89
5.6.120.0180.01415.95
5.6.110.0290.00716.11
5.6.100.0180.01915.89
5.6.90.0220.01916.00
5.6.80.0190.01515.76
5.6.70.0140.01515.78
5.6.60.0320.00815.85
5.6.50.0240.01015.86
5.6.40.0250.01115.88
5.6.30.0230.01315.69
5.6.20.0220.01515.83
5.6.10.0270.01116.04
5.6.00.0320.00615.73
5.5.380.0210.01416.01
5.5.370.0240.01216.01
5.5.360.0190.01015.91
5.5.350.0080.02315.86
5.5.340.0200.01316.02
5.5.330.0230.00816.09
5.5.320.0210.01215.77
5.5.310.0340.00015.94
5.5.300.0210.01016.09
5.5.290.0170.01315.98
5.5.280.0210.01215.95
5.5.270.0190.01815.95
5.5.260.0230.01815.86
5.5.250.0250.01715.77
5.5.240.0280.01215.82
5.5.230.0190.02115.89
5.5.220.0300.00915.74
5.5.210.0190.01915.95
5.5.200.0310.00615.89
5.5.190.0230.01015.59
5.5.180.0320.01015.88
5.5.170.0180.01815.92
5.5.160.0200.01615.89
5.5.150.0170.02115.75
5.5.140.0270.00815.77
5.5.130.0200.01615.79
5.5.120.0280.00515.83
5.5.110.0180.01915.95
5.5.100.0280.00715.98
5.5.90.0120.02315.57
5.5.80.0250.01115.96
5.5.70.0240.00815.84
5.5.60.0170.01715.91
5.5.50.0160.01715.85
5.5.40.0170.01615.73
5.5.30.0230.01215.84
5.5.20.0250.01115.89
5.5.10.0180.02115.84
5.5.00.0160.02115.69
5.4.450.0190.00412.85
5.4.440.0170.00612.82
5.4.430.0100.02012.82
5.4.420.0220.00812.82
5.4.410.0120.00913.07
5.4.400.0150.01712.82
5.4.390.0190.01312.82
5.4.380.0200.01112.88
5.4.370.0150.01112.82
5.4.360.0210.00712.82
5.4.350.0210.00712.88
5.4.340.0190.01012.82
5.4.330.0230.00312.82
5.4.320.0170.01412.82
5.4.310.0180.00912.82
5.4.300.0140.01512.82
5.4.290.0130.01312.88
5.4.280.0190.00612.82
5.4.270.0140.01112.82
5.4.260.0150.01312.82
5.4.250.0230.00312.82
5.4.240.0180.01112.82
5.4.230.0150.01312.82
5.4.220.0150.01112.82
5.4.210.0150.00912.82
5.4.200.0190.01112.82
5.4.190.0200.00912.82
5.4.180.0210.00912.82
5.4.170.0160.01312.82
5.4.160.0190.01012.82
5.4.150.0170.01112.82
5.4.140.0160.01512.82
5.4.130.0180.01112.82
5.4.120.0190.01012.84
5.4.110.0190.00812.82
5.4.100.0190.00812.82
5.4.90.0160.00812.82
5.4.80.0120.01512.82
5.4.70.0190.00912.82
5.4.60.0130.02012.85
5.4.50.0160.00712.82
5.4.40.0150.01012.82
5.4.30.0180.00712.82
5.4.20.0210.00712.82
5.4.10.0190.00612.82
5.4.00.0100.01612.82
5.3.290.0230.00713.12
5.3.280.0260.00313.19
5.3.270.0210.00913.11
5.3.260.0130.01613.38
5.3.250.0160.01413.05
5.3.240.0180.01212.93
5.3.230.0270.00313.04
5.3.220.0220.00612.82
5.3.210.0160.01212.82
5.3.200.0170.01612.98
5.3.190.0210.00913.10
5.3.180.0150.01613.24
5.3.170.0150.01513.05
5.3.160.0220.00913.24
5.3.150.0100.01413.23
5.3.140.0180.00713.02
5.3.130.0210.00613.20
5.3.120.0240.00313.04
5.3.110.0180.01112.98
5.3.100.0170.00713.09
5.3.90.0180.00613.18
5.3.80.0130.01012.96
5.3.70.0090.01613.00
5.3.60.0130.01312.98
5.3.50.0130.01313.03
5.3.40.0240.00312.98
5.3.30.0200.00712.90
5.3.20.0100.01612.94
5.3.10.0160.01012.85
5.3.00.0200.00512.82
5.2.170.0220.00312.82
5.2.160.0080.01612.82
5.2.150.0100.01412.82
5.2.140.0180.00612.82
5.2.130.0110.01112.82
5.2.120.0180.00612.82
5.2.110.0150.01012.82
5.2.100.0210.00312.82
5.2.90.0140.01012.82
5.2.80.0180.00412.82
5.2.70.0120.00812.82
5.2.60.0190.01012.82
5.2.50.0200.00312.82
5.2.40.0040.01512.82
5.2.30.0100.01012.82
5.2.20.0210.00012.82
5.2.10.0140.00712.82
5.2.00.0090.01312.82
5.1.60.0220.00012.82
5.1.50.0140.00312.82
5.1.40.0150.00612.82
5.1.30.0160.00412.82
5.1.20.0150.00412.82
5.1.10.0100.01112.82
5.1.00.0090.00912.82
5.0.50.0080.00812.82
5.0.40.0040.01112.82
5.0.30.0060.00912.82
5.0.20.0170.00012.82
5.0.10.0060.01012.82
5.0.00.0080.00812.82
4.4.90.0110.00212.82
4.4.80.0070.00312.82
4.4.70.0100.00012.82
4.4.60.0040.00812.82
4.4.50.0140.00012.82
4.4.40.0040.00812.82
4.4.30.0070.00312.82
4.4.20.0120.00012.82
4.4.10.0100.00012.82
4.4.00.0050.00512.82
4.3.110.0050.00512.82
4.3.100.0050.00512.82
4.3.90.0000.01212.82
4.3.80.0030.00712.82
4.3.70.0100.00012.82
4.3.60.0070.00412.82
4.3.50.0080.00212.82
4.3.40.0090.00012.82
4.3.30.0090.00212.82
4.3.20.0060.00312.82
4.3.10.0070.00312.82
4.3.00.0000.00812.82

preferences:
19.82 ms | 401 KiB | 5 Q