3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = "1. test autotest test<br \>2. test auto's test<br \>3.test auto test "; $message = preg_replace_callback("~( auto(?:'s)? )~si", function ($match) { return ' <a href="https://example.com">'.$match[1].'</a> '; }, $message, 1); echo $message; // here number 2 is correctly replaced, on my site number 3. Number 2 is not working on my site. I suspect the single quote is the problem on my site. Is there a workaround? ?>

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.10.0040.00416.90
8.5.00.0160.00620.14
8.4.150.0020.00014.05
8.4.140.0110.00918.02
8.4.130.0110.00818.65
8.4.120.0130.00723.91
8.4.110.0120.00919.16
8.4.100.0110.00918.95
8.4.90.0130.00720.69
8.4.80.0080.01218.57
8.4.70.0100.01117.99
8.4.60.0030.00520.77
8.4.50.0060.00319.95
8.4.40.0000.00820.70
8.4.30.0190.00018.79
8.4.20.0080.00318.90
8.4.10.0000.00817.88
8.3.280.0120.00918.61
8.3.270.0170.00716.63
8.3.260.0090.01016.92
8.3.250.0090.01118.98
8.3.240.0120.00717.03
8.3.230.0080.00916.68
8.3.220.0090.00818.95
8.3.210.0060.00216.85
8.3.200.0120.00716.71
8.3.190.0130.00518.40
8.3.180.0090.00916.68
8.3.170.0120.00616.66
8.3.160.0090.00917.35
8.3.150.0110.00716.75
8.3.140.0060.00317.08
8.3.130.0060.00318.36
8.3.120.0040.00418.68
8.3.110.0040.00416.63
8.3.100.0060.00324.06
8.3.90.0150.00826.77
8.3.80.0080.00318.55
8.3.70.0130.00318.43
8.3.60.0080.00818.43
8.3.50.0160.00317.61
8.3.40.0120.00618.90
8.3.30.0000.01518.82
8.3.20.0040.00420.65
8.3.10.0050.00320.34
8.3.00.0040.00423.51
8.2.290.0110.00720.58
8.2.280.0100.00620.27
8.2.270.0090.00918.64
8.2.260.0060.01316.86
8.2.250.0030.00616.80
8.2.240.0060.00318.84
8.2.230.0100.00020.94
8.2.220.0060.00337.54
8.2.210.0110.00426.77
8.2.200.0060.00316.63
8.2.190.0100.01016.63
8.2.180.0120.00318.66
8.2.170.0090.00919.04
8.2.160.0070.00720.14
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.71
8.2.110.0070.00319.27
8.2.100.0090.00317.97
8.2.90.0080.00020.59
8.2.80.0000.00917.97
8.2.70.0060.00317.80
8.2.60.0030.00618.09
8.2.50.0060.00318.10
8.2.40.0000.00819.47
8.2.30.0040.00419.35
8.2.20.0030.00518.16
8.2.10.0040.00419.26
8.2.00.0000.00719.22
8.1.330.0120.00622.12
8.1.320.0110.00916.21
8.1.310.0000.00818.32
8.1.300.0080.00418.11
8.1.290.0070.01130.84
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00922.48
8.1.230.0090.00320.96
8.1.220.0030.00517.74
8.1.210.0000.00818.88
8.1.200.0050.00617.35
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0040.00418.71
8.1.160.0080.00018.91
8.1.150.0040.00418.89
8.1.140.0030.00320.93
8.1.130.0000.00720.18
8.1.120.0000.00717.55
8.1.110.0040.00417.62
8.1.100.0080.00017.59
8.1.90.0020.00517.65
8.1.80.0040.00417.51
8.1.70.0000.00717.61
8.1.60.0040.00417.73
8.1.50.0000.00817.66
8.1.40.0090.00017.67
8.1.30.0050.00217.88
8.1.20.0030.00617.65
8.1.10.0030.00617.62
8.1.00.0040.00417.54
8.0.300.0000.00819.89
8.0.290.0040.00416.88
8.0.280.0070.00018.49
8.0.270.0030.00317.02
8.0.260.0030.00320.03
8.0.250.0030.00316.95
8.0.240.0030.00317.13
8.0.230.0000.00717.16
8.0.220.0000.00717.08
8.0.210.0050.00317.01
8.0.200.0060.00017.01
8.0.190.0000.00716.95
8.0.180.0070.00017.09
8.0.170.0000.00816.94
8.0.160.0030.00616.96
8.0.150.0040.00417.09
8.0.140.0000.00817.02
8.0.130.0000.00513.41
8.0.120.0000.00716.98
8.0.110.0040.00416.93
8.0.100.0000.00717.00
8.0.90.0040.00417.06
8.0.80.0060.01617.09
8.0.70.0000.00717.02
8.0.60.0050.00316.87
8.0.50.0070.00016.91
8.0.30.0090.01017.22
8.0.20.0120.00617.63
8.0.10.0000.00717.23
8.0.00.0110.00816.78
7.4.330.0000.00516.77
7.4.320.0070.00016.80
7.4.300.0060.00016.85
7.4.290.0050.00316.80
7.4.280.0090.00016.63
7.4.270.0090.00016.70
7.4.260.0000.00513.43
7.4.250.0030.00516.77
7.4.240.0000.00716.77
7.4.230.0000.00716.90
7.4.220.0020.00516.77
7.4.210.0080.00716.84
7.4.200.0030.00316.82
7.4.140.0120.00817.86
7.4.130.0140.00416.77
7.4.120.0190.00316.71
7.4.110.0080.01116.61
7.4.100.0070.01116.82
7.4.90.0000.01616.74
7.4.80.0190.00319.39
7.4.70.0030.01316.64
7.4.60.0000.01816.63
7.4.50.0140.00316.50
7.4.40.0100.00616.57
7.4.10.0030.01615.14
7.4.00.0050.01015.23
7.3.330.0040.00416.52
7.3.320.0000.00713.54
7.3.310.0000.00816.63
7.3.300.0000.00816.47
7.3.290.0080.00016.46
7.3.280.0040.01116.46
7.3.260.0110.00916.63
7.3.230.0130.00316.59
7.3.210.0120.00916.82
7.3.200.0070.01016.87
7.3.190.0100.00616.49
7.3.180.0130.01016.43
7.3.170.0100.01116.54
7.3.160.0090.00616.55
7.3.130.0000.01814.98
7.3.120.0090.00614.92
7.3.110.0080.00815.08
7.3.100.0080.00614.99
7.3.90.0030.01315.07
7.3.80.0050.00714.88
7.3.70.0060.00715.05
7.3.60.0070.00714.81
7.3.50.0030.01115.04
7.3.40.0060.00714.82
7.3.30.0090.00414.92
7.3.20.0040.01016.76
7.3.10.0060.00616.82
7.3.00.0060.00816.72
7.2.330.0150.00416.83
7.2.320.0070.01116.79
7.2.310.0100.00716.99
7.2.300.0060.00916.85
7.2.290.0170.00016.70
7.2.260.0030.01315.39
7.2.250.0030.01315.31
7.2.240.0060.00715.33
7.2.230.0040.01115.37
7.2.220.0090.00715.26
7.2.210.0060.00615.26
7.2.200.0080.00515.17
7.2.190.0060.00715.30
7.2.180.0070.00615.22
7.2.170.0070.00615.05
7.2.160.0090.00515.06
7.2.150.0060.00917.11
7.2.140.0100.00417.08
7.2.130.0100.00416.93
7.2.120.0080.00917.05
7.2.110.0070.00817.00
7.2.100.0050.00816.94
7.2.90.0060.00717.07
7.2.80.0080.00717.02
7.2.70.0100.00517.07
7.2.60.0110.00417.07
7.2.50.0070.00917.11
7.2.40.0060.00817.13
7.2.30.0050.01017.11
7.2.20.0080.00617.07
7.2.10.0060.00917.00
7.2.00.0030.01016.87
7.1.330.0070.00515.75
7.1.320.0060.00916.03
7.1.310.0060.00815.99
7.1.300.0070.00715.92
7.1.290.0080.00415.99
7.1.280.0090.00215.89
7.1.270.0050.00816.01
7.1.260.0070.00615.98
7.1.250.0070.00515.83
7.1.240.0120.00316.02
7.1.230.0000.01315.99
7.1.220.0030.00915.76
7.1.210.0040.01115.98
7.1.200.0040.01115.79
7.1.190.0090.00615.87
7.1.180.0070.00715.98
7.1.170.0070.00715.88
7.1.160.0060.00616.07
7.1.150.0030.01315.72
7.1.140.0070.01016.05
7.1.130.0100.00715.99
7.1.120.0030.01015.87
7.1.110.0070.00716.03
7.1.100.0080.00815.93
7.1.90.0100.00315.60
7.1.80.0070.00715.88
7.1.70.0110.00016.13
7.1.60.0030.00615.62
7.1.50.0000.01616.12
7.1.40.0070.01115.89
7.1.30.0030.01415.92
7.1.20.0040.00715.73
7.1.10.0030.01015.93
7.1.00.0030.01215.99

preferences:
166.59 ms | 403 KiB | 5 Q