3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Availabl&e fr&om:& <ext-link ext-link-type="uri" xlink:href="www.psychPORT.com">http://www.psychPORT.com</ext-link>'; $string = preg_replace("/&\s/is", '\&\,', $string); echo($string);

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.0120.00918.21
8.3.50.0070.00718.19
8.3.40.0140.00018.61
8.3.30.0060.00918.98
8.3.20.0040.00420.24
8.3.10.0060.00322.09
8.3.00.0040.00423.48
8.2.180.0150.00018.66
8.2.170.0070.00722.96
8.2.160.0100.00322.11
8.2.150.0050.00224.18
8.2.140.0000.00724.66
8.2.130.0070.00020.56
8.2.120.0050.00326.35
8.2.110.0000.01021.03
8.2.100.0040.00818.03
8.2.90.0040.00419.13
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0030.00517.92
8.2.50.0040.00418.10
8.2.40.0080.00020.19
8.2.30.0050.00219.32
8.2.20.0000.00717.93
8.2.10.0040.00418.19
8.2.00.0050.00218.18
8.1.280.0100.01025.92
8.1.270.0030.00620.32
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0040.00822.39
8.1.230.0080.00320.26
8.1.220.0000.00817.75
8.1.210.0000.00918.77
8.1.200.0030.00617.38
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0080.00018.63
8.1.160.0050.00318.72
8.1.150.0040.00420.04
8.1.140.0040.00417.66
8.1.130.0070.00017.54
8.1.120.0000.00817.48
8.1.110.0040.00417.45
8.1.100.0000.00717.53
8.1.90.0100.00017.55
8.1.80.0000.00817.50
8.1.70.0070.00017.43
8.1.60.0000.00817.59
8.1.50.0040.00417.59
8.1.40.0030.00517.48
8.1.30.0040.00417.75
8.1.20.0030.00517.77
8.1.10.0030.00617.56
8.1.00.0030.00517.57
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0050.00317.24
8.0.260.0000.00617.00
8.0.250.0000.00917.06
8.0.240.0030.00316.97
8.0.230.0030.00317.07
8.0.220.0030.00616.96
8.0.210.0000.00716.99
8.0.200.0060.00017.05
8.0.190.0040.00416.99
8.0.180.0050.00317.04
8.0.170.0070.00017.05
8.0.160.0040.00416.92
8.0.150.0000.00716.83
8.0.140.0000.00716.97
8.0.130.0000.00513.41
8.0.120.0070.00016.82
8.0.110.0000.01016.92
8.0.100.0000.00717.00
8.0.90.0000.00716.93
8.0.80.0090.00616.88
8.0.70.0050.00316.84
8.0.60.0040.00416.96
8.0.50.0050.00216.86
8.0.30.0120.00717.02
8.0.20.0120.00817.41
8.0.10.0040.00417.05
8.0.00.0090.00916.75
7.4.330.0020.00215.55
7.4.320.0060.00016.62
7.4.300.0030.00316.77
7.4.290.0000.00916.70
7.4.280.0030.00616.69
7.4.270.0020.00516.73
7.4.260.0000.00716.73
7.4.250.0030.00316.63
7.4.240.0000.00816.67
7.4.230.0030.00316.86
7.4.220.0130.00816.53
7.4.210.0130.00516.61
7.4.200.0040.00416.57
7.4.160.0070.00816.52
7.4.150.0060.01317.40
7.4.140.0150.00717.86
7.4.130.0140.00716.65
7.4.120.0070.01016.63
7.4.110.0060.01016.65
7.4.100.0140.00416.70
7.4.90.0070.01016.54
7.4.80.0110.00719.39
7.4.70.0130.00616.56
7.4.60.0060.00916.82
7.4.50.0030.01316.43
7.4.40.0070.01016.52
7.4.30.0090.00916.46
7.4.00.0030.01614.91
7.3.330.0050.00013.14
7.3.320.0050.00013.21
7.3.310.0030.00316.28
7.3.300.0040.00416.33
7.3.290.0040.01116.33
7.3.280.0090.00916.34
7.3.270.0040.01417.40
7.3.260.0130.01116.56
7.3.250.0130.00616.44
7.3.240.0120.00716.44
7.3.230.0120.00916.64
7.3.210.0160.00016.45
7.3.200.0100.00716.19
7.3.190.0150.00616.47
7.3.180.0130.00316.57
7.3.170.0030.01516.63
7.3.160.0090.01316.47
7.3.120.0070.01014.84
7.3.110.0100.00715.07
7.3.100.0030.00814.41
7.3.90.0040.00414.71
7.3.80.0000.01215.01
7.3.70.0120.00614.55
7.3.60.0000.01414.96
7.3.50.0100.00714.92
7.3.40.0110.00314.88
7.3.30.0060.00914.93
7.3.20.0070.00716.83
7.3.10.0150.00316.53
7.3.00.0120.00916.51
7.2.330.0070.01016.81
7.2.320.0180.00316.80
7.2.310.0100.00716.84
7.2.300.0070.01016.80
7.2.290.0080.00816.73
7.2.250.0120.00614.92
7.2.240.0070.01415.11
7.2.230.0040.01115.08
7.2.220.0070.00315.16
7.2.210.0100.00715.11
7.2.200.0060.00614.73
7.2.190.0030.01314.83
7.2.180.0060.00914.93
7.2.170.0030.00714.94
7.2.160.0060.01014.98
7.2.150.0040.01116.93
7.2.140.0100.00717.04
7.2.130.0140.00716.76
7.2.120.0030.01216.87
7.2.110.0130.00616.71
7.2.100.0040.01016.63
7.2.90.0100.01016.81
7.2.80.0090.00816.81
7.2.70.0110.00816.87
7.2.60.0090.00816.75
7.2.50.0090.01017.02
7.2.40.0080.00716.91
7.2.30.0090.00616.88
7.2.20.0130.01016.81
7.2.10.0140.00516.93
7.2.00.0050.01116.82
7.1.330.0000.01215.82
7.1.320.0000.00915.80
7.1.310.0000.01515.75
7.1.300.0060.00916.05
7.1.290.0100.00315.78
7.1.280.0070.00715.72
7.1.270.0040.01115.61
7.1.260.0100.00315.54
7.1.250.0090.00615.61
7.1.200.0090.00316.05
7.1.100.0070.01118.21
7.1.90.0120.00318.25
7.1.80.0060.01118.20
7.1.70.0030.01617.13
7.1.60.0160.01035.44
7.1.50.0150.01235.02
7.1.40.0230.00334.63
7.1.30.0180.01134.75
7.1.20.0220.00634.96
7.1.10.0000.01716.72
7.1.00.0000.01316.96
7.0.240.0060.01317.82
7.0.230.0040.01118.04
7.0.220.0030.00917.93
7.0.210.0070.01116.80
7.0.200.0090.00916.79
7.0.190.0090.00517.04
7.0.180.0070.00716.37
7.0.170.0080.00416.37
7.0.160.0140.00316.48
7.0.150.0070.01016.34
7.0.140.0060.01016.50
7.0.130.0060.00916.70
7.0.120.0070.00716.64
7.0.110.0060.00916.54
7.0.100.0060.00916.41
7.0.90.0030.01016.43
7.0.80.0070.00716.43
7.0.70.0030.01216.54
7.0.60.0040.01116.36
7.0.50.0090.00616.43
7.0.40.0060.00916.80
7.0.30.0090.00616.43
7.0.20.0120.00616.63
7.0.10.0000.01616.64
7.0.00.0030.01016.36

preferences:
45.81 ms | 400 KiB | 5 Q