3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "abdsasdbm absdas dbasdn mda 2-01602171-63543"; $regex = "/[0-9]{1}-[0-9]{8}-[0-9]{5}/"; $result = (preg_match($regex, $string, $result)) ? $result : ""; var_dump($result);

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.75
8.3.50.0040.01516.56
8.3.40.0070.01418.79
8.3.30.0090.00618.63
8.3.20.0040.00420.34
8.3.10.0050.00320.67
8.3.00.0040.00420.70
8.2.180.0140.00718.41
8.2.170.0170.00322.96
8.2.160.0140.00320.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0060.00319.25
8.2.120.0080.00026.35
8.2.110.0090.00019.27
8.2.100.0000.01118.09
8.2.90.0000.00818.97
8.2.80.0080.00017.97
8.2.70.0030.00517.63
8.2.60.0000.00817.91
8.2.50.0040.00418.09
8.2.40.0050.00220.59
8.2.30.0060.00321.09
8.2.20.0040.00417.73
8.2.10.0000.00817.99
8.2.00.0050.00318.07
8.1.280.0030.01225.92
8.1.270.0040.00423.79
8.1.260.0040.00428.09
8.1.250.0050.00528.09
8.1.240.0090.00023.81
8.1.230.0090.00617.50
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.01017.36
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0040.00420.78
8.1.150.0070.00018.84
8.1.140.0040.00419.45
8.1.130.0000.00717.72
8.1.120.0000.00717.58
8.1.110.0040.00417.56
8.1.100.0000.00717.46
8.1.90.0060.00317.57
8.1.80.0000.00717.43
8.1.70.0000.00817.42
8.1.60.0000.01117.54
8.1.50.0040.00417.52
8.1.40.0040.00417.57
8.1.30.0000.00817.63
8.1.20.0000.00717.66
8.1.10.0050.00217.63
8.1.00.0040.00417.56
8.0.300.0030.00618.77
8.0.290.0080.00016.88
8.0.280.0000.00718.37
8.0.270.0060.00317.19
8.0.260.0000.00817.20
8.0.250.0070.00016.93
8.0.240.0080.00017.03
8.0.230.0000.00716.95
8.0.220.0030.00517.02
8.0.210.0070.00016.98
8.0.200.0000.00617.00
8.0.190.0050.00316.88
8.0.180.0070.00016.98
8.0.170.0030.00517.04
8.0.160.0000.00716.88
8.0.150.0000.00716.95
8.0.140.0000.00716.78
8.0.130.0060.00013.34
8.0.120.0040.00416.98
8.0.110.0000.00716.98
8.0.100.0000.00716.99
8.0.90.0020.00516.91
8.0.80.0120.00416.91
8.0.70.0000.00817.02
8.0.60.0000.00716.95
8.0.50.0040.00416.95
8.0.30.0110.00817.13
8.0.20.0110.00717.40
8.0.10.0040.00417.04
8.0.00.0080.00916.79
7.4.330.0000.00415.08
7.4.320.0030.00316.74
7.4.300.0030.00316.64
7.4.290.0100.00016.63
7.4.280.0040.00416.64
7.4.270.0000.00616.72
7.4.260.0030.00316.64
7.4.250.0050.00216.46
7.4.240.0000.00716.63
7.4.230.0000.00716.61
7.4.220.0120.00616.66
7.4.210.0030.01316.76
7.4.200.0000.00716.53
7.4.160.0120.00316.63
7.4.150.0110.00617.40
7.4.140.0080.01017.86
7.4.130.0110.00916.56
7.4.120.0100.00916.53
7.4.110.0060.01016.45
7.4.100.0160.00616.68
7.4.90.0100.00716.59
7.4.80.0130.01019.39
7.4.70.0090.00816.67
7.4.60.0090.00916.55
7.4.50.0070.00716.57
7.4.40.0100.01016.54
7.4.30.0150.00416.50
7.4.10.0100.00715.14
7.4.00.0070.00915.15
7.3.330.0080.00013.25
7.3.320.0000.00513.12
7.3.310.0030.00316.34
7.3.300.0040.00416.26
7.3.290.0110.00716.25
7.3.280.0070.00916.28
7.3.270.0100.01117.40
7.3.260.0120.00916.46
7.3.250.0090.01116.43
7.3.240.0110.00816.34
7.3.230.0080.00816.39
7.3.210.0090.01516.27
7.3.200.0060.01116.73
7.3.190.0040.01216.41
7.3.180.0060.00916.50
7.3.170.0180.00316.23
7.3.160.0070.01016.75
7.3.130.0100.00615.01
7.3.120.0070.01014.77
7.3.110.0090.00914.83
7.3.100.0090.00315.05
7.3.90.0030.01015.05
7.3.80.0030.00814.96
7.3.70.0040.01114.60
7.3.60.0040.01114.94
7.3.50.0060.00914.92
7.3.40.0040.00714.94
7.3.30.0100.00614.89
7.3.20.0030.01016.77
7.3.10.0060.00616.59
7.3.00.0000.01316.67
7.2.330.0110.00716.56
7.2.320.0070.01116.36
7.2.310.0070.01016.72
7.2.300.0200.00416.64
7.2.290.0030.01216.64
7.2.260.0050.00715.10
7.2.250.0040.01414.77
7.2.240.0100.00314.94
7.2.230.0030.00914.81
7.2.220.0040.01114.97
7.2.210.0030.00615.00
7.2.200.0090.00315.00
7.2.190.0090.00614.87
7.2.180.0060.00915.01
7.2.170.0100.00715.12
7.2.160.0090.00314.94
7.2.150.0040.00816.90
7.2.140.0040.00816.82
7.2.130.0030.00616.96
7.2.120.0060.00916.79
7.2.110.0090.00916.83
7.2.100.0030.01216.82
7.2.90.0060.00617.11
7.2.80.0060.00917.00
7.2.70.0060.00916.88
7.2.60.0050.00916.76
7.2.50.0080.00816.96
7.2.40.0040.01516.98
7.2.30.0000.01716.67
7.2.20.0110.00416.87
7.2.10.0060.00616.74
7.2.00.0030.01317.88
7.1.330.0070.00716.11
7.1.320.0070.01015.58
7.1.310.0030.00716.06
7.1.300.0040.00715.91
7.1.290.0120.00315.77
7.1.280.0070.00715.76
7.1.270.0070.00715.82
7.1.260.0030.00615.76
7.1.250.0030.00915.64
7.1.240.0070.00415.63
7.1.230.0080.00615.98
7.1.220.0070.00415.86
7.1.210.0060.00615.84
7.1.200.0070.00515.86
7.1.190.0070.00715.94
7.1.180.0030.00915.59
7.1.170.0060.00616.05
7.1.160.0000.01415.62
7.1.150.0000.00815.69
7.1.140.0030.01015.81
7.1.130.0040.00816.04
7.1.120.0040.00415.62
7.1.110.0030.01015.78
7.1.100.0160.00416.61
7.1.90.0060.00615.96
7.1.80.0030.01015.89
7.1.70.0040.00516.45
7.1.60.0050.01517.49
7.1.50.0060.00915.95
7.1.40.0090.00615.79
7.1.30.0030.01015.73
7.1.20.0070.00715.95
7.1.10.0060.00915.92
7.1.00.0050.03819.13
7.0.330.0000.01115.45
7.0.320.0000.01315.71
7.0.310.0070.00715.38
7.0.300.0000.01015.73
7.0.290.0000.01215.50
7.0.280.0060.00615.73
7.0.270.0060.00615.64
7.0.260.0000.01015.41
7.0.250.0000.01015.53
7.0.240.0040.00715.62
7.0.230.0030.00615.53
7.0.220.0070.00715.48
7.0.210.0090.00315.62
7.0.200.0030.00816.22
7.0.190.0060.00915.68
7.0.180.0070.00715.46
7.0.170.0040.01215.59
7.0.160.0030.01015.21
7.0.150.0050.00315.59
7.0.140.0040.01115.36
7.0.130.0060.00915.59
7.0.120.0060.00915.42
7.0.110.0040.00415.27
7.0.100.0000.01215.27
7.0.90.0080.00415.68
7.0.80.0050.00515.57
7.0.70.0100.00315.35
7.0.60.0080.03518.68
7.0.50.0070.02216.79
7.0.40.0050.03217.41
7.0.30.0130.02717.31
7.0.20.0150.02217.39
7.0.10.0030.05217.37
7.0.00.0090.03417.40
5.6.400.0040.01214.60
5.6.390.0040.01114.60
5.6.380.0070.00414.60
5.6.370.0060.00714.60
5.6.360.0100.00314.60
5.6.350.0060.01014.60
5.6.340.0050.00514.60
5.6.330.0070.00714.60
5.6.320.0000.01114.67
5.6.310.0100.00314.60
5.6.300.0070.00714.60
5.6.290.0070.00714.61
5.6.280.0030.04317.86
5.6.270.0090.00614.60
5.6.260.0040.00414.60
5.6.250.0130.00014.60
5.6.240.0080.00014.60
5.6.230.0040.01214.60
5.6.220.0060.00914.60
5.6.210.0050.04717.55
5.6.200.0070.02516.39
5.6.190.0050.02617.68
5.6.180.0120.03017.53
5.6.170.0160.04117.66
5.6.160.0110.03817.54
5.6.150.0060.02616.41
5.6.140.0030.04316.37
5.6.130.0070.03316.34
5.6.120.0050.04817.81
5.6.110.0050.02417.80
5.6.100.0050.04017.84
5.6.90.0030.03517.83
5.6.80.0070.02417.44
5.6.70.0070.00714.60
5.6.60.0040.01114.60
5.6.50.0060.00914.60
5.6.40.0040.01114.60
5.6.30.0070.00414.60
5.6.20.0000.01414.60
5.6.10.0100.00314.60
5.6.00.0100.00314.60
5.5.380.0070.01014.60
5.5.370.0100.00314.60
5.5.360.0030.01014.60
5.5.350.0050.02217.56
5.5.340.0080.04016.29
5.5.330.0080.04317.51
5.5.320.0180.03217.46
5.5.310.0160.03417.43
5.5.300.0060.02116.29
5.5.290.0080.04316.26
5.5.280.0110.04017.64
5.5.270.0080.04517.69
5.5.260.0110.04517.68
5.5.250.0060.04117.60
5.5.240.0140.04017.30
5.5.230.0080.00414.60
5.5.220.0130.00014.60
5.5.210.0040.00714.60
5.5.200.0100.00014.60
5.5.190.0070.00714.60
5.5.180.0000.01114.60
5.5.170.0060.00314.60
5.5.160.0070.00314.60
5.5.150.0060.01014.60
5.5.140.0060.00314.60
5.5.130.0040.00714.60
5.5.120.0060.00614.60
5.5.110.0070.00714.60
5.5.100.0060.00314.60
5.5.90.0080.00414.60
5.5.80.0040.01114.60
5.5.70.0090.00014.60
5.5.60.0060.00614.60
5.5.50.0100.00314.60
5.5.40.0030.00914.60
5.5.30.0070.00414.60
5.5.20.0030.01014.60
5.5.10.0080.00614.60
5.5.00.0070.00314.60

preferences:
70.88 ms | 401 KiB | 5 Q