3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Ala ma 2 koty, Adam ma 4 psy"; preg_match_all("/(?P&lt;kto&gt;[A-Z]\w+)\s\w+\s(?P&lt;ile&gt;\d+)/", $str, $matches); print $matches[0][0] . "\n"; print $matches[0][1] . "\n"; print $matches[1][0] . "\n"; print $matches[1][1] . "\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.60.0030.01518.68
8.3.50.0150.00822.10
8.3.40.0040.01118.90
8.3.30.0110.00319.10
8.3.20.0040.00420.34
8.3.10.0040.00421.82
8.3.00.0040.00419.12
8.2.180.0090.00618.29
8.2.170.0070.00722.96
8.2.160.0060.00620.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00419.54
8.2.110.0060.00620.52
8.2.100.0080.00417.97
8.2.90.0040.00418.09
8.2.80.0040.00419.27
8.2.70.0040.00417.93
8.2.60.0000.00817.93
8.2.50.0060.00618.10
8.2.40.0040.00420.52
8.2.30.0040.00419.50
8.2.20.0000.00817.69
8.2.10.0000.00818.04
8.2.00.0000.00717.68
8.1.280.0120.00325.92
8.1.270.0130.00619.00
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00722.51
8.1.230.0070.00422.75
8.1.220.0000.00817.74
8.1.210.0070.00418.77
8.1.200.0090.00017.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0000.00822.15
8.1.150.0000.00718.88
8.1.140.0000.00717.54
8.1.130.0000.00717.93
8.1.120.0070.00017.37
8.1.110.0040.00417.48
8.1.100.0020.00517.47
8.1.90.0030.00317.52
8.1.80.0070.00017.35
8.1.70.0070.00017.52
8.1.60.0000.00817.46
8.1.50.0030.00517.43
8.1.40.0030.00617.40
8.1.30.0060.00317.70
8.1.20.0080.00017.68
8.1.10.0000.00717.43
8.1.00.0040.00417.55
8.0.300.0000.00721.95
8.0.290.0050.00316.75
8.0.280.0030.00318.44
8.0.270.0000.00717.26
8.0.260.0060.00017.16
8.0.250.0070.00016.97
8.0.240.0050.00216.91
8.0.230.0030.00416.98
8.0.220.0070.00016.85
8.0.210.0070.00016.93
8.0.200.0030.00316.89
8.0.190.0070.00016.91
8.0.180.0040.00417.04
8.0.170.0030.00516.95
8.0.160.0040.00416.87
8.0.150.0060.00316.94
8.0.140.0040.00416.96
8.0.130.0000.00513.37
8.0.120.0080.00016.82
8.0.110.0000.00717.02
8.0.100.0040.00416.84
8.0.90.0070.00016.81
8.0.80.0030.01217.01
8.0.70.0040.00416.88
8.0.60.0020.00516.72
8.0.50.0040.00416.86
8.0.30.0100.01117.20
8.0.20.0060.01417.44
8.0.10.0000.00716.83
8.0.00.0070.01116.90
7.4.330.0000.00515.08
7.4.320.0040.00416.61
7.4.300.0000.00616.50
7.4.290.0000.00816.51
7.4.280.0050.00216.55
7.4.270.0030.00316.50
7.4.260.0000.00716.51
7.4.250.0000.00716.50
7.4.240.0020.00616.54
7.4.230.0000.00816.63
7.4.220.0040.01416.40
7.4.210.0110.00916.53
7.4.200.0040.00416.70
7.4.160.0080.00816.56
7.4.150.0150.00417.40
7.4.140.0120.00917.86
7.4.130.0100.01016.51
7.4.120.0090.00816.71
7.4.110.0090.00916.51
7.4.100.0140.00716.69
7.4.90.0170.00016.78
7.4.80.0150.00819.39
7.4.70.0030.01416.74
7.4.60.0160.00016.65
7.4.50.0000.00716.50
7.4.40.0060.01116.34
7.4.30.0130.00916.55
7.4.00.0080.01014.90
7.3.330.0000.00513.10
7.3.320.0000.00513.16
7.3.310.0000.00716.31
7.3.300.0060.00016.38
7.3.290.0080.00716.42
7.3.280.0080.00916.40
7.3.270.0090.00917.40
7.3.260.0080.00916.35
7.3.250.0100.00916.51
7.3.240.0100.00716.70
7.3.230.0050.01816.39
7.3.210.0170.00316.58
7.3.200.0110.00519.39
7.3.190.0030.01316.46
7.3.180.0080.00816.37
7.3.170.0040.01716.36
7.3.160.0000.01616.48
7.3.120.0100.00614.84
7.3.110.0140.00414.66
7.3.100.0070.01114.57
7.3.90.0060.00914.89
7.3.80.0060.00914.93
7.3.70.0070.00714.94
7.3.60.0090.00614.71
7.3.50.0040.01114.79
7.3.40.0060.00614.92
7.3.30.0090.00314.66
7.3.20.0070.00316.52
7.3.10.0070.00716.83
7.3.00.0030.01016.56
7.2.330.0120.00616.70
7.2.320.0070.01016.73
7.2.310.0030.01316.73
7.2.300.0070.01016.80
7.2.290.0070.01016.70
7.2.250.0060.01215.07
7.2.240.0060.01015.09
7.2.230.0100.00715.25
7.2.220.0000.01315.23
7.2.210.0030.01014.60
7.2.200.0130.00314.98
7.2.190.0040.01215.22
7.2.180.0090.00314.77
7.2.170.0060.01014.75
7.2.160.0070.00715.14
7.2.150.0070.01016.91
7.2.140.0070.00417.00
7.2.130.0070.00316.60
7.2.120.0070.00316.75
7.2.110.0030.00916.66
7.2.100.0100.00317.12
7.2.90.0070.01117.05
7.2.80.0060.00916.73
7.2.70.0000.01016.89
7.2.60.0050.01116.83
7.2.50.0080.00516.79
7.2.40.0070.01416.78
7.2.30.0090.00916.72
7.2.20.0100.00716.80
7.2.10.0030.01117.02
7.2.00.0040.00718.04
7.1.330.0060.00915.54
7.1.320.0030.01015.93
7.1.310.0100.00715.80
7.1.300.0100.00615.58
7.1.290.0060.00615.91
7.1.280.0000.00915.91
7.1.270.0080.00615.77
7.1.260.0060.00616.06
7.1.250.0090.00015.79
7.1.240.0090.00616.02
7.1.230.0040.00715.54
7.1.220.0030.01015.98
7.1.210.0000.01215.49
7.1.200.0030.01015.79
7.1.190.0070.01015.64
7.1.180.0090.00615.61
7.1.170.0000.01115.63
7.1.160.0070.00415.86
7.1.150.0150.00415.54
7.1.140.0030.01015.94
7.1.130.0070.00415.97
7.1.120.0000.01115.80
7.1.110.0080.00515.95
7.1.100.0020.01217.18
7.1.90.0000.01215.90
7.1.80.0030.01315.90
7.1.70.0060.00816.48
7.1.60.0070.01417.70
7.1.50.0150.01025.19
7.1.40.0030.01015.98
7.1.30.0000.00815.67
7.1.20.0100.00015.75
7.1.10.0040.01115.81
7.1.00.0070.03819.15
7.0.330.0110.00415.30
7.0.320.0070.00715.14
7.0.310.0000.01815.46
7.0.300.0090.00015.23
7.0.290.0070.00715.28
7.0.280.0110.00415.61
7.0.270.0030.00915.21
7.0.260.0130.00015.55
7.0.250.0110.00015.41
7.0.240.0070.00415.55
7.0.230.0030.00915.38
7.0.220.0030.00915.36
7.0.210.0040.00815.57
7.0.200.0030.01215.20
7.0.190.0060.01015.56
7.0.180.0030.01015.17
7.0.170.0000.00815.28
7.0.160.0070.00715.36
7.0.150.0060.00915.41
7.0.140.0100.03618.79
7.0.130.0000.01115.52
7.0.120.0130.00015.44
7.0.110.0080.00015.57
7.0.100.0030.01015.27
7.0.90.0000.01015.36
7.0.80.0060.00615.29
7.0.70.0120.00315.28
7.0.60.0090.01817.73
7.0.50.0050.04516.69
7.0.40.0000.03116.77
7.0.30.0150.03616.70
7.0.20.0150.03116.72
7.0.10.0070.03016.82
7.0.00.0050.02816.60
5.6.400.0030.00614.45
5.6.390.0040.00714.22
5.6.380.0030.01014.18
5.6.370.0070.01014.36
5.6.360.0130.00313.95
5.6.350.0060.01214.59
5.6.340.0030.01014.67
5.6.330.0030.00614.58
5.6.320.0050.00514.29
5.6.310.0060.00914.31
5.6.300.0030.01514.35
5.6.290.0060.00614.66
5.6.280.0060.00714.48
5.6.270.0080.00814.31
5.6.260.0080.00414.27
5.6.250.0030.00914.25
5.6.240.0030.00614.41
5.6.230.0030.01014.27
5.6.220.0120.00314.37
5.6.210.0020.05017.57
5.6.200.0030.02516.16
5.6.190.0070.04717.35
5.6.180.1760.02317.52
5.6.170.0180.04017.52
5.6.160.0070.04317.51
5.6.150.0070.04216.22
5.6.140.0070.02516.21
5.6.130.0060.02716.28
5.6.120.0030.03417.72
5.6.110.0070.04417.75
5.6.100.0020.04417.77
5.6.90.0100.04517.72
5.6.80.0100.04117.41
5.6.70.2270.02517.38
5.6.60.0060.00614.52
5.6.50.0000.01414.34
5.6.40.0100.00714.48
5.6.30.0000.01314.23
5.6.20.0060.00614.38
5.6.10.0030.01014.48
5.6.00.0140.00014.40
5.5.380.0030.00914.10
5.5.370.0120.00314.45
5.5.360.0030.00914.09
5.5.350.0200.03617.33
5.5.340.0100.04516.30
5.5.330.0070.04717.28
5.5.320.0120.02617.33
5.5.310.0130.04517.43
5.5.300.0080.02216.19
5.5.290.0030.02516.08
5.5.280.0160.03417.53
5.5.270.0030.02717.67
5.5.260.0130.03617.45
5.5.250.0050.04417.30
5.5.240.0190.03517.18
5.5.230.0030.00614.05
5.5.220.0060.00914.32
5.5.210.0000.01714.09
5.5.200.0070.01013.98
5.5.190.0030.01013.96
5.5.180.0090.00414.31
5.5.170.0090.00614.12
5.5.160.0030.01314.33
5.5.150.0030.00614.21
5.5.140.0030.01014.39
5.5.130.0030.01014.18
5.5.120.0000.01214.38
5.5.110.0030.00714.41
5.5.100.0130.00314.09
5.5.90.0070.00714.17
5.5.80.0060.00614.35
5.5.70.0070.00714.07
5.5.60.0070.00314.02
5.5.50.0060.00914.12
5.5.40.0080.00814.36
5.5.30.0070.00714.11
5.5.20.0060.01014.27
5.5.10.0040.00713.79
5.5.00.0100.00314.13
5.4.450.0150.04315.23
5.4.440.0150.02815.23
5.4.430.0120.04215.29
5.4.420.0130.03915.43
5.4.410.0050.03715.29
5.4.400.0110.02515.21
5.4.390.0460.03014.90
5.4.380.0400.03514.87
5.4.370.0120.04115.00
5.4.360.0120.04214.98
5.4.350.0150.03914.99
5.4.340.0220.03514.94
5.4.330.0030.01211.23
5.4.320.0120.03815.00
5.4.310.0110.03614.86
5.4.300.0100.02914.81
5.4.290.0080.03114.96
5.4.280.0180.02814.86
5.4.270.0130.03614.91
5.4.260.0200.03014.90
5.4.250.0120.04414.92
5.4.240.0120.04014.97
5.4.230.0140.02914.90
5.4.220.0120.04114.97
5.4.210.0110.03614.96
5.4.200.0170.03313.92
5.4.190.0080.04514.90
5.4.180.0150.03714.95
5.4.170.0120.04214.87
5.4.160.0130.03614.95
5.4.150.0180.03514.95
5.4.140.0140.03913.70
5.4.130.0180.03213.79
5.4.120.0150.03513.68
5.4.110.0190.03213.70
5.4.100.0080.03013.64
5.4.90.0070.03413.64
5.4.80.0080.03013.67
5.4.70.0120.02913.78
5.4.60.0080.03013.73
5.4.50.0120.03013.75
5.4.40.0170.03013.64
5.4.30.0090.03013.66
5.4.20.0080.03513.63
5.4.10.0120.02913.71
5.4.00.0160.03013.49
5.3.290.0270.05714.59
5.3.280.0200.06714.50
5.3.270.0200.07014.52
5.3.260.0430.05014.52
5.3.250.0270.05714.61
5.3.240.0230.07014.53
5.3.230.0230.06714.69
5.3.220.0200.07314.59
5.3.210.0270.06314.59
5.3.200.0270.04314.50
5.3.190.0330.05714.58
5.3.180.0300.06014.51
5.3.170.0300.04714.64
5.3.160.0200.06714.54
5.3.150.0330.05714.64
5.3.140.0170.05714.47
5.3.130.0130.07714.52
5.3.120.0330.06014.58
5.3.110.0200.07014.51
5.3.100.0170.06314.01
5.3.90.0170.05714.07
5.3.80.0170.05714.11
5.3.70.0270.05014.11
5.3.60.0270.06013.91
5.3.50.0130.05713.94
5.3.40.0130.05313.84
5.3.30.0170.07013.94
5.3.20.0130.06313.60
5.3.10.0170.05313.75
5.3.00.0130.06313.63
5.2.170.0230.04011.07
5.2.160.0170.04011.22
5.2.150.0130.05011.12
5.2.140.0170.04311.07
5.2.130.0130.04311.08
5.2.120.0100.04711.07
5.2.110.0100.05011.10
5.2.100.0270.03011.07
5.2.90.0200.03711.06
5.2.80.0070.05011.13
5.2.70.0200.04011.05
5.2.60.0130.04711.09
5.2.50.0130.05010.97
5.2.40.0130.04310.97
5.2.30.0200.03311.00
5.2.20.0200.03310.95
5.2.10.0100.05010.85
5.2.00.0100.05310.81
5.1.60.0230.03710.02
5.1.50.0130.04010.04
5.1.40.0300.0339.97
5.1.30.0200.04010.31
5.1.20.0130.04310.41
5.1.10.0030.05010.16
5.1.00.0170.04710.19
5.0.50.0100.0378.58
5.0.40.0100.0338.48
5.0.30.0000.0608.25
5.0.20.0170.0308.21
5.0.10.0000.0438.20
5.0.00.0170.0438.15
4.4.90.0000.0305.91
4.4.80.0100.0175.89
4.4.70.0070.0235.85
4.4.60.0030.0235.90
4.4.50.0070.0235.91
4.4.40.0030.0405.89
4.4.30.0070.0205.81
4.4.20.0070.0205.95
4.4.10.0100.0205.93
4.4.00.0030.0375.91
4.3.110.0130.0175.76
4.3.100.0000.0275.80
4.3.90.0070.0205.77
4.3.80.0000.0405.79
4.3.70.0070.0205.86
4.3.60.0030.0235.79
4.3.50.0070.0235.90
4.3.40.0130.0335.77
4.3.30.0030.0234.61
4.3.20.0000.0274.65
4.3.10.0000.0274.52
4.3.00.0030.0239.15

preferences:
70.45 ms | 401 KiB | 5 Q