3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s['longDescription'] = 'replace these ***** not this* and *** this ** ****'; $blurb = preg_replace("/(?:(?<=\*)|(?=\*\*))\*/", "&#9733;", $s['longDescription']); echo $blurb;

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.1.70.0070.00017.44
8.1.60.0000.00817.64
8.1.50.0020.00517.57
8.1.40.0050.00317.54
8.1.30.0000.00817.77
8.1.20.0000.00817.70
8.1.10.0040.00417.68
8.1.00.0000.00717.51
8.0.200.0070.00016.92
8.0.190.0030.00617.02
8.0.180.0070.00016.88
8.0.170.0000.00816.87
8.0.160.0040.00417.03
8.0.150.0070.00316.88
8.0.140.0050.00516.88
8.0.130.0050.00013.39
8.0.120.0040.00416.79
8.0.110.0070.00016.97
8.0.100.0000.00716.85
8.0.90.0000.00716.77
8.0.80.0070.01116.87
8.0.70.0000.00716.99
8.0.60.0070.00017.04
8.0.50.0000.00716.91
8.0.30.0080.01117.28
8.0.20.0060.01317.03
8.0.10.0070.00016.98
8.0.00.0100.00816.85
7.4.300.0030.00316.59
7.4.290.0040.00416.67
7.4.280.0090.00016.79
7.4.270.0000.00716.51
7.4.260.0000.00513.34
7.4.250.0000.00916.59
7.4.240.0030.00316.64
7.4.230.0040.00416.49
7.4.220.0100.00716.75
7.4.210.0090.00716.66
7.4.200.0070.00016.64
7.4.190.0000.00816.59
7.4.160.0030.01316.65
7.4.150.0060.01216.63
7.4.140.0070.01216.61
7.4.130.0100.00816.58
7.4.120.0090.00816.72
7.4.110.0110.00716.80
7.4.100.0100.00716.77
7.4.90.0060.01316.61
7.4.80.0150.00416.64
7.4.70.0040.01416.48
7.4.60.0100.01016.64
7.4.50.0000.00916.84
7.4.40.0060.00916.75
7.4.30.0060.01216.65
7.4.00.0030.01415.34
7.3.330.0060.00013.32
7.3.320.0030.00313.17
7.3.310.0000.00716.50
7.3.300.0030.00316.49
7.3.290.0120.00316.51
7.3.280.0090.01116.51
7.3.270.0090.00916.40
7.3.260.0120.00516.64
7.3.250.0140.00616.57
7.3.240.0070.01016.73
7.3.230.0040.01416.57
7.3.210.0140.00516.85
7.3.200.0110.01319.39
7.3.190.0120.01216.78
7.3.180.0090.00616.34
7.3.170.0150.00016.55
7.3.160.0110.00516.58
7.3.120.0000.00815.07
7.2.330.0090.00916.49
7.2.320.0130.00416.71
7.2.310.0120.00916.58
7.2.300.0070.01016.73
7.2.290.0030.01316.85
7.2.60.0080.00417.21
7.2.00.0060.01019.88
7.1.200.0070.00715.91
7.1.100.0040.00718.12
7.1.70.0030.00617.43
7.1.60.0140.01019.40
7.1.50.0040.00717.15
7.1.00.0030.07722.36
7.0.200.0520.00314.72
7.0.140.0000.07321.97
7.0.120.0030.07022.01
7.0.60.0130.04019.87
7.0.50.0000.09017.90
7.0.40.0070.05020.26
7.0.30.0300.04720.11
7.0.20.0300.03720.03
7.0.10.0000.05020.07
7.0.00.0070.04020.10
5.6.280.0030.07320.85
5.6.210.0100.03320.61
5.6.200.0100.07318.21
5.6.190.0130.07020.77
5.6.180.0470.04320.45
5.6.170.0200.04720.47
5.6.160.0070.08320.61
5.6.150.0000.07718.20
5.6.140.0030.04018.21
5.6.130.0170.06318.11
5.6.120.0100.07020.98
5.6.110.0030.05020.97
5.6.100.0030.08320.98
5.6.90.0070.08321.05
5.6.80.0200.06720.34
5.5.350.0070.05020.43
5.5.340.0100.05317.99
5.5.330.0070.07020.21
5.5.320.0270.07320.20
5.5.310.0300.08020.21
5.5.300.0130.07017.95
5.5.290.0070.05317.95
5.5.280.0070.05320.86
5.5.270.0170.07320.83
5.5.260.0100.04320.71
5.5.250.0030.06320.49
5.5.240.0070.03720.27
5.4.450.0000.04019.51
5.4.440.0100.03319.41
5.4.430.0030.04019.13
5.4.420.0000.04019.23
5.4.410.0000.04318.98
5.4.400.0100.03019.16
5.4.390.0030.04019.14
5.4.380.0030.03719.17
5.4.370.0070.06319.14
5.4.360.0030.08718.91
5.4.350.0030.04719.18
5.4.340.0070.05018.81
5.4.320.0130.06719.08
5.4.310.0030.05319.07
5.4.300.0070.03319.18
5.4.290.0030.04319.08
5.4.280.0070.04318.80
5.4.270.0030.07019.18
5.4.260.0070.04719.10
5.4.250.0030.04019.19
5.4.240.0070.07318.78
5.4.230.0170.04019.07
5.4.220.0030.08718.92
5.4.210.0130.06718.78
5.4.200.0100.06318.81
5.4.190.0100.07319.12
5.4.180.0170.06018.80
5.4.170.0130.06718.78
5.4.160.0200.04319.16
5.4.150.0070.06719.13
5.4.140.0030.07716.36
5.4.130.0000.04016.20
5.4.120.0070.03716.26
5.4.110.0100.04016.40
5.4.100.0100.04316.61
5.4.90.0030.03716.41
5.4.80.0030.04316.36
5.4.70.0000.04316.58
5.4.60.0100.06016.36
5.4.50.0100.03316.34
5.4.40.0130.06716.29
5.4.30.0030.04016.34
5.4.20.0070.05316.21
5.4.10.0030.05016.33
5.4.00.0030.04015.93
5.3.290.0100.07314.59
5.3.280.0100.06314.51
5.3.270.0070.05714.62
5.3.260.0070.05314.52
5.3.250.0000.08314.54
5.3.240.0070.04714.53
5.3.230.0070.03314.49
5.3.220.0100.03714.48
5.3.210.0070.03714.48
5.3.200.0000.08314.65
5.3.190.0100.06314.52
5.3.180.0070.07714.54
5.3.170.0030.07714.48
5.3.160.0100.06714.43
5.3.150.0130.07014.46
5.3.140.0070.05714.51
5.3.130.0000.04714.50
5.3.120.0000.04014.63
5.3.110.0100.04714.63
5.3.100.0000.05314.13
5.3.90.0130.03313.95
5.3.80.0030.03713.98
5.3.70.0100.05713.99
5.3.60.0070.03313.93
5.3.50.0070.03313.75
5.3.40.0130.06713.87
5.3.30.0030.07713.84
5.3.20.0070.06013.64
5.3.10.0000.04313.62
5.3.00.0000.04013.44
5.2.170.0070.03011.23
5.2.160.0030.05711.00
5.2.150.0030.03711.02
5.2.140.0070.06010.96
5.2.130.0000.03011.04
5.2.120.0070.02311.03
5.2.110.0030.06711.09
5.2.100.0000.03011.09
5.2.90.0070.03311.03
5.2.80.0000.03011.09
5.2.70.0070.03010.96
5.2.60.0000.03711.01
5.2.50.0000.05710.90
5.2.40.0000.03010.87
5.2.30.0070.04011.07
5.2.20.0000.03010.97
5.2.10.0000.04010.76
5.2.00.0100.05710.69
5.1.60.0030.05710.69
5.1.50.0000.05710.69
5.1.40.0030.02310.69
5.1.30.0000.03010.69
5.1.20.0030.02310.69
5.1.10.0030.02310.69
5.1.00.0000.02710.69
5.0.50.0030.02310.69
5.0.40.0000.02010.69
5.0.30.0070.02710.69
5.0.20.0070.03310.69
5.0.10.0000.02010.69
5.0.00.0000.03010.69
4.4.90.0000.01710.69
4.4.80.0000.01710.69
4.4.70.0030.01310.69
4.4.60.0030.03010.69
4.4.50.0070.02010.69
4.4.40.0030.05010.69
4.4.30.0000.01710.69
4.4.20.0030.01710.69
4.4.10.0000.01710.69
4.4.00.0000.02310.69
4.3.110.0000.01710.69
4.3.100.0000.01710.69
4.3.90.0000.01310.69
4.3.80.0070.04310.69
4.3.70.0000.02710.69
4.3.60.0000.02010.69
4.3.50.0000.01310.69
4.3.40.0030.05010.69
4.3.30.0030.01310.69
4.3.20.0000.02010.69
4.3.10.0000.01710.69
4.3.00.0000.01710.69

preferences:
13.89 ms | 406 KiB | 5 Q