3v4l.org

run code in 500+ PHP versions simultaneously
<?php $phones = [ '2345678', '00000000', '00100000', '123456789', '000000000', '12345678901234567', ]; foreach ($phones as $phone) { echo (preg_match('/^(?=0*[1-9])\d{8,16}$/', $phone) ? 'Pass' : 'Fail') . "\n"; }

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.5.30.0100.00721.36
8.5.20.0080.00919.69
8.5.10.0130.00520.25
8.5.00.0120.01120.29
8.4.180.0100.01119.86
8.4.170.0150.00820.55
8.4.160.0140.00920.60
8.4.150.0080.00516.91
8.4.140.0090.01217.69
8.4.130.0130.00618.85
8.4.120.0100.01023.94
8.4.110.0140.00618.64
8.4.100.0050.00619.15
8.4.90.0040.00420.52
8.4.80.0120.00818.57
8.4.70.0040.00518.76
8.4.60.0130.00718.89
8.4.50.0110.00920.32
8.4.40.0070.01519.45
8.4.30.0130.00720.74
8.4.20.0100.01019.87
8.4.10.0110.00723.71
8.3.300.0110.01019.29
8.3.290.0140.00820.95
8.3.280.0190.01018.52
8.3.270.0100.00916.66
8.3.260.0100.01016.62
8.3.250.0110.00818.71
8.3.240.0090.00517.16
8.3.230.0130.00616.73
8.3.220.0120.00718.76
8.3.210.0080.00716.82
8.3.200.0080.00116.60
8.3.190.0050.00817.12
8.3.180.0110.00618.80
8.3.170.0120.00617.36
8.3.160.0120.00618.57
8.3.150.0080.00018.80
8.3.140.0150.00016.67
8.3.130.0040.00418.38
8.3.120.0080.00018.84
8.3.110.0060.00320.94
8.3.100.0160.00324.06
8.3.90.0000.00826.77
8.3.80.0030.00618.43
8.3.70.0080.01318.58
8.3.60.0120.00316.63
8.3.50.0150.00616.97
8.3.40.0130.00320.34
8.3.30.0110.00418.76
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0090.00026.16
8.2.300.0100.01022.25
8.2.290.0090.00720.68
8.2.280.0040.00418.48
8.2.270.0120.00317.05
8.2.260.0040.00420.87
8.2.250.0130.00616.98
8.2.240.0040.00417.42
8.2.230.0090.00022.58
8.2.220.0100.01037.54
8.2.210.0070.01126.77
8.2.200.0000.00918.42
8.2.190.0140.00018.46
8.2.180.0240.00716.60
8.2.170.0110.00718.90
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.48
8.2.110.0100.00019.34
8.2.100.0040.00718.03
8.2.90.0000.01219.88
8.2.80.0040.00419.28
8.2.70.0090.00017.63
8.2.60.0030.00517.93
8.2.50.0080.00018.07
8.2.40.0060.00318.21
8.2.30.0060.00317.99
8.2.20.0080.00019.29
8.2.10.0040.00817.80
8.2.00.0080.00217.88
8.1.340.0080.01321.62
8.1.330.0100.00822.00
8.1.320.0110.00816.12
8.1.310.0080.00016.88
8.1.300.0080.00018.41
8.1.290.0090.00030.84
8.1.280.0120.00825.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.67
8.1.230.0120.00022.75
8.1.220.0080.00017.76
8.1.210.0040.00419.04
8.1.200.0060.00317.35
8.1.190.0000.00817.41
8.1.180.0030.00718.10
8.1.170.0040.00418.84
8.1.160.0000.00718.85
8.1.150.0040.00418.77
8.1.140.0090.00317.50
8.1.130.0070.00417.63
8.1.120.0070.00417.63
8.1.110.0140.00017.57
8.1.100.0090.00517.56
8.1.90.0090.00617.66
8.1.80.0130.00417.66
8.1.70.0180.00017.65
8.1.60.0060.01317.78
8.1.50.0150.00417.70
8.1.40.0110.00617.75
8.1.30.0000.01017.72
8.1.20.0100.00317.84
8.1.10.0000.01017.47
8.1.00.0030.00517.51
8.0.300.0000.00719.90
8.0.290.0000.00716.88
8.0.280.0030.00318.44
8.0.270.0060.00616.95
8.0.260.0130.00016.85
8.0.250.0090.00516.90
8.0.240.0110.00316.85
8.0.230.0100.00316.93
8.0.220.0100.00316.94
8.0.210.0100.00516.85
8.0.200.0160.00016.95
8.0.190.0130.00516.95
8.0.180.0090.00617.00
8.0.170.0140.00016.86
8.0.160.0090.00616.97
8.0.150.0120.00316.95
8.0.140.0130.00316.83
8.0.130.0100.00416.83
8.0.120.0100.00516.82
8.0.110.0070.00716.92
8.0.100.0090.00616.87
8.0.90.0150.00017.00
8.0.80.0130.00316.85
8.0.70.0110.00417.03
8.0.60.0090.00616.90
8.0.50.0100.00516.86
8.0.30.0140.00016.91
8.0.20.0090.00416.91
8.0.10.0100.00317.08

preferences:
96.93 ms | 1100 KiB | 5 Q