3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '@^/cef/?((/logs/(*SKIP)(*FAIL)|.)*)$@'; var_dump(preg_match($regex, '/cef/foo/bar/baz', $matches), $matches); var_dump(preg_match($regex, '/cef/foo/logs/access.log', $matches), $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.70.0090.01316.50
8.3.60.0100.00318.31
8.3.50.0160.00316.52
8.3.40.0140.00018.61
8.3.30.0140.00718.69
8.3.20.0090.00018.73
8.3.10.0150.00020.71
8.3.00.0080.00017.50
8.2.180.0070.01116.75
8.2.170.0140.00322.96
8.2.160.0030.01022.21
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0070.00322.20
8.2.100.0100.00317.78
8.2.90.0040.00418.95
8.2.80.0040.00417.97
8.2.70.0000.00817.61
8.2.60.0040.00417.92
8.2.50.0050.00318.07
8.2.40.0000.00718.22
8.2.30.0000.00718.03
8.2.20.0050.00217.65
8.2.10.0070.00017.75
8.2.00.0040.00417.79
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0040.00422.50
8.1.230.0060.00620.89
8.1.220.0080.00018.77
8.1.210.0040.00418.84
8.1.200.0050.00517.35
8.1.190.0000.00717.41
8.1.180.0080.00018.10
8.1.170.0080.00018.91
8.1.160.0030.00318.80
8.1.150.0000.00718.59
8.1.140.0040.00417.46
8.1.130.0000.00817.85
8.1.120.0070.00017.53
8.1.110.0000.00717.57
8.1.100.0070.00017.55
8.1.90.0000.00717.59
8.1.80.0040.00417.56
8.1.70.0030.00317.48
8.1.60.0060.00617.70
8.1.50.0040.00417.63
8.1.40.0050.00217.64
8.1.30.0080.00017.70
8.1.20.0030.00517.60
8.1.10.0000.00717.70
8.1.00.0040.00417.63
8.0.300.0040.00420.07
8.0.290.0070.00016.63
8.0.280.0040.00418.32
8.0.270.0000.00717.09
8.0.260.0000.00716.92
8.0.250.0070.00017.04
8.0.240.0000.00716.90
8.0.230.0000.00716.93
8.0.220.0000.00716.98
8.0.210.0000.00716.95
8.0.200.0000.00717.04
8.0.190.0000.00817.06
8.0.180.0030.00316.94
8.0.170.0000.00916.93
8.0.160.0050.00216.92
8.0.150.0040.00416.94
8.0.140.0040.00416.96
8.0.130.0030.00313.47
8.0.120.0030.00616.86
8.0.110.0060.00317.09
8.0.100.0040.00416.84
8.0.90.0040.00316.94
8.0.80.0030.01716.98
8.0.70.0000.00717.00
8.0.60.0020.00516.76
8.0.50.0050.00316.88
8.0.30.0140.00917.13
8.0.20.0110.00817.25
8.0.10.0070.00017.17
8.0.00.0110.00916.90
7.4.330.0050.00014.93
7.4.320.0030.00316.80
7.4.300.0000.00616.57
7.4.290.0040.00416.63
7.4.280.0060.00316.66
7.4.270.0040.00416.77
7.4.260.0000.00513.37
7.4.250.0000.00816.65
7.4.240.0050.00216.59
7.4.230.0000.00716.75
7.4.220.0090.00916.61
7.4.210.0090.00916.78
7.4.200.0070.00016.50
7.4.190.0030.00316.82
7.4.160.0160.00416.48
7.4.150.0100.00717.07
7.4.140.0140.01017.20
7.4.130.0080.00916.83
7.4.120.0080.01016.49
7.4.110.0100.00616.39
7.4.100.0140.01016.46
7.4.90.0110.01116.64
7.4.80.0060.01518.80
7.4.70.0060.01116.55
7.4.60.0080.00816.44
7.4.50.0040.00416.43
7.4.40.0070.00522.27
7.4.30.0120.00616.53
7.4.00.0080.00715.06
7.3.330.0000.00613.16
7.3.320.0030.00313.04
7.3.310.0000.00716.39
7.3.300.0070.00016.20
7.3.290.0100.01016.32
7.3.280.0090.00716.31
7.3.270.0110.00817.07
7.3.260.0080.00918.24
7.3.250.0150.00316.42
7.3.240.0040.01316.55
7.3.230.0120.00416.39
7.3.210.0100.00716.32
7.3.200.0140.00719.39
7.3.190.0070.01016.21
7.3.180.0070.01316.42
7.3.170.0130.01016.38
7.3.160.0100.00616.32
7.3.120.0090.00814.87
7.3.110.0050.01214.94
7.3.100.0030.01214.96
7.3.90.0050.00814.84
7.3.80.0050.01214.73
7.3.70.0060.00814.65
7.3.60.0120.00314.75
7.3.50.0080.00514.86
7.3.40.0080.00514.78
7.3.30.0060.00914.85
7.3.20.0050.00916.67
7.3.10.0060.00816.48
7.3.00.0060.00616.64
7.2.330.0160.00316.52
7.2.320.0080.01116.64
7.2.310.0140.00716.53
7.2.300.0130.01016.66
7.2.290.0100.00916.54
7.2.250.0110.00614.98
7.2.240.0050.01215.04
7.2.230.0080.00615.00
7.2.220.0030.01215.04
7.2.210.0090.00615.12
7.2.200.0090.00515.08
7.2.190.0050.00814.88
7.2.180.0080.00715.06
7.2.170.0050.01215.04
7.1.330.0070.00915.85
7.1.320.0060.00615.85
7.1.310.0070.01015.96
7.1.300.0070.00715.99
7.1.290.0070.00315.75
7.1.280.0060.00615.97
7.1.270.0060.00615.83
7.1.260.0050.00915.98
7.1.200.0000.01215.96
7.1.70.0030.00717.34
7.1.60.0040.01819.40
7.1.50.0040.00817.10
7.1.00.0030.07322.55
7.0.200.0000.00716.90
7.0.140.0030.06721.95
7.0.60.0070.07721.79
7.0.50.0030.05717.90
7.0.40.0070.07720.11
7.0.30.0230.04320.02
7.0.20.0270.07720.11
7.0.10.0100.06720.14
7.0.00.0030.08720.09
5.6.280.0030.07020.79
5.6.210.0230.06320.64
5.6.200.0030.04718.08
5.6.190.0130.07020.36
5.6.180.0230.03320.36
5.6.170.0270.08720.38
5.6.160.0100.03320.48
5.6.150.0070.08018.08
5.6.140.0070.03718.18
5.6.130.0130.08018.15
5.6.120.0030.04321.01
5.6.110.0200.06320.98
5.6.100.0100.08020.99
5.6.90.0030.08320.96
5.6.80.0070.08020.37
5.5.350.0100.07320.34
5.5.340.0000.07717.93
5.5.330.0070.04020.48
5.5.320.0200.04720.42
5.5.310.0200.05720.21
5.5.300.0130.06718.02
5.5.290.0000.04317.88
5.5.280.0070.08720.88
5.5.270.0070.07720.76
5.5.260.0070.05020.67
5.5.250.0030.04320.68
5.5.240.0100.05320.34
5.4.450.0030.04719.25
5.4.440.0100.04319.41
5.4.430.0070.06719.11
5.4.420.0070.07319.44
5.4.410.0070.07319.01
5.4.400.0030.04019.15
5.4.390.0070.07719.08
5.4.380.0100.06019.12
5.4.370.0000.04019.18
5.4.360.0030.04019.18
5.4.350.0030.04019.09
5.4.340.0000.04319.16
5.4.320.0030.03719.09
5.4.310.0070.03718.95
5.4.300.0000.04018.79
5.4.290.0070.04018.81
5.4.280.0000.04018.91
5.4.270.0000.04019.18
5.4.260.0030.03719.16
5.4.250.0070.03318.91
5.4.240.0030.03718.92
5.4.230.0000.04019.00
5.4.220.0070.03319.14
5.4.210.0030.03719.14
5.4.200.0000.04319.17
5.4.190.0000.04018.91
5.4.180.0070.03318.91
5.4.170.0030.03719.18
5.4.160.0130.03019.16
5.4.150.0070.03318.98
5.4.140.0000.04016.31
5.4.130.0170.02716.36
5.4.120.0030.04016.49
5.4.110.0200.05016.27
5.4.100.0100.03316.29
5.4.90.0070.07016.41
5.4.80.0070.08016.39
5.4.70.0030.06016.27
5.4.60.0100.07016.27
5.4.50.0130.07016.39
5.4.40.0070.04316.28
5.4.30.0000.06016.21
5.4.20.0070.05316.24
5.4.10.0000.08016.38
5.4.00.0030.06015.73
5.3.290.0000.04014.48
5.3.280.0000.04014.49
5.3.270.0070.03314.49
5.3.260.0100.03014.62
5.3.250.0000.03714.54
5.3.240.0000.04314.55
5.3.230.0030.03714.41
5.3.220.0070.03714.51
5.3.210.0000.06314.52
5.3.200.0030.05314.36
5.3.190.0030.04714.50
5.3.180.0070.05314.49
5.3.170.0070.07314.50
5.3.160.0030.04314.40
5.3.150.0170.06714.52
5.3.140.0100.07314.38
5.3.130.0030.05314.65
5.3.120.0130.06714.45
5.3.110.0100.06714.57
5.3.100.0100.04313.98
5.3.90.0070.07313.95
5.3.80.0100.07713.96
5.3.70.0030.05713.84
5.3.60.0030.07313.84
5.3.50.0100.03713.96
5.3.40.0030.07313.77
5.3.30.0070.05713.75
5.3.20.0130.06713.63
5.3.10.0070.04313.60
5.3.00.0070.07013.73
5.2.170.0100.05311.07
5.2.160.0000.05711.09
5.2.150.0030.06711.13
5.2.140.0030.03711.13
5.2.130.0100.03011.04
5.2.120.0030.04010.95
5.2.110.0030.03011.25
5.2.100.0030.06311.04
5.2.90.0100.05010.98
5.2.80.0030.06711.00
5.2.70.0070.03011.07
5.2.60.0070.05711.20
5.2.50.0100.06010.98
5.2.40.0070.06010.93
5.2.30.0030.04010.93
5.2.20.0000.03710.88
5.2.10.0070.05310.84
5.2.00.0000.06310.66
5.1.60.0070.0479.99
5.1.50.0030.04310.00
5.1.40.0070.0509.88
5.1.30.0070.03710.32
5.1.20.0030.03710.25
5.1.10.0030.0609.96
5.1.00.0070.03710.08
5.0.50.0000.0338.54
5.0.40.0030.0438.36
5.0.30.0070.0508.05
5.0.20.0030.0438.16
5.0.10.0070.0438.23
5.0.00.0030.0608.30
4.4.90.0070.0307.78
4.4.80.0000.0337.78
4.4.70.0000.0237.78
4.4.60.0000.0237.78
4.4.50.0100.0307.78
4.4.40.0000.0477.78
4.4.30.0030.0337.78
4.4.20.0000.0377.78
4.4.10.0000.0237.78
4.4.00.0030.0307.78
4.3.110.0030.0307.78
4.3.100.0030.0337.78
4.3.90.0030.0237.78
4.3.80.0100.0437.78
4.3.70.0000.0337.78
4.3.60.0030.0377.78
4.3.50.0030.0307.78
4.3.40.0030.0577.78
4.3.30.0030.0377.78
4.3.20.0000.0207.78
4.3.10.0030.0177.78
4.3.00.0070.0307.78

preferences:
114.73 ms | 401 KiB | 5 Q