3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = '512345678'; $failingPattern = '/^[3-5789]\d{8}$/'; $result = preg_match($failingPattern , $subject, $groups, PREG_OFFSET_CAPTURE); var_dump($result, $groups);

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.0040.01116.88
8.3.50.0150.00321.98
8.3.40.0090.00618.80
8.3.30.0110.00418.89
8.3.20.0000.00820.21
8.3.10.0050.00323.55
8.3.00.0000.00819.38
8.2.180.0140.00718.53
8.2.170.0090.00922.96
8.2.160.0080.00520.32
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0060.00317.50
8.2.120.0020.00526.35
8.2.110.0110.00422.25
8.2.100.0090.00318.04
8.2.90.0000.00819.05
8.2.80.0030.00517.97
8.2.70.0080.00017.75
8.2.60.0000.00817.91
8.2.50.0110.00018.07
8.2.40.0030.00519.39
8.2.30.0040.00420.52
8.2.20.0000.00817.68
8.2.10.0000.00717.99
8.2.00.0000.00818.07
8.1.280.0030.01425.92
8.1.270.0000.00923.96
8.1.260.0030.00528.09
8.1.250.0070.00028.09
8.1.240.0000.00822.65
8.1.230.0080.00317.53
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0020.00518.10
8.1.170.0050.00218.96
8.1.160.0050.00322.00
8.1.150.0000.00818.77
8.1.140.0030.00519.58
8.1.130.0040.00417.50
8.1.120.0040.00417.52
8.1.110.0030.00417.43
8.1.100.0000.00817.44
8.1.90.0000.00717.48
8.1.80.0060.00317.50
8.1.70.0000.00717.46
8.1.60.0070.00717.66
8.1.50.0060.00317.58
8.1.40.0000.00917.59
8.1.30.0050.00517.55
8.1.20.0030.00517.71
8.1.10.0000.00717.65
8.1.00.0030.00617.59
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.45
8.0.270.0000.00717.19
8.0.260.0050.00317.23
8.0.250.0030.00317.04
8.0.240.0080.00017.07
8.0.230.0000.00816.89
8.0.220.0000.00716.87
8.0.210.0040.00416.96
8.0.200.0030.00316.88
8.0.190.0040.00417.07
8.0.180.0000.00716.96
8.0.170.0030.00516.99
8.0.160.0040.00417.03
8.0.150.0000.00716.92
8.0.140.0030.00316.90
8.0.130.0050.00013.38
8.0.120.0080.00016.86
8.0.110.0080.00016.88
8.0.100.0040.00416.77
8.0.90.0030.00517.04
8.0.80.0130.00316.88
8.0.70.0040.00416.98
8.0.60.0080.00016.86
8.0.50.0000.00816.82
8.0.30.0140.00217.34
8.0.20.0080.01117.40
8.0.10.0000.00717.04
8.0.00.0060.01116.76
7.4.330.0020.00316.68
7.4.320.0070.00016.72
7.4.300.0060.00016.71
7.4.290.0030.00316.61
7.4.280.0040.00416.73
7.4.270.0080.00016.68
7.4.260.0090.00016.57
7.4.250.0040.00416.68
7.4.240.0020.00516.76
7.4.230.0020.00516.73
7.4.220.0140.01016.66
7.4.210.0070.00716.74
7.4.200.0000.00716.64
7.4.160.0090.01216.60
7.4.150.0130.00917.40
7.4.140.0130.00817.86
7.4.130.0080.01316.68
7.4.120.0110.00516.47
7.4.110.0030.01316.64
7.4.100.0120.00616.50
7.4.90.0040.01316.77
7.4.80.0070.01019.39
7.4.70.0090.01316.52
7.4.60.0120.00416.60
7.4.50.0030.01316.45
7.4.40.0060.00916.63
7.4.30.0110.01116.59
7.4.00.0090.00615.18
7.3.330.0060.00013.08
7.3.320.0000.00613.11
7.3.310.0030.00316.41
7.3.300.0040.00416.19
7.3.290.0080.00716.28
7.3.280.0140.00516.25
7.3.270.0060.01217.40
7.3.260.0060.01116.28
7.3.250.0090.01016.37
7.3.240.0110.00616.29
7.3.230.0110.01216.39
7.3.210.0110.00516.48
7.3.200.0070.01316.33
7.3.190.0080.00916.24
7.3.180.0040.01216.32
7.3.170.0110.00616.51
7.3.160.0030.01516.49
7.3.10.0100.00316.64
7.3.00.0100.00616.39
7.2.330.0120.00616.45
7.2.320.0070.01116.59
7.2.310.0080.00816.58
7.2.300.0070.01016.65
7.2.290.0090.00916.64
7.2.130.0040.01517.05
7.2.120.0090.00017.00
7.2.110.0030.01216.77
7.2.100.0000.01516.99
7.2.90.0070.01116.96
7.2.80.0030.00617.22
7.2.70.0060.00917.00
7.2.60.0050.00916.92
7.2.50.0040.01217.06
7.2.40.0100.00617.03
7.2.30.0060.01217.06
7.2.20.0120.00316.94
7.2.10.0090.00916.83
7.2.00.0030.00918.34
7.1.250.0060.00615.99
7.1.200.0040.00415.78
7.1.100.0040.01218.51
7.1.70.0000.00717.02
7.1.60.0140.01119.48
7.1.50.0030.00717.13
7.1.00.0030.07722.36
7.0.200.0050.00216.70
7.0.60.0030.07320.02
7.0.50.0000.04717.85
7.0.40.0070.04020.27
7.0.30.0270.08320.15
7.0.20.0300.07320.32
7.0.10.0170.07720.36
7.0.00.0000.04720.18
5.6.280.0000.07720.77
5.6.210.0030.06320.46
5.6.200.0070.08018.08
5.6.190.0030.08720.45
5.6.180.0370.07320.77
5.6.170.0370.08320.54
5.6.160.0030.07020.38
5.6.150.0070.04018.16
5.6.140.0030.08318.11
5.6.130.0200.07318.13
5.6.120.0100.07321.08
5.6.110.0100.07020.99
5.6.100.0030.08321.02
5.6.90.0130.07720.99
5.6.80.0130.07320.50
5.5.350.4370.05320.48
5.5.340.0000.06017.96
5.5.330.0070.04720.23
5.5.320.0070.08020.30
5.5.310.0300.07020.29
5.5.300.0000.04317.95
5.5.290.0030.04018.01
5.5.280.0100.08320.75
5.5.270.0100.08720.72
5.5.260.0100.08720.86
5.5.250.0030.06020.58
5.5.240.0330.07320.34

preferences:
51.27 ms | 401 KiB | 5 Q