3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT A number 555555555 then some more text and a quoted number "(123)4567890" and then 1 2 3 4 6 (54) 3 -2 and forward slashed /+--------0/ versus +--------0 then something more realistic '234 588 9191' no more text. This is not closed by the same character on both ends: "+012345678901/ which of course is a _necessary_ check? TEXT; echo preg_replace('~([\'"/])\+?[\d()\s-]{8,25}\d{1,2}\1(*SKIP)(*FAIL)|((?!\s)\+?[\d()\s-]{8,25}\d{1,2})~', "<strong>$2</strong>", $text);

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.0070.00918.71
8.5.20.0100.00619.54
8.5.10.0140.00716.87
8.5.00.0130.00820.09
8.4.180.0080.00925.50
8.4.170.0140.00823.88
8.4.160.0050.00523.90
8.4.150.0080.00516.89
8.4.140.0120.00917.77
8.4.130.0110.01018.04
8.4.120.0120.00722.16
8.4.110.0120.00820.73
8.4.100.0100.01017.96
8.4.90.0140.00918.79
8.4.80.0110.00718.04
8.4.70.0150.00818.13
8.4.60.0120.00820.63
8.4.50.0130.00717.81
8.4.40.0000.00917.73
8.4.30.0100.01018.66
8.4.20.0070.01018.88
8.4.10.0060.00317.84
8.3.300.0140.00620.53
8.3.290.0150.00720.95
8.3.280.0120.01118.54
8.3.270.0110.00816.52
8.3.260.0120.00716.85
8.3.250.0110.00718.79
8.3.240.0100.00916.54
8.3.230.0100.00916.54
8.3.220.0040.00417.05
8.3.210.0100.01016.80
8.3.200.0120.00816.52
8.3.190.0090.00719.00
8.3.180.0110.00916.76
8.3.170.0040.01417.33
8.3.160.0040.00420.62
8.3.150.0160.00318.96
8.3.140.0030.00516.57
8.3.130.0060.00318.29
8.3.120.0050.00520.61
8.3.110.0130.00720.94
8.3.100.0080.00018.24
8.3.90.0070.01326.77
8.3.80.0160.00319.36
8.3.70.0110.00716.63
8.3.60.0120.00618.30
8.3.50.0090.00318.45
8.3.40.0110.00418.87
8.3.30.0090.00618.94
8.3.20.0040.00421.82
8.3.10.0080.00023.66
8.3.00.0080.00022.40
8.2.300.0110.00918.37
8.2.290.0120.00820.35
8.2.280.0050.00318.70
8.2.270.0090.00920.77
8.2.260.0070.01019.02
8.2.250.0050.00318.43
8.2.240.0100.00016.99
8.2.230.0050.00522.58
8.2.220.0050.00324.06
8.2.210.0110.01126.77
8.2.200.0090.00018.88
8.2.190.0150.00616.75
8.2.180.0110.01118.25
8.2.170.0120.00322.96
8.2.160.0100.00319.41
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00221.12
8.2.110.0070.00322.39
8.2.100.0080.00417.91
8.2.90.0040.00419.73
8.2.80.0080.00019.21
8.2.70.0000.00817.80
8.2.60.0050.00518.05
8.2.50.0080.00018.10
8.2.40.0030.00619.34
8.2.30.0000.00719.21
8.2.20.0070.00018.02
8.2.10.0020.00519.15
8.2.00.0050.00219.10
8.1.340.0040.00721.68
8.1.330.0100.00921.97
8.1.320.0130.00716.55
8.1.310.0000.00816.88
8.1.300.0120.00616.29
8.1.290.0090.00030.84
8.1.280.0070.01125.92
8.1.270.0040.00422.47
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0100.00019.33
8.1.230.0040.00817.72
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0120.00017.38
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0030.00618.64
8.1.160.0040.00418.82
8.1.150.0050.00218.79
8.1.140.0040.00420.88
8.1.130.0000.00720.12
8.1.120.0020.00517.47
8.1.110.0040.00417.58
8.1.100.0030.00617.58
8.1.90.0000.00917.56
8.1.80.0040.00417.45
8.1.70.0040.00417.57
8.1.60.0030.00617.71
8.1.50.0040.00417.62
8.1.40.0000.00917.64
8.1.30.0030.00617.74
8.1.20.0050.00317.80
8.1.10.0000.00817.68
8.1.00.0040.00417.64
8.0.300.0000.00820.02
8.0.290.0040.00417.00
8.0.280.0030.00318.49
8.0.270.0030.00317.30
8.0.260.0030.00318.48
8.0.250.0000.00717.15
8.0.240.0020.00517.15
8.0.230.0000.00717.11
8.0.220.0000.00817.07
8.0.210.0030.00617.05
8.0.200.0040.00417.16
8.0.190.0030.00517.06
8.0.180.0000.00716.95
8.0.170.0000.00816.98
8.0.160.0000.00717.02
8.0.150.0040.00417.01
8.0.140.0030.00617.07
8.0.130.0080.00013.49
8.0.120.0000.00816.91
8.0.110.0070.00017.06
8.0.100.0060.00316.84
8.0.90.0030.00617.02
8.0.80.0120.00417.07
8.0.70.0000.00817.04
8.0.60.0000.00716.91
8.0.50.0000.00717.10
8.0.30.0180.00317.25
8.0.20.0100.00817.09
8.0.10.0040.00416.97
8.0.00.0100.00717.05
7.4.330.0050.00015.55
7.4.320.0060.00016.80
7.4.300.0060.00016.58
7.4.290.0070.00016.77
7.4.280.0110.00016.75
7.4.270.0030.00416.78
7.4.260.0000.00613.46
7.4.250.0000.00716.63
7.4.240.0000.00816.74
7.4.230.0030.00516.79
7.4.220.0030.00316.89
7.4.210.0100.00516.70
7.4.200.0000.00716.84
7.4.140.0080.01117.86
7.4.130.0120.00916.51
7.4.120.0150.00916.68
7.4.110.0070.01416.54
7.4.100.0090.01216.55
7.4.90.0080.01116.64
7.4.80.0030.01819.39
7.4.70.0080.01316.78
7.4.60.0090.01216.61
7.4.50.0030.01416.73
7.4.40.0100.00616.60
7.4.00.0040.01415.00
7.3.330.0000.00716.29
7.3.320.0030.00313.21
7.3.310.0050.00516.43
7.3.300.0000.00716.40
7.3.290.0030.00316.41
7.3.260.0100.01016.56
7.3.240.0100.00716.48
7.3.230.0040.01416.40
7.3.210.0080.00916.48
7.3.200.0100.00716.38
7.3.190.0120.00416.58
7.3.180.0060.01116.49
7.3.170.0080.00916.51
7.3.160.0120.00616.63
7.3.90.0160.00315.04
7.3.80.0100.01014.98
7.3.70.0080.00614.43
7.3.60.0060.01414.92
7.3.50.0030.01114.87
7.3.40.0090.00614.91
7.3.30.0080.00514.80
7.3.20.0070.00714.82
7.3.10.0120.00414.82
7.3.00.0120.00414.87
7.2.330.0100.00716.43
7.2.320.0080.00816.69
7.2.310.0030.01316.80
7.2.300.0030.01316.71
7.2.290.0080.00816.52
7.2.220.0090.00615.09
7.2.210.0090.01214.96
7.2.200.0120.00614.89
7.2.190.0150.00015.12
7.2.180.0000.01515.09
7.2.170.0060.00915.00
7.2.160.0040.01014.98
7.2.150.0100.00715.20
7.2.140.0090.00614.84
7.2.130.0040.01115.04
7.2.120.0090.00615.08
7.2.110.0080.00715.26
7.2.100.0060.00915.12
7.2.90.0030.01214.93
7.2.80.0080.00815.07
7.2.70.0130.00315.07
7.2.60.0080.00815.11
7.2.50.0100.00514.93
7.2.40.0030.01314.84
7.2.30.0030.01315.26
7.2.20.0000.01515.01
7.2.10.0090.01215.01
7.2.00.0030.01315.30
7.1.320.0060.00913.97
7.1.310.0160.01013.88
7.1.300.0070.00813.91
7.1.290.0080.00614.17
7.1.280.0070.00714.04
7.1.270.0090.00613.96
7.1.260.0070.00714.04
7.1.250.0090.00914.16

preferences:
54.3 ms | 1547 KiB | 5 Q