3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "PDOConnectionFactoryDB7"; $upper = '[A-Z]'; $lower = '[a-z]'; $numeric = '[0-9]'; $regex = "(^{$upper}{$lower}+" /* <-- Connection and Factory */ . "|{$upper}+(?!{$upper})" /* <-- PDO and DB */ . "|{$numeric}+" /* <-- 7 */ .")$"; preg_match_all($regex, $str, $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.3.60.0070.00716.63
8.3.50.0150.00722.02
8.3.40.0090.00618.71
8.3.30.0140.00718.92
8.3.20.0080.00020.36
8.3.10.0080.00023.66
8.3.00.0030.00619.38
8.2.180.0090.00618.41
8.2.170.0080.00822.96
8.2.160.0070.01120.28
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0110.00726.16
8.2.120.0080.00022.14
8.2.110.0060.00322.11
8.2.100.0080.00317.78
8.2.90.0040.00419.27
8.2.80.0000.00818.04
8.2.70.0120.00317.23
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0000.00817.97
8.2.20.0040.00417.63
8.2.10.0000.00718.18
8.2.00.0080.00017.80
8.1.280.0070.01025.92
8.1.270.0060.00323.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00523.77
8.1.230.0110.00018.95
8.1.220.0000.00717.79
8.1.210.0040.00418.77
8.1.200.0070.00417.36
8.1.190.0090.00017.52
8.1.180.0050.00418.10
8.1.170.0000.00818.72
8.1.160.0000.00722.07
8.1.150.0030.00618.64
8.1.140.0000.00717.52
8.1.130.0080.00017.41
8.1.120.0000.00717.44
8.1.110.0040.00417.44
8.1.100.0040.00417.48
8.1.90.0040.00417.33
8.1.80.0050.00217.46
8.1.70.0000.00717.32
8.1.60.0000.00817.55
8.1.50.0090.00017.47
8.1.40.0000.00817.56
8.1.30.0030.00617.58
8.1.20.0040.00417.68
8.1.10.0000.00817.41
8.1.00.0050.00317.37
8.0.300.0000.00718.77
8.0.290.0030.00317.05
8.0.280.0000.00718.32
8.0.270.0030.00317.25
8.0.260.0030.00316.87
8.0.250.0030.00317.05
8.0.240.0090.00016.93
8.0.230.0040.00417.08
8.0.220.0070.00016.95
8.0.210.0080.00316.95
8.0.200.0000.00616.97
8.0.190.0030.00517.01
8.0.180.0030.00617.01
8.0.170.0000.00817.00
8.0.160.0070.00016.93
8.0.150.0050.00316.96
8.0.140.0000.00716.80
8.0.130.0000.00713.37
8.0.120.0040.00416.84
8.0.110.0030.00517.00
8.0.100.0040.00416.73
8.0.90.0070.00016.83
8.0.80.0090.01216.84
8.0.70.0040.00416.92
8.0.60.0000.00716.97
8.0.50.0050.00316.93
8.0.30.0100.01217.24
8.0.20.0040.01517.40
8.0.10.0080.00017.08
8.0.00.0060.01116.63
7.4.330.0020.00215.00
7.4.320.0000.00716.48
7.4.300.0030.00316.51
7.4.290.0070.00016.41
7.4.280.0000.00816.46
7.4.270.0070.00016.53
7.4.260.0030.00316.48
7.4.250.0030.00316.46
7.4.240.0000.00716.51
7.4.230.0000.00716.56
7.4.220.0100.00716.34
7.4.210.0100.00416.54
7.4.200.0050.00316.46
7.4.190.0040.00416.60
7.4.160.0120.00416.42
7.4.150.0000.01517.40
7.4.140.0110.00717.86
7.4.130.0090.00816.59
7.4.120.0050.01116.39
7.4.110.0090.00916.51
7.4.100.0080.00816.40
7.4.90.0140.00616.62
7.4.80.0100.00719.39
7.4.70.0040.01216.41
7.4.60.0040.01416.43
7.4.50.0050.00316.46
7.4.40.0060.01022.77
7.4.30.0130.01016.66
7.4.00.0090.00915.00
7.3.330.0030.00313.16
7.3.320.0020.00213.05
7.3.310.0000.00716.14
7.3.300.0030.00316.36
7.3.290.0070.00716.27
7.3.280.0090.00616.29
7.3.270.0060.01017.40
7.3.260.0080.00816.39
7.3.250.0140.00316.30
7.3.240.0140.00816.66
7.3.230.0030.01416.39
7.3.210.0150.00716.43
7.3.200.0070.01019.39
7.3.190.0120.00616.54
7.3.180.0090.00616.58
7.3.170.0030.01316.45
7.3.160.0130.00316.36
7.3.120.0090.00814.78
7.3.110.0140.00314.61
7.3.100.0100.01014.75
7.3.90.0070.01014.85
7.3.80.0060.01214.49
7.3.70.0090.00314.89
7.3.60.0030.01114.88
7.3.50.0100.00014.80
7.3.40.0050.00514.92
7.3.30.0090.00614.61
7.3.20.0100.00616.77
7.3.10.0120.00216.57
7.3.00.0070.00616.70
7.2.330.0120.00616.70
7.2.320.0110.00516.23
7.2.310.0040.01316.73
7.2.300.0140.00316.79
7.2.290.0060.01016.23
7.2.250.0030.01414.54
7.2.240.0000.01914.89
7.2.230.0060.01314.55
7.2.220.0060.01014.76
7.2.210.0030.01214.55
7.2.200.0040.00414.91
7.2.190.0030.01314.90
7.2.180.0030.01015.12
7.2.170.0030.01014.84
7.2.130.0030.00916.77
7.2.120.0080.00016.53
7.2.110.0030.00716.84
7.2.100.0080.00316.80
7.2.90.0090.00616.77
7.2.80.0000.01416.78
7.2.70.0060.00316.91
7.2.60.0060.00416.76
7.2.50.0040.00417.02
7.2.40.0100.00316.71
7.2.30.0070.00316.80
7.2.20.0060.00916.87
7.2.10.0030.01216.82
7.2.00.0070.00618.00
7.1.330.0070.01015.77
7.1.320.0000.01315.56
7.1.310.0090.00615.68
7.1.300.0040.01115.68
7.1.290.0100.00315.72
7.1.280.0030.00915.89
7.1.270.0140.00015.94
7.1.260.0100.00615.73
7.1.250.0120.00015.84
7.1.200.0000.01215.83
7.1.100.0040.00718.27
7.1.70.0120.00317.21
7.1.60.0140.01119.33
7.1.50.0070.01516.76
7.1.00.0070.07322.45
7.0.200.0100.01016.71
7.0.140.0100.06722.00
7.0.60.0100.08319.93
7.0.50.0130.03317.80
7.0.40.0030.05020.03
7.0.30.0200.04020.34
7.0.20.0100.04320.17
7.0.10.0070.08020.00
7.0.00.0070.04320.18
5.6.280.0070.07021.11
5.6.210.0030.05720.53
5.6.200.0100.04018.12
5.6.190.0170.06320.43
5.6.180.0400.05720.35
5.6.170.0330.03320.48
5.6.160.0030.08720.41
5.6.150.0130.06318.14
5.6.140.0030.07018.11
5.6.130.0030.04318.12
5.6.120.0030.04320.98
5.6.110.0100.06320.88
5.6.100.0130.03021.00
5.6.90.0030.04021.13
5.6.80.0130.04320.48
5.5.350.3100.03720.33
5.5.340.0070.08017.98
5.5.330.0000.08020.44
5.5.320.0230.06020.29
5.5.310.0300.07320.20
5.5.300.0130.07018.00
5.5.290.0070.07717.91
5.5.280.0000.04320.79
5.5.270.0030.04320.67
5.5.260.0070.04020.79
5.5.250.0270.06320.68
5.5.240.0070.07020.21
5.4.450.0270.07019.39
5.4.440.0200.04719.25
5.4.430.0200.03719.41
5.4.420.0230.07319.41
5.4.410.0230.04019.28
5.4.400.0230.06319.09
5.4.390.0230.05718.91
5.4.380.0170.04018.91
5.4.370.0270.07019.08
5.4.360.0200.03719.13
5.4.350.0170.04019.09
5.4.340.0270.03718.88
5.4.320.0170.03718.89
5.4.310.0170.03719.08
5.4.300.0230.03019.13
5.4.290.0230.03019.10
5.4.280.0230.03719.13
5.4.270.0270.03719.06
5.4.260.0200.04319.09
5.4.250.0170.04018.80
5.4.240.0270.04019.12
5.4.230.0170.03718.91
5.4.220.0200.03319.07
5.4.210.0200.03319.05
5.4.200.0200.03719.05
5.4.190.0130.04019.08
5.4.180.0170.04018.77
5.4.170.0300.02719.09
5.4.160.0270.02719.13
5.4.150.0230.03319.05
5.4.140.0130.04016.37
5.4.130.0170.03716.25
5.4.120.0230.03016.21
5.4.110.0130.03716.18
5.4.100.0270.02316.39
5.4.90.0130.03716.21
5.4.80.0170.03316.39
5.4.70.0200.03016.38
5.4.60.0230.03016.04
5.4.50.0100.04016.45
5.4.40.0130.04316.28
5.4.30.0130.03716.20
5.4.20.0130.03716.16
5.4.10.0170.03316.18
5.4.00.0330.03015.78
5.3.290.0100.04014.61
5.3.280.0370.03014.50
5.3.270.0130.03714.55
5.3.260.0200.04314.44
5.3.250.0200.04314.55
5.3.240.0200.03714.44
5.3.230.0200.03314.43
5.3.220.0200.03314.44
5.3.210.0270.03714.55
5.3.200.0170.05014.40
5.3.190.0230.03714.55
5.3.180.0230.03014.40
5.3.170.0200.07714.66
5.3.160.0230.07714.65
5.3.150.0170.03714.39
5.3.140.0130.03714.41
5.3.130.0170.04714.64
5.3.120.0230.04314.45
5.3.110.0270.06014.39
5.3.100.0330.06013.94
5.3.90.0130.04313.89
5.3.80.0170.05713.96
5.3.70.0170.04013.92
5.3.60.0200.03713.86
5.3.50.0230.03013.89
5.3.40.0270.06313.93
5.3.30.0270.04013.84
5.3.20.0230.03013.53
5.3.10.0270.04013.70
5.3.00.0200.03713.54
5.2.170.0230.02713.21
5.2.160.0200.06013.21
5.2.150.0230.03313.21
5.2.140.0230.04013.21
5.2.130.0270.05013.21
5.2.120.0230.05013.21
5.2.110.0230.02713.21
5.2.100.0230.06013.21
5.2.90.0270.03013.21
5.2.80.0270.05713.21
5.2.70.0200.03313.21
5.2.60.0170.03713.21
5.2.50.0230.03313.21
5.2.40.0170.03313.21
5.2.30.0200.05713.21
5.2.20.0230.05013.21
5.2.10.0200.02313.21
5.2.00.0200.05013.21
5.1.60.0130.03713.21
5.1.50.0170.02313.21
5.1.40.0170.05013.21
5.1.30.0170.04313.21
5.1.20.0230.04313.21
5.1.10.0200.06013.21
5.1.00.0200.05013.21
5.0.50.0070.03313.21
5.0.40.0130.03013.21
5.0.30.0070.05013.21
5.0.20.0100.02013.21
5.0.10.0070.02313.21
5.0.00.0100.05713.21
4.4.90.0070.02013.21
4.4.80.0030.02013.21
4.4.70.0130.02013.21
4.4.60.0070.03013.21
4.4.50.0130.01013.21
4.4.40.0170.04313.21
4.4.30.0100.01313.21
4.4.20.0100.03013.21
4.4.10.0070.02013.21
4.4.00.0100.03013.21
4.3.110.0070.01713.21
4.3.100.0070.03713.21
4.3.90.0070.03013.21
4.3.80.0100.05013.21
4.3.70.0100.03313.21
4.3.60.0070.01713.21
4.3.50.0070.01713.21
4.3.40.0130.04313.21
4.3.30.0030.03713.21
4.3.20.0070.02013.21
4.3.10.0070.03713.21
4.3.00.0030.03713.21

preferences:
40.83 ms | 401 KiB | 5 Q