3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (preg_match('~^(?(?=\d+$)\d{1,5}|.*)$~', "123456")) { echo 'Match found.'; }

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.0120.00918.55
8.3.50.0100.01017.96
8.3.40.0110.00418.97
8.3.30.0160.00818.88
8.3.20.0040.00421.69
8.3.10.0050.00321.75
8.3.00.0030.00723.66
8.2.180.0050.01416.75
8.2.170.0160.00018.95
8.2.160.0100.00322.96
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0040.00421.18
8.2.120.0060.00326.35
8.2.110.0090.00319.27
8.2.100.0080.00317.72
8.2.90.0030.00519.02
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0040.00417.91
8.2.50.0030.00618.10
8.2.40.0000.00822.63
8.2.30.0070.00019.01
8.2.20.0040.00417.93
8.2.10.0000.00717.85
8.2.00.0030.00617.88
8.1.280.0190.00025.92
8.1.270.0090.00023.77
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0050.00523.92
8.1.230.0040.00817.77
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0090.00017.22
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0060.00318.47
8.1.160.0050.00218.73
8.1.150.0050.00319.02
8.1.140.0030.00517.66
8.1.130.0070.00017.47
8.1.120.0000.00717.54
8.1.110.0040.00417.49
8.1.100.0080.00017.40
8.1.90.0000.00717.43
8.1.80.0000.00817.39
8.1.70.0000.00817.44
8.1.60.0060.00617.66
8.1.50.0040.00417.40
8.1.40.0030.00517.50
8.1.30.0000.00717.74
8.1.20.0000.00817.62
8.1.10.0000.00717.48
8.1.00.0060.00317.43
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00718.33
8.0.270.0050.00517.14
8.0.260.0050.00216.75
8.0.250.0000.00716.94
8.0.240.0040.00416.80
8.0.230.0050.00517.04
8.0.220.0030.00716.89
8.0.210.0000.00716.96
8.0.200.0030.00316.85
8.0.190.0030.00316.87
8.0.180.0030.00316.91
8.0.170.0040.00416.81
8.0.160.0000.00716.94
8.0.150.0040.00416.73
8.0.140.0030.00516.80
8.0.130.0030.00313.26
8.0.120.0000.00816.85
8.0.110.0040.00416.95
8.0.100.0040.00416.77
8.0.90.0040.00416.93
8.0.80.0100.01116.79
8.0.70.0000.00716.85
8.0.60.0040.00416.95
8.0.50.0050.00316.81
8.0.30.0070.01017.18
8.0.20.0090.01117.42
8.0.10.0040.00417.07
8.0.00.0110.00716.76
7.4.330.0020.00215.55
7.4.320.0000.00616.64
7.4.300.0040.00416.58
7.4.290.0030.00316.68
7.4.280.0030.00316.51
7.4.270.0090.00016.59
7.4.260.0040.00416.57
7.4.250.0080.00016.63
7.4.240.0070.00016.60
7.4.230.0030.00316.40
7.4.220.0000.00816.51
7.4.210.0050.01116.78
7.4.200.0070.00016.68
7.4.160.0070.00816.60
7.4.140.0110.00717.86
7.4.130.0170.00716.81
7.4.120.0120.00816.57
7.4.110.0030.01416.57
7.4.100.0170.00316.57
7.4.90.0000.01716.69
7.4.80.0070.01119.39
7.4.70.0040.01216.59
7.4.60.0030.01216.52
7.4.50.0030.01116.52
7.4.40.0060.01216.40
7.4.00.0070.00914.90
7.3.330.0030.00313.25
7.3.320.0030.00313.26
7.3.310.0030.00316.10
7.3.300.0050.00316.30
7.3.290.0030.00516.21
7.3.280.0100.00616.27
7.3.260.0090.01016.42
7.3.240.0110.00716.31
7.3.230.0100.00716.52
7.3.210.0120.00616.30
7.3.200.0100.00716.51
7.3.190.0100.00716.34
7.3.180.0120.00416.66
7.3.170.0130.00316.51
7.3.160.0090.00616.29
7.3.120.0110.00414.98
7.3.110.0120.00714.61
7.3.100.0080.00714.88
7.3.90.0040.00914.88
7.3.80.0090.00914.77
7.3.70.0080.00814.81
7.3.60.0050.00814.82
7.3.50.0090.00514.87
7.3.40.0080.00714.86
7.3.30.0070.00814.75
7.3.20.0080.00616.05
7.3.10.0120.00516.02
7.3.00.0120.00816.05
7.2.330.0080.01116.48
7.2.320.0130.00716.61
7.2.310.0120.00916.55
7.2.300.0090.01216.42
7.2.290.0170.00916.45
7.2.250.0070.01215.18
7.2.240.0080.01114.81
7.2.230.0050.01215.11
7.2.220.0020.01315.03
7.2.210.0040.01314.90
7.2.200.0090.00615.11
7.2.190.0060.01014.96
7.2.180.0060.00715.08
7.2.170.0060.00915.16
7.2.160.0040.01314.88
7.2.150.0150.00515.91
7.2.140.0110.00915.98
7.2.130.0120.00916.11
7.2.120.0140.00616.08
7.2.110.0140.01115.91
7.2.100.0090.00815.92
7.2.90.0110.01016.10
7.2.80.0180.00515.98
7.2.70.0120.00715.97
7.2.60.0120.00816.25
7.2.50.0070.01316.08
7.2.40.0430.00916.60
7.2.30.0590.00716.52
7.2.20.0450.01016.47
7.2.10.0370.00616.67
7.2.00.0560.01016.64
7.1.330.0050.01015.70
7.1.320.0080.00515.81
7.1.310.0080.00615.24
7.1.300.0100.00615.09
7.1.290.0100.00515.18
7.1.280.0120.00715.17
7.1.270.0090.00615.06
7.1.260.0120.00915.11
7.1.250.0200.00214.88
7.1.240.0120.00914.87
7.1.230.0180.00814.87
7.1.220.0110.01614.80
7.1.210.0400.01114.89
7.1.200.0140.00615.21
7.1.190.0130.00814.69
7.1.180.0160.00614.76
7.1.170.0170.00514.92
7.1.160.0360.01115.46
7.1.150.0550.00915.65
7.1.140.0420.00815.59
7.1.130.0370.01115.60
7.1.120.0330.01015.54
7.1.110.0380.00815.38
7.1.100.0510.01015.43
7.1.90.0540.00815.48
7.1.80.0320.01015.38
7.1.70.0400.01015.03
7.1.60.0520.01021.03
7.1.50.0450.00720.88
7.1.40.0520.00820.88
7.1.30.0570.00920.86
7.1.20.0470.00820.84
7.1.10.0420.00714.91
7.1.00.0390.00614.91
7.0.330.0300.00713.77
5.6.400.0120.01214.16
5.6.390.0090.01114.44
5.6.380.0140.00914.07

preferences:
43.99 ms | 401 KiB | 5 Q