3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "801"; $pattern = '(^[0,9][0,9]{1}[0,9]{1}$)'; preg_match($pattern, $subject, $matches); print_r($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.0060.01518.30
8.3.50.0110.01121.91
8.3.40.0060.00918.81
8.3.30.0090.00920.37
8.3.20.0000.00820.34
8.3.10.0080.00022.15
8.3.00.0030.00622.43
8.2.180.0000.01418.43
8.2.170.0110.00422.96
8.2.160.0030.01020.35
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00419.41
8.2.110.0040.00722.25
8.2.100.0110.00019.28
8.2.90.0040.00419.23
8.2.80.0070.00019.34
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0040.00417.90
8.2.30.0040.00418.07
8.2.20.0000.00717.59
8.2.10.0070.00017.82
8.2.00.0030.00617.83
8.1.280.0070.01025.92
8.1.270.0000.00824.66
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0100.00023.88
8.1.230.0070.00420.94
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.38
8.1.180.0000.00819.01
8.1.170.0000.00818.77
8.1.160.0040.00422.15
8.1.150.0050.00318.61
8.1.140.0000.00717.53
8.1.130.0080.00017.76
8.1.120.0040.00417.45
8.1.110.0070.00317.42
8.1.100.0040.00417.47
8.1.90.0050.00317.54
8.1.80.0070.00017.55
8.1.70.0030.00317.52
8.1.60.0060.00317.69
8.1.50.0000.00817.55
8.1.40.0080.00017.59
8.1.30.0040.00417.55
8.1.20.0030.00617.64
8.1.10.0060.00317.68
8.1.00.0030.00617.47
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0030.00318.30
8.0.270.0000.00717.16
8.0.260.0040.00416.83
8.0.250.0000.00817.07
8.0.240.0060.00316.91
8.0.230.0030.00316.93
8.0.220.0070.00016.86
8.0.210.0030.00317.00
8.0.200.0000.00716.89
8.0.190.0040.00416.91
8.0.180.0040.00416.96
8.0.170.0040.00416.95
8.0.160.0080.00016.98
8.0.150.0040.00416.89
8.0.140.0080.00016.96
8.0.130.0030.00313.43
8.0.120.0030.00516.89
8.0.110.0000.00716.98
8.0.100.0000.00716.81
8.0.90.0040.00417.00
8.0.80.0070.01016.88
8.0.70.0080.00017.03
8.0.60.0070.00016.91
8.0.50.0000.00716.82
8.0.30.0110.00817.19
8.0.20.0120.00917.42
8.0.10.0000.00817.17
8.0.00.0140.00716.89
7.4.330.0030.00315.00
7.4.320.0040.00416.82
7.4.300.0000.00616.72
7.4.290.0030.00316.76
7.4.280.0040.00416.61
7.4.270.0030.00316.65
7.4.260.0070.00013.46
7.4.250.0030.00616.55
7.4.240.0020.00516.68
7.4.230.0030.00316.71
7.4.220.0070.01116.68
7.4.210.0060.01116.63
7.4.200.0030.00316.62
7.4.190.0070.00016.90
7.4.160.0120.00616.80
7.4.150.0070.01017.40
7.4.140.0120.00617.86
7.4.130.0070.01216.56
7.4.120.0100.01016.73
7.4.110.0130.00716.38
7.4.100.0140.00716.82
7.4.90.0130.00616.60
7.4.80.0060.01019.39
7.4.70.0070.01016.61
7.4.60.0100.01716.30
7.4.50.0000.00816.63
7.4.40.0050.00822.77
7.4.30.0110.01116.72
7.4.00.0070.01115.11
7.3.330.0030.00313.03
7.3.320.0050.00012.98
7.3.310.0000.00716.20
7.3.300.0070.00016.12
7.3.290.0080.00816.26
7.3.280.0100.00716.28
7.3.270.0060.01217.40
7.3.260.0140.00616.66
7.3.250.0160.00816.32
7.3.240.0100.01316.68
7.3.230.0090.00616.39
7.3.210.0120.00416.26
7.3.200.0060.01619.39
7.3.190.0100.01016.68
7.3.180.0060.01616.60
7.3.170.0100.00716.32
7.3.160.0110.00516.30
7.3.120.0060.00914.82
7.3.10.0130.00316.44
7.3.00.0100.00716.64
7.2.330.0180.00616.57
7.2.320.0060.01316.54
7.2.310.0070.01016.54
7.2.300.0030.01216.38
7.2.290.0100.00616.57
7.2.130.0000.01716.43
7.2.120.0090.00616.58
7.2.110.0100.00716.66
7.2.100.0030.01016.57
7.2.90.0110.00716.63
7.2.80.0000.01716.56
7.2.70.0150.00616.64
7.2.60.0160.00416.53
7.2.50.0130.00316.59
7.2.40.0110.01116.66
7.2.30.0160.00316.57
7.2.20.0130.01116.58
7.2.10.0060.01616.54
7.2.00.0080.01218.29
7.1.250.0000.01415.70
7.1.100.0040.00817.93
7.1.70.0080.00417.30
7.1.60.0150.01119.43
7.1.50.0060.00617.21
7.1.00.0000.03722.59
7.0.200.0030.00716.65
7.0.140.0070.07321.97
7.0.60.0130.08019.91
7.0.50.0070.08317.88
7.0.40.0070.04320.18
7.0.30.0130.04720.18
7.0.20.0300.06720.11
7.0.10.0130.05020.02
7.0.00.0100.07020.20
5.6.280.0100.06320.77
5.6.210.0100.07720.70
5.6.200.0030.04718.13
5.6.190.0170.08020.46
5.6.180.0130.04320.41
5.6.170.0370.07320.43
5.6.160.0100.08320.44
5.6.150.0170.03718.18
5.6.140.0070.05718.07
5.6.130.0070.06018.18
5.6.120.0070.05720.89
5.6.110.0230.07020.98
5.6.100.0130.08020.98
5.6.90.0170.07320.87
5.6.80.0100.07320.37
5.6.70.0200.07020.52
5.5.350.0070.08020.36
5.5.340.0130.07318.02
5.5.330.0000.06320.32
5.5.320.0300.08020.18
5.5.310.0200.04320.41
5.5.300.0030.08017.98
5.5.290.0130.07318.00
5.5.280.0000.04320.76
5.5.270.0130.08020.88
5.5.260.0100.08320.87
5.5.250.0070.08020.65
5.5.240.0100.05720.35
5.4.450.0370.06719.48
5.4.440.0870.07019.24
5.4.430.1000.05319.46
5.4.420.1100.05319.47
5.4.410.1000.05319.14
5.4.400.0470.05018.50
5.4.390.0470.04718.61
5.4.380.0170.05718.74
5.4.370.0230.04018.71
5.4.360.0170.05018.72
5.4.350.0090.04311.97
5.4.340.0080.04411.97
5.4.320.0060.03512.45
5.4.310.0050.03712.45
5.4.300.0060.03912.45
5.4.290.0060.04812.45
5.4.280.0040.03612.34
5.4.270.0040.03912.35
5.4.260.0030.04212.34
5.4.250.0070.05318.89
5.4.240.0030.06018.87
5.4.230.0100.05718.92
5.4.220.0000.06018.87
5.4.210.0130.04718.91
5.4.200.0030.05719.00
5.4.190.0030.05718.88
5.4.180.0030.05319.03
5.4.170.0030.05318.80
5.4.160.0100.05018.73
5.4.150.0030.05719.02
5.4.140.0000.06316.25
5.4.130.0100.04316.39
5.4.120.0170.05016.30
5.4.110.0070.05016.35
5.4.100.0070.05716.40
5.4.90.0070.04716.41
5.4.80.0100.05316.49
5.4.70.0100.04316.34
5.4.60.0070.05016.29
5.4.50.0000.05316.48
5.4.40.0030.07316.27
5.4.30.0100.04316.36
5.4.20.0070.05016.32
5.4.10.0130.05716.38
5.4.00.0130.06015.97
5.3.290.0070.04112.80
5.3.280.0000.05714.36
5.3.270.0070.06014.61
5.3.260.0100.05014.62
5.3.250.0170.05714.59
5.3.240.0130.04314.44
5.3.230.0170.05314.48
5.3.220.0170.04014.66
5.3.210.0170.04714.57
5.3.200.0030.05014.65
5.3.190.0130.04314.33
5.3.180.0030.05314.56
5.3.170.0130.05014.60
5.3.160.0070.05314.52
5.3.150.0070.05014.59
5.3.140.0170.04014.32
5.3.130.0170.04714.56
5.3.120.0030.05714.38
5.3.110.0130.05714.56
5.3.100.0030.05313.87
5.3.90.0100.05714.05
5.3.80.0100.06313.97
5.3.70.0200.07013.79
5.3.60.0070.04713.92
5.3.50.0100.05013.96
5.3.40.0070.05314.09
5.3.30.0070.05013.84
5.3.20.0070.04713.68
5.3.10.0030.05313.66
5.3.00.0070.06713.65
5.2.170.0100.04011.14
5.2.160.0030.05011.02
5.2.150.0070.04011.26
5.2.140.0100.03710.90
5.2.130.0030.04011.03
5.2.120.0030.04011.02
5.2.110.0100.04011.02
5.2.100.0070.03710.98
5.2.90.0130.03011.10
5.2.80.0100.03711.10
5.2.70.0070.04010.92
5.2.60.0030.05710.95
5.2.50.0030.04710.92
5.2.40.0130.03011.11
5.2.30.0170.03010.74
5.2.20.0030.04010.97
5.2.10.0030.05710.76
5.2.00.0070.03710.71
5.1.60.0030.0339.92
5.1.50.0100.0439.90
5.1.40.0000.0379.88
5.1.30.0030.04310.16
5.1.20.0070.04310.26
5.1.10.0130.02710.21
5.1.00.0070.03710.30
5.0.50.0000.0338.45
5.0.40.0030.0278.36
5.0.30.0070.0478.28
5.0.20.0000.0378.34
5.0.10.0000.0308.12
5.0.00.0000.0438.14
4.4.90.0070.0176.74
4.4.80.0100.0136.74
4.4.70.0030.0276.74
4.4.60.0030.0206.74
4.4.50.0100.0236.74
4.4.40.0030.0406.74
4.4.30.0000.0236.74
4.4.20.0070.0176.74
4.4.10.0030.0206.74
4.4.00.0100.0376.74
4.3.110.0030.0206.74
4.3.100.0070.0176.74
4.3.90.0000.0276.74
4.3.80.0030.0306.74
4.3.70.0030.0206.74
4.3.60.0100.0136.74
4.3.50.0000.0236.74
4.3.40.0000.0336.74
4.3.30.0030.0176.74
4.3.20.0030.0306.74
4.3.10.0000.0236.74
4.3.00.0170.0177.62

preferences:
36.48 ms | 401 KiB | 5 Q