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.0110.00416.50
8.3.50.0260.00822.05
8.3.40.0040.01218.67
8.3.30.0000.01519.00
8.3.20.0040.00420.39
8.3.10.0050.00323.84
8.3.00.0000.00819.26
8.2.180.0000.01518.11
8.2.170.0060.00922.96
8.2.160.0030.01420.51
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00422.15
8.2.110.0040.00422.20
8.2.100.0040.00817.72
8.2.90.0000.00919.28
8.2.80.0040.00417.97
8.2.70.0100.00317.36
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0040.00418.02
8.2.30.0040.00418.13
8.2.20.0040.00417.75
8.2.10.0040.00418.08
8.2.00.0000.00817.86
8.1.280.0070.00725.92
8.1.270.0050.00323.84
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00623.86
8.1.230.0060.00619.16
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0050.00517.36
8.1.190.0040.00417.50
8.1.180.0050.00518.10
8.1.170.0000.00918.66
8.1.160.0070.00022.03
8.1.150.0040.00418.51
8.1.140.0040.00417.36
8.1.130.0060.00017.73
8.1.120.0080.00017.48
8.1.110.0040.00417.46
8.1.100.0040.00417.51
8.1.90.0000.00717.35
8.1.80.0030.00317.48
8.1.70.0030.00317.33
8.1.60.0090.00017.46
8.1.50.0040.00417.49
8.1.40.0000.00717.40
8.1.30.0040.00417.64
8.1.20.0040.00417.55
8.1.10.0040.00417.50
8.1.00.0000.00817.36
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0000.00718.32
8.0.270.0030.00317.21
8.0.260.0030.00317.18
8.0.250.0050.00316.91
8.0.240.0080.00016.97
8.0.230.0030.00316.99
8.0.220.0030.00516.96
8.0.210.0060.00316.88
8.0.200.0030.00317.02
8.0.190.0080.00016.90
8.0.180.0040.00416.90
8.0.170.0030.00616.95
8.0.160.0040.00417.02
8.0.150.0000.00816.98
8.0.140.0020.00516.82
8.0.130.0030.00513.36
8.0.120.0000.00716.89
8.0.110.0040.00416.92
8.0.100.0040.00416.84
8.0.90.0070.00016.77
8.0.80.0040.01116.94
8.0.70.0040.00416.91
8.0.60.0000.00816.80
8.0.50.0040.00416.79
8.0.30.0090.00917.08
8.0.20.0140.00417.40
8.0.10.0040.00416.87
8.0.00.0130.00416.68
7.4.330.0050.00015.00
7.4.320.0000.00716.61
7.4.300.0030.00316.58
7.4.290.0030.00316.56
7.4.280.0030.00316.44
7.4.270.0030.00316.59
7.4.260.0060.00016.61
7.4.250.0030.00316.61
7.4.240.0030.00516.61
7.4.230.0060.00016.52
7.4.220.0060.01316.47
7.4.210.0070.00916.54
7.4.200.0040.00416.53
7.4.190.0070.00016.71
7.4.160.0030.01416.34
7.4.150.0080.01017.40
7.4.140.0070.01017.86
7.4.130.0100.00716.46
7.4.120.0100.01316.50
7.4.110.0140.00316.62
7.4.100.0110.00516.33
7.4.90.0120.00616.54
7.4.80.0140.00319.39
7.4.70.0110.00716.52
7.4.60.0070.00816.52
7.4.50.0030.00616.22
7.4.40.0070.01022.77
7.4.30.0060.00916.46
7.4.00.0070.01014.78
7.3.330.0030.00313.12
7.3.320.0020.00213.22
7.3.310.0040.00416.27
7.3.300.0030.00316.32
7.3.290.0030.01016.42
7.3.280.0080.00716.29
7.3.270.0060.01017.40
7.3.260.0100.00616.39
7.3.250.0120.00816.48
7.3.240.0180.01116.62
7.3.230.0090.00616.50
7.3.210.0100.01316.52
7.3.200.0140.00419.39
7.3.190.0030.01216.40
7.3.180.0120.00316.59
7.3.170.0060.01116.36
7.3.160.0080.00816.40
7.3.120.0070.00915.01
7.3.110.0120.00814.82
7.3.100.0040.01115.06
7.3.90.0060.00614.80
7.3.80.0080.00414.82
7.3.70.0000.01314.62
7.3.60.0030.01014.90
7.3.50.0000.01414.56
7.3.40.0030.00914.57
7.3.30.0040.01214.98
7.3.20.0070.00716.50
7.3.10.0040.01016.66
7.3.00.0100.00516.51
7.2.330.0110.00716.37
7.2.320.0160.00616.71
7.2.310.0070.01016.29
7.2.300.0090.00916.49
7.2.290.0100.00616.25
7.2.250.0100.01014.86
7.2.240.0100.01015.04
7.2.230.0110.00415.12
7.2.220.0130.00014.79
7.2.210.0070.01015.06
7.2.200.0070.00814.70
7.2.190.0070.01014.97
7.2.180.0040.01114.92
7.2.170.0000.01415.12
7.2.130.0060.00316.67
7.2.120.0060.00616.73
7.2.110.0040.00716.76
7.2.100.0070.00716.75
7.2.90.0060.00616.49
7.2.80.0100.00316.87
7.2.70.0110.00416.82
7.2.60.0100.00316.73
7.2.50.0100.00016.74
7.2.40.0030.00916.71
7.2.30.0100.00716.51
7.2.20.0030.00616.59
7.2.10.0040.00816.68
7.2.00.0040.00718.04
7.1.330.0030.01015.84
7.1.320.0060.00615.77
7.1.310.0090.00615.96
7.1.300.0070.00715.82
7.1.290.0070.01115.37
7.1.280.0030.00615.45
7.1.270.0100.00315.52
7.1.260.0000.00915.60
7.1.250.0070.00415.59
7.1.100.0080.00317.91
7.1.70.0120.00016.94
7.1.60.0090.01619.33
7.1.50.0100.01016.87
7.1.00.0070.08022.48
7.0.200.0080.00416.70
7.0.140.0030.07322.07
7.0.60.0030.08719.90
7.0.50.0030.08717.86
7.0.40.0130.08019.98
7.0.30.0230.08320.13
7.0.20.0200.04720.13
7.0.10.0030.08720.04
7.0.00.0070.08720.16
5.6.280.0000.07721.07
5.6.210.0130.07320.66
5.6.200.0070.08318.13
5.6.190.0100.04320.63
5.6.180.0200.07020.41
5.6.170.0230.05720.62
5.6.160.0030.08720.53
5.6.150.0100.08018.18
5.6.140.0170.07718.21
5.6.130.0070.05018.18
5.6.120.0000.09021.12
5.6.110.0100.08021.11
5.6.100.0170.07320.96
5.6.90.0100.06321.09
5.6.80.0070.07320.38
5.6.70.3430.03020.37
5.5.350.0100.08020.40
5.5.340.0030.04017.92
5.5.330.0070.08020.23
5.5.320.0400.07320.32
5.5.310.0130.04320.16
5.5.300.0070.06317.95
5.5.290.0030.04017.91
5.5.280.0130.04720.87
5.5.270.0030.07320.72
5.5.260.0270.06720.84
5.5.250.0100.07720.65
5.5.240.0200.07020.15
5.4.450.0270.04719.11
5.4.440.0200.05719.43
5.4.430.0970.06019.63
5.4.420.0830.00019.67
5.4.410.0130.05718.96
5.4.400.0070.08318.60
5.4.390.0330.05318.72
5.4.380.0370.04318.46
5.4.370.0230.05018.76
5.4.360.0270.04018.71
5.4.350.0070.03711.97
5.4.340.0040.03811.96
5.4.320.0070.03612.45
5.4.310.0090.03712.45
5.4.300.0120.04412.45
5.4.290.0100.04512.45
5.4.280.0070.03912.32
5.4.270.0080.04612.32
5.4.260.0160.05312.32
5.4.250.0100.07012.32
5.4.240.0120.08012.32
5.4.230.0130.06212.31
5.4.220.0090.04212.31
5.4.210.0220.04212.31
5.4.200.0030.04712.31
5.4.190.0080.04212.30
5.4.180.0110.05412.30
5.4.170.0160.04312.32
5.4.160.0060.05212.32
5.4.150.0060.04412.31
5.4.140.0050.04011.99
5.4.130.0350.05111.98
5.4.120.0100.04011.94
5.4.110.0060.03711.93
5.4.100.0070.03711.94
5.4.90.0100.09211.94
5.4.80.0130.04511.93
5.4.70.0080.03711.93
5.4.60.0080.04011.93
5.4.50.0070.04011.93
5.4.40.0050.04011.92
5.4.30.0050.04011.92
5.4.20.0080.03911.92
5.4.10.0080.04611.92
5.4.00.0060.04311.41
5.3.290.0100.05312.80
5.3.280.0110.05612.71
5.3.270.0080.06012.72
5.3.260.0140.05712.72
5.3.250.0170.07112.72
5.3.240.0070.06412.72
5.3.230.0130.05212.71
5.3.220.0100.05912.68
5.3.210.0130.06812.68
5.3.200.0120.03712.68
5.3.190.0090.03912.67
5.3.180.0100.03612.67
5.3.170.0090.03612.66
5.3.160.0110.03512.67
5.3.150.0080.05512.67
5.3.140.0100.05012.66
5.3.130.0170.07012.66
5.3.120.0090.05612.66
5.3.110.0080.05412.66
5.3.100.0070.03912.12
5.3.90.0110.04812.08
5.3.80.0070.04212.08
5.3.70.0070.03912.08
5.3.60.0080.03712.06
5.3.50.0090.03512.00
5.3.40.0090.03512.00
5.3.30.0070.03711.94
5.3.20.0090.03611.70
5.3.10.0080.03811.67
5.3.00.0080.03811.66
5.2.170.0080.0409.15
5.2.160.0080.0339.15
5.2.150.0050.0349.15
5.2.140.0060.0339.14
5.2.130.0040.0319.11
5.2.120.0060.0369.11
5.2.110.0220.0449.11
5.2.100.0070.0439.11
5.2.90.0150.0469.11
5.2.80.0070.0409.11
5.2.70.0090.0389.11
5.2.60.0040.0549.06
5.2.50.0090.0499.04
5.2.40.0120.0489.00
5.2.30.0120.0678.99
5.2.20.0170.0528.97
5.2.10.0080.0528.90
5.2.00.0060.0428.76
5.1.60.0070.0418.04
5.1.50.0110.0268.04
5.1.40.0170.0438.03
5.1.30.0070.0438.38
5.1.20.0040.0458.40
5.1.10.0090.0408.12
5.1.00.0070.0378.12
5.0.50.0040.0296.59
5.0.40.0070.0356.46
5.0.30.0050.0486.27
5.0.20.0090.0286.25
5.0.10.0100.0436.22
5.0.00.0080.0456.21
4.4.90.0030.0224.77
4.4.80.0050.0214.75
4.4.70.0170.0444.76
4.4.60.0140.0424.75
4.4.50.0090.0174.77
4.4.40.0080.0234.71
4.4.30.0060.0174.76
4.4.20.0100.0324.85
4.4.10.0050.0294.85
4.4.00.0130.0584.76
4.3.110.0110.0484.67
4.3.100.0110.0454.67
4.3.90.0070.0214.64
4.3.80.0060.0274.58
4.3.70.0060.0144.63
4.3.60.0160.0374.62
4.3.50.0120.0264.63
4.3.40.0120.0314.54
4.3.30.0060.0213.27
4.3.20.0050.0153.25
4.3.10.0020.0183.22
4.3.00.0100.0307.87

preferences:
60.75 ms | 401 KiB | 5 Q