3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match_all('/(?J)(?<string>.*)1|(?<string>.*)2|(?<string>.*)3$/', "text2\npext3", $matches, PREG_SET_ORDER); var_dump($matches); preg_match_all('/(?J)(?<string>.*)1|(?<string>.*)2|(?<string>.*)3$/', "text2\npext3", $matches); var_dump($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.20.0100.01017.73
8.4.10.0030.00617.87
8.3.150.0120.00618.71
8.3.140.0000.00818.72
8.3.130.0040.00418.59
8.3.120.0170.00018.77
8.3.110.0100.00020.94
8.3.100.0090.00018.47
8.3.90.0090.00926.77
8.3.80.0030.00618.55
8.3.70.0150.00016.63
8.3.60.0070.01418.43
8.3.50.0120.01122.91
8.3.40.0060.00918.84
8.3.30.0090.00618.96
8.3.20.0080.00020.34
8.3.10.0040.00421.73
8.3.00.0090.00617.80
8.2.260.0090.00616.92
8.2.250.0030.00516.48
8.2.240.0060.00317.08
8.2.230.0080.00022.58
8.2.220.0030.01324.06
8.2.210.0080.00026.77
8.2.200.0140.00418.38
8.2.190.0090.00616.58
8.2.180.0040.01116.50
8.2.170.0070.00722.96
8.2.160.0140.00020.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00421.13
8.2.110.0060.00322.25
8.2.100.0090.00317.78
8.2.90.0040.00418.92
8.2.80.0000.00817.97
8.2.70.0000.00917.60
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00919.80
8.2.30.0040.00417.86
8.2.20.0060.00317.77
8.2.10.0040.00417.84
8.2.00.0070.00017.62
8.1.310.0150.00318.44
8.1.300.0070.01120.16
8.1.290.0040.00718.88
8.1.280.0150.00625.92
8.1.270.0050.00323.99
8.1.260.0090.00926.35
8.1.250.0040.00428.09
8.1.240.0070.00323.92
8.1.230.0080.00419.09
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.13
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0040.00422.03
8.1.150.0000.00818.86
8.1.140.0040.00417.46
8.1.130.0030.00317.71
8.1.120.0030.00517.39
8.1.110.0000.00817.47
8.1.100.0040.00417.30
8.1.90.0080.00017.39
8.1.80.0000.00717.50
8.1.70.0030.00517.48
8.1.60.0000.00817.63
8.1.50.0030.00517.45
8.1.40.0070.00017.44
8.1.30.0040.00417.71
8.1.20.0000.00917.60
8.1.10.0000.00817.57
8.1.00.0080.00017.55
8.0.300.0040.00418.77
8.0.290.0030.00617.05
8.0.280.0030.00318.41
8.0.270.0000.00717.12
8.0.260.0000.00717.21
8.0.250.0050.00217.00
8.0.240.0040.00416.97
8.0.230.0000.00716.94
8.0.220.0040.00416.94
8.0.210.0050.00316.83
8.0.200.0030.00316.97
8.0.190.0040.00417.02
8.0.180.0000.00716.93
8.0.170.0000.00816.96
8.0.160.0000.00716.98
8.0.150.0070.00016.83
8.0.140.0030.00516.76
8.0.130.0030.00313.31
8.0.120.0100.00016.80
8.0.110.0050.00216.81
8.0.100.0050.00216.90
8.0.90.0000.00716.89
8.0.80.0120.00816.91
8.0.70.0030.00516.71
8.0.60.0030.00516.94
8.0.50.0070.00016.71
8.0.30.0130.00917.19
8.0.20.0110.00917.40
8.0.10.0000.00817.07
8.0.00.0080.01216.93
7.4.330.0000.00715.07
7.4.320.0060.00016.59
7.4.300.0000.00616.50
7.4.290.0000.00716.69
7.4.280.0120.00016.68
7.4.270.0030.00316.57
7.4.260.0070.00016.66
7.4.250.0000.00816.60
7.4.240.0050.00216.72
7.4.230.0000.00716.67
7.4.220.0140.00316.71
7.4.210.0070.01416.63
7.4.200.0000.00816.77
7.4.160.0120.00616.55
7.4.150.0070.01417.40
7.4.140.0170.01517.86
7.4.130.0110.01116.53
7.4.120.0100.00816.48
7.4.110.0130.01016.45
7.4.100.0160.00916.78
7.4.90.0060.01616.69
7.4.80.0130.00719.39
7.4.70.0100.01416.42
7.4.60.0070.01016.62
7.4.50.0000.00816.48
7.4.40.0150.00716.54
7.4.30.0140.00316.67
7.4.00.0070.00614.96
7.3.330.0060.00013.04
7.3.320.0030.00313.03
7.3.310.0030.00316.17
7.3.300.0000.00716.30
7.3.290.0040.01216.30
7.3.280.0070.01116.29
7.3.270.0100.01017.40
7.3.260.0120.00716.38
7.3.250.0120.00816.32
7.3.240.0160.00316.34
7.3.230.0180.00016.50
7.3.210.0090.00916.60
7.3.200.0140.00719.39
7.3.190.0000.01616.54
7.3.180.0080.00816.32
7.3.170.0130.00316.30
7.3.160.0090.00916.56
7.2.330.0100.01016.52
7.2.320.0030.01516.39
7.2.310.0160.00816.55
7.2.300.0090.00916.60
7.2.290.0030.01516.68
7.2.60.0040.01116.95
7.2.10.0270.00918.08
7.2.00.0210.00918.57
7.1.200.0070.00715.63
7.1.130.0200.01216.95
7.1.120.0370.00317.06
7.1.110.0340.00915.76
7.1.100.0140.00617.35
7.1.90.0180.00715.96
7.1.80.0190.00616.17
7.1.70.0100.01116.18
7.1.60.0180.01426.45
7.1.50.0190.01524.95
7.1.40.0260.01032.65
7.1.30.0340.00732.99
7.1.20.0350.00332.91
7.1.10.1930.01014.97
7.1.00.0110.04018.73
7.0.270.0240.01016.63
7.0.260.0310.01216.09
7.0.250.0210.01515.86
7.0.240.0200.00915.79
7.0.230.0250.00415.80
7.0.220.0170.01016.09
7.0.210.0160.01014.92
7.0.200.0080.01015.91
7.0.190.0220.01314.84
7.0.180.0150.00914.59
7.0.170.0160.01014.46
7.0.160.0200.00714.56
7.0.150.0150.01114.59
7.0.140.0130.02518.38
7.0.130.0230.01214.71
7.0.120.0130.01614.66
7.0.110.0210.00814.68
7.0.100.0300.00414.53
7.0.90.0090.01914.57
7.0.80.0070.01814.73
7.0.70.0180.01514.79
7.0.60.0110.02417.18
7.0.50.0060.02916.31
7.0.40.0120.04417.53
7.0.30.0180.02517.67
7.0.20.0230.02217.32
7.0.10.0130.02417.45
7.0.00.0080.02917.54
5.6.300.0170.05320.72
5.6.290.0180.05020.72
5.6.280.0280.05220.87
5.6.270.0130.05620.77
5.6.260.0180.07420.75
5.6.250.0190.06520.72
5.6.240.0130.06120.93
5.6.230.0160.05920.74
5.6.220.0130.05920.72
5.6.210.0110.06020.78
5.6.200.0130.06919.46
5.6.190.0080.06320.69
5.6.180.0200.04820.63
5.6.170.0180.07220.66
5.6.160.0080.07320.56
5.6.150.0190.06419.54
5.6.140.0070.07319.48
5.6.130.0140.06219.41
5.6.120.0100.07120.80
5.6.110.0070.07120.92
5.6.100.0150.06520.95
5.6.90.0130.07220.88
5.6.80.0140.04520.38
5.6.70.0120.05220.09
5.6.60.0140.05420.30
5.6.50.0120.05320.07
5.6.40.0100.05720.26
5.6.30.0070.06220.25
5.6.20.0100.06120.18
5.6.10.0070.05820.07
5.6.00.0160.06820.14
5.5.380.0070.06217.40
5.5.370.0070.05617.42
5.5.360.0150.05617.39
5.5.350.0070.04818.95
5.5.340.0050.05417.90
5.5.330.0050.07119.08
5.5.320.0220.06919.09
5.5.310.0250.06219.03
5.5.300.0080.07217.97
5.5.290.0050.06117.87
5.5.280.0100.06819.42
5.5.270.0080.04819.23
5.5.260.0080.07419.34
5.5.250.0080.05919.19
5.5.240.0130.05418.75
5.5.230.0040.06317.37
5.5.220.0100.05517.34
5.5.210.0190.04217.37
5.5.200.0070.06617.33
5.5.190.0090.05617.41
5.5.180.0130.07117.23
5.5.160.0090.07117.31
5.5.150.0120.05217.32
5.5.140.0040.06017.12
5.5.130.0090.05417.32
5.5.120.0130.06917.28
5.5.110.0100.06217.27
5.5.100.0200.05917.00
5.5.90.0100.05017.00
5.5.80.0000.07217.21
5.5.70.0030.06316.93
5.5.60.0200.06717.29
5.5.50.0220.06317.21
5.5.40.0170.04717.12
5.5.30.0100.05116.98
5.5.20.0160.04817.21
5.5.10.0170.04617.14
5.5.00.0200.04317.04
5.4.450.0480.05519.43
5.4.440.0400.05819.37
5.4.430.0160.05019.17
5.4.420.0150.05219.47
5.4.410.0080.05518.98
5.4.400.0100.05118.82
5.4.390.0120.05518.73
5.4.380.0150.04818.72
5.4.370.0170.04818.82
5.4.360.0130.05218.96
5.4.350.0210.04918.80
5.4.340.0100.05518.79
5.4.320.0150.05318.75
5.4.310.0260.04118.89
5.4.300.0190.05718.84
5.4.290.0170.05318.78
5.4.280.0140.05818.84
5.4.270.0230.04318.79
5.4.260.0130.05218.65
5.4.250.0170.06018.80
5.4.240.0230.04818.83
5.4.230.0110.05618.71
5.4.220.0160.06418.84
5.4.210.0190.05518.88
5.4.200.0170.04717.68
5.4.190.0070.05718.73
5.4.180.0150.05118.79
5.4.170.0100.05318.71
5.4.160.0130.05918.74
5.4.150.0160.05218.83
5.4.140.0130.05216.38
5.4.130.0150.04616.26
5.4.120.0100.06216.31
5.4.110.0100.04916.40
5.4.100.0110.05216.29
5.4.90.0100.05116.38
5.4.80.0100.05016.41
5.4.70.0100.05216.37
5.4.60.0120.04816.23
5.4.50.0170.04316.29
5.4.40.0130.05016.36
5.4.30.0130.04716.33
5.4.20.0120.05216.24
5.4.10.0180.04316.24
5.4.00.0180.04315.76
5.3.290.0140.06514.79
5.3.280.0120.06314.65
5.3.270.0110.06614.66
5.3.260.0080.06814.72
5.3.250.0150.05014.63
5.3.240.0130.05014.63
5.3.230.0100.05614.56
5.3.220.0120.05114.63
5.3.210.0110.05314.66
5.3.200.0160.04914.51
5.3.190.0120.05114.69
5.3.180.0100.05414.61
5.3.170.0080.05914.54
5.3.160.0130.05614.63
5.3.150.0180.04414.58
5.3.140.0150.04714.68
5.3.130.0080.05514.55
5.3.120.0130.05214.58
5.3.110.0100.05614.50
5.3.100.0170.04513.91
5.3.90.0130.04914.07
5.3.80.0100.05014.09
5.3.70.0120.04813.99
5.3.60.0130.04713.95
5.3.50.0120.04813.93
5.3.40.0150.04513.84
5.3.30.0150.04514.02
5.3.20.0150.04913.77
5.3.10.0100.05013.67
5.3.00.0170.04813.62
5.2.170.0120.03711.14
5.2.160.0080.04011.09
5.2.150.0130.03911.28
5.2.140.0100.04211.27
5.2.130.0050.04411.17
5.2.120.0150.03811.18
5.2.110.0030.04611.16
5.2.100.0130.03511.02
5.2.90.0130.04511.16
5.2.80.0050.04611.13
5.2.70.0100.04111.08
5.2.60.0100.04211.07
5.2.50.0080.04311.13
5.2.40.0130.04011.10
5.2.30.0130.03511.01
5.2.20.0170.03910.92
5.2.10.0080.03710.96
5.2.00.0050.04210.79
5.1.60.0080.03410.10
5.1.50.0100.03210.03
5.1.40.0030.03710.05
5.1.30.0100.03610.47
5.1.20.0080.03610.52
5.1.10.0070.0359.99
5.1.00.0110.03110.13
5.0.50.0050.0328.92
5.0.40.0080.0248.85
5.0.30.0070.0398.79
5.0.20.0020.0288.76
5.0.10.0080.0248.72
5.0.00.0070.0398.69
4.4.90.0090.0177.59
4.4.80.0050.0197.59
4.4.70.0070.0197.55
4.4.60.0080.0187.55
4.4.50.0050.0217.53
4.4.40.0020.0367.54
4.4.30.0060.0187.59
4.4.20.0100.0167.59
4.4.10.0080.0187.59
4.4.00.0060.0337.58
4.3.110.0030.0227.53
4.3.100.0020.0227.52
4.3.90.0030.0237.55
4.3.80.0050.0337.51
4.3.70.0050.0187.51
4.3.60.0050.0217.51
4.3.50.0080.0187.54
4.3.40.0070.0307.55
4.3.30.0020.0227.00
4.3.20.0030.0217.00
4.3.10.0020.0217.00
4.3.00.0070.0227.99

preferences:
73.96 ms | 403 KiB | 5 Q