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.0160.00018.56
8.3.50.0120.00318.30
8.3.40.0110.00319.02
8.3.30.0060.00918.96
8.3.20.0070.00020.35
8.3.10.0040.00422.05
8.3.00.0050.00323.73
8.2.180.0120.00318.41
8.2.170.0150.00019.14
8.2.160.0030.01022.96
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0000.00720.51
8.2.120.0040.00426.35
8.2.110.0030.00719.32
8.2.100.0070.00318.22
8.2.90.0030.00519.17
8.2.80.0000.00917.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0030.00319.20
8.2.20.0050.00218.07
8.2.10.0020.00518.02
8.2.00.0000.00717.99
8.1.280.0150.00625.92
8.1.270.0000.00820.48
8.1.260.0090.00026.35
8.1.250.0050.00228.09
8.1.240.0070.00321.06
8.1.230.0110.00020.18
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0030.00518.71
8.1.160.0040.00418.90
8.1.150.0030.00320.10
8.1.140.0000.00717.58
8.1.130.0030.00319.03
8.1.120.0040.00417.59
8.1.110.0030.00517.55
8.1.100.0080.00017.54
8.1.90.0060.00317.51
8.1.80.0000.00717.45
8.1.70.0040.00417.51
8.1.60.0060.00317.58
8.1.50.0000.00817.51
8.1.40.0000.00817.46
8.1.30.0040.00417.74
8.1.20.0040.00417.63
8.1.10.0000.00717.54
8.1.00.0030.00717.45
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0000.00718.37
8.0.270.0040.00417.33
8.0.260.0000.00718.57
8.0.250.0000.00817.00
8.0.240.0040.00417.06
8.0.230.0070.00017.04
8.0.220.0000.00716.86
8.0.210.0030.00617.04
8.0.200.0030.00317.05
8.0.190.0090.00016.94
8.0.180.0040.00417.00
8.0.170.0040.00417.03
8.0.160.0000.00717.03
8.0.150.0040.00416.98
8.0.140.0000.00816.93
8.0.130.0050.00013.38
8.0.120.0040.00416.83
8.0.110.0030.00516.98
8.0.100.0000.00716.84
8.0.90.0040.00416.98
8.0.80.0120.00316.98
8.0.70.0020.00516.82
8.0.60.0040.00416.83
8.0.50.0040.00416.94
8.0.30.0120.00517.29
8.0.20.0100.00917.40
8.0.10.0050.00216.92
8.0.00.0030.01416.66
7.4.330.0050.00015.55
7.4.320.0000.00616.61
7.4.300.0030.00316.55
7.4.290.0070.00416.54
7.4.280.0050.00316.71
7.4.270.0050.00316.71
7.4.260.0000.00716.67
7.4.250.0080.00016.61
7.4.240.0040.00416.66
7.4.230.0040.00416.84
7.4.220.0100.02116.77
7.4.210.0030.01016.66
7.4.200.0030.00316.58
7.4.160.0140.00616.64
7.4.150.0110.00617.40
7.4.140.0140.00717.86
7.4.130.0120.00816.68
7.4.120.0120.00916.55
7.4.110.0060.01216.54
7.4.100.0040.01416.63
7.4.90.0080.01116.70
7.4.80.0160.00719.39
7.4.70.0130.01016.56
7.4.60.0130.00316.53
7.4.50.0040.01116.46
7.4.40.0100.00616.61
7.4.30.0080.00816.58
7.4.00.0120.00314.95
7.3.330.0020.00213.28
7.3.320.0030.00313.18
7.3.310.0070.00016.29
7.3.300.0030.00316.39
7.3.290.0180.00616.36
7.3.280.0090.00816.37
7.3.270.0130.00317.40
7.3.260.0040.01416.63
7.3.250.0110.00616.40
7.3.240.0070.01016.33
7.3.230.0090.01516.49
7.3.210.0030.01316.64
7.3.200.0030.01316.58
7.3.190.0120.00416.62
7.3.180.0060.01016.58
7.3.170.0030.01316.50
7.3.160.0100.00716.65
7.2.330.0130.00316.51
7.2.320.0120.00616.69
7.2.310.0130.00916.70
7.2.300.0110.00816.54
7.2.290.0060.00916.60
7.2.60.0000.01016.71
7.1.200.0040.00416.01
7.1.100.2010.01316.61
7.1.90.1760.00716.22
7.1.80.2180.01316.36
7.1.70.2190.01315.57
7.1.60.1980.01333.44
7.1.50.1470.01032.88
7.1.40.1520.01732.75
7.1.30.2520.01932.88
7.1.20.1510.02333.08
7.1.10.0040.01514.87
7.1.00.2540.01615.21
7.0.240.1430.01015.77
7.0.230.2280.01016.07
7.0.220.1800.00616.26
7.0.210.2370.00714.88
7.0.200.1270.00714.73
7.0.190.2140.01014.86
7.0.180.2030.01914.82
7.0.170.1780.00714.51
7.0.160.1590.00614.68
7.0.150.1160.00914.51
7.0.140.1930.01214.76
7.0.130.2480.00914.98
7.0.120.2150.01014.77
7.0.110.1810.00514.76
7.0.100.1520.01014.54
7.0.90.2270.01014.62
7.0.80.1840.01014.63
7.0.70.1780.00614.55
7.0.60.1760.01714.62
7.0.50.1790.01314.77
7.0.40.1750.01014.98
7.0.30.2400.01015.08
7.0.20.2400.01014.88
7.0.10.2330.01015.02
7.0.00.2050.01214.56

preferences:
103.55 ms | 401 KiB | 5 Q