3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Call a group of 8 Shadow Beasts to plummet from the sky at a targeted location dealing 3200% total weapon damage over 5 seconds and stunning enemies hit for 2 seconds.'; echo preg_replace("/[0-9]*%/", '<span class="d3-text-green">$1</span>', $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.0070.00718.27
8.3.50.0080.00621.15
8.3.40.0070.00719.05
8.3.30.0040.01119.01
8.3.20.0070.00320.35
8.3.10.0040.00422.09
8.3.00.0040.00420.64
8.2.180.0070.01117.00
8.2.170.0140.00722.96
8.2.160.0140.00019.26
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00717.50
8.2.110.0060.00321.95
8.2.100.0120.00019.88
8.2.90.0040.00419.05
8.2.80.0080.00017.97
8.2.70.0110.00317.38
8.2.60.0060.00618.03
8.2.50.0030.00618.07
8.2.40.0030.00519.89
8.2.30.0070.00018.09
8.2.20.0050.00317.91
8.2.10.0040.00417.63
8.2.00.0060.00317.64
8.1.280.0070.00725.92
8.1.270.0040.00422.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0060.00619.00
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00717.23
8.1.190.0000.00917.41
8.1.180.0000.00718.61
8.1.170.0030.00518.56
8.1.160.0070.00022.10
8.1.150.0040.00418.77
8.1.140.0030.00617.51
8.1.130.0030.00617.79
8.1.120.0080.00017.52
8.1.110.0050.00217.57
8.1.100.0040.00417.60
8.1.90.0040.00417.61
8.1.80.0020.00517.45
8.1.70.0000.00717.56
8.1.60.0030.00617.55
8.1.50.0050.00217.60
8.1.40.0040.00417.53
8.1.30.0000.00817.71
8.1.20.0000.00817.80
8.1.10.0040.00417.70
8.1.00.0040.00417.56
8.0.300.0070.00018.77
8.0.290.0040.00417.15
8.0.280.0040.00418.46
8.0.270.0050.00317.17
8.0.260.0000.00617.07
8.0.250.0000.00717.12
8.0.240.0000.00717.13
8.0.230.0040.00416.96
8.0.220.0000.00717.00
8.0.210.0040.00417.02
8.0.200.0060.00016.95
8.0.190.0080.00016.93
8.0.180.0000.00717.00
8.0.170.0000.00917.02
8.0.160.0000.00716.90
8.0.150.0040.00416.91
8.0.140.0040.00416.95
8.0.130.0030.00313.46
8.0.120.0000.00816.82
8.0.110.0000.00716.90
8.0.100.0040.00417.04
8.0.90.0040.00416.77
8.0.80.0040.01117.01
8.0.70.0000.00717.05
8.0.60.0070.00017.09
8.0.50.0040.00416.94
8.0.30.0050.01617.19
8.0.20.0090.01117.40
8.0.10.0040.00417.08
8.0.00.0090.01116.85
7.4.330.0070.00015.00
7.4.320.0030.00316.75
7.4.300.0070.00016.73
7.4.290.0080.00016.64
7.4.280.0030.00316.66
7.4.270.0070.00016.75
7.4.260.0030.00316.57
7.4.250.0070.00016.61
7.4.240.0020.00616.77
7.4.230.0070.00016.81
7.4.220.0000.01516.52
7.4.210.0070.00916.64
7.4.200.0000.00716.73
7.4.190.0040.00416.64
7.4.160.0100.00516.75
7.4.150.0070.01017.40
7.4.140.0100.01217.86
7.4.130.0090.00816.54
7.4.120.0110.00616.74
7.4.110.0140.00316.44
7.4.100.0060.01216.79
7.4.90.0100.00716.63
7.4.80.0110.00719.39
7.4.70.0120.01216.83
7.4.60.0120.00416.68
7.4.50.0030.00316.60
7.4.40.0070.01122.77
7.4.30.0110.01116.61
7.4.00.0070.01014.92
7.3.330.0050.00013.04
7.3.320.0020.00213.05
7.3.310.0000.00716.43
7.3.300.0030.00316.31
7.3.290.0090.00616.39
7.3.280.0090.00716.36
7.3.270.0090.00917.40
7.3.260.0190.00316.18
7.3.250.0110.00616.69
7.3.240.0150.00816.71
7.3.230.0100.01116.39
7.3.210.0070.01016.56
7.3.200.0090.00919.39
7.3.190.0100.00716.59
7.3.180.0070.00916.36
7.3.170.0120.00916.58
7.3.160.0100.00616.35
7.3.120.0030.01415.01
7.3.10.0100.00316.14
7.3.00.0170.00016.52
7.2.330.0090.00916.52
7.2.320.0140.00316.63
7.2.310.0130.00916.57
7.2.300.0070.01016.65
7.2.290.0030.01316.72
7.2.130.0210.00416.75
7.2.120.0090.01216.77
7.2.110.0070.01016.63
7.2.100.0170.00316.55
7.2.90.0180.00616.89
7.2.80.0100.00716.93
7.2.70.0120.00616.57
7.2.60.0100.01016.65
7.2.50.0170.00516.58
7.2.40.0110.00916.69
7.2.30.0150.00616.56
7.2.20.0150.00316.73
7.2.10.0110.00816.29
7.2.00.0100.01016.63
7.1.250.0160.00315.57
7.1.70.0040.00417.14
7.1.60.0090.01219.82
7.1.50.0140.01016.99
7.1.00.0030.07722.55
7.0.200.0090.00616.81
7.0.140.0070.07021.96
7.0.60.0070.08319.93
7.0.50.0070.04017.91
7.0.40.0030.05020.23
7.0.30.0300.07320.35
7.0.20.0330.08020.02
7.0.10.0270.05320.02
7.0.00.0100.08320.14
5.6.280.0070.07021.08
5.6.210.0070.05720.46
5.6.200.0030.04318.12
5.6.190.0030.09020.61
5.6.180.3400.04020.39
5.6.170.0400.07020.38
5.6.160.0000.08720.51
5.6.150.0100.07718.19
5.6.140.0100.07318.15
5.6.130.0070.05018.11
5.6.120.0070.03720.98
5.6.110.0170.06021.03
5.6.100.0030.08321.00
5.6.90.0170.07721.09
5.6.80.0100.06020.40
5.6.70.0230.04020.49
5.5.350.0000.08320.45
5.5.340.0070.07317.92
5.5.330.0100.08020.57
5.5.320.0300.08020.41
5.5.310.0270.07020.31
5.5.300.0100.08017.91
5.5.290.0030.04017.88
5.5.280.0130.05320.76
5.5.270.0000.09020.72
5.5.260.0100.05720.75
5.5.250.0000.04320.68
5.5.240.0070.07720.15
5.4.450.0800.05719.24
5.4.440.0770.06319.47
5.4.430.0800.05319.45
5.4.420.0930.04319.48
5.4.410.0100.05719.34
5.4.400.1700.00018.81
5.4.390.1430.00018.76
5.4.380.0270.06018.72
5.4.370.0270.05318.70
5.4.360.0330.06718.79
5.4.350.0300.07318.65
5.4.340.0270.06318.77
5.4.320.0080.03712.45
5.4.310.0060.04412.45
5.4.300.0070.03612.45
5.4.290.0070.03612.45
5.4.280.0100.03512.35
5.4.270.0090.04212.35
5.4.260.0030.06018.86
5.4.250.0130.04718.80
5.4.240.0200.06018.75
5.4.230.0170.05018.64
5.4.220.0130.05318.78
5.4.210.0100.06018.66
5.4.200.0200.06018.69
5.4.190.0030.05318.77
5.4.180.0000.05718.78
5.4.170.0070.05318.73
5.4.160.0170.05019.01
5.4.150.0100.05018.80
5.4.140.0100.04716.30
5.4.130.0030.05316.24
5.4.120.0030.05016.24
5.4.110.0000.06016.36
5.4.100.0100.04316.36
5.4.90.0070.04716.29
5.4.80.0030.06716.50
5.4.70.0170.05716.47
5.4.60.0130.04316.42
5.4.50.0070.04716.38
5.4.40.0100.05016.39
5.4.30.0100.04716.46
5.4.20.0100.04316.45
5.4.10.0100.05016.52
5.4.00.0070.04715.71
5.3.290.0070.03912.80
5.3.280.0070.05314.59
5.3.270.0070.05314.46
5.3.260.0030.05714.71
5.3.250.0070.05014.75
5.3.240.0030.05314.61
5.3.230.0070.05014.60
5.3.220.0100.04714.45
5.3.210.0070.05014.55
5.3.200.0070.05014.41
5.3.190.0030.05314.45
5.3.180.0130.04314.56
5.3.170.0070.05014.39
5.3.160.0070.05014.25
5.3.150.0030.05314.39
5.3.140.0130.04014.25
5.3.130.0100.04714.59
5.3.120.0130.05014.56
5.3.110.0230.04714.59
5.3.100.0100.06713.91
5.3.90.0130.06714.10
5.3.80.0070.07013.89
5.3.70.0030.05313.88
5.3.60.0030.05313.77
5.3.50.0030.05313.86
5.3.40.0030.05013.96
5.3.30.0070.05013.79
5.3.20.0170.05013.54
5.3.10.0200.04713.66
5.3.00.0030.05013.66
5.2.170.0030.06311.16
5.2.160.0070.03710.97
5.2.150.0100.03711.14
5.2.140.0030.04310.90
5.2.130.0130.04011.11
5.2.120.0170.03010.86
5.2.110.0030.06011.03
5.2.100.0030.04011.11
5.2.90.0070.03710.98
5.2.80.0030.04311.19
5.2.70.0030.04311.09
5.2.60.0070.03711.20
5.2.50.0030.04011.13
5.2.40.0030.04310.77
5.2.30.0070.04011.12
5.2.20.0030.04310.97
5.2.10.0070.03711.02
5.2.00.0000.04310.63
5.1.60.0070.03010.05
5.1.50.0030.03710.22
5.1.40.0030.0339.84
5.1.30.0000.04010.50
5.1.20.0030.03710.52
5.1.10.0100.03010.12
5.1.00.0130.02310.12
5.0.50.0100.0338.45
5.0.40.0030.0278.33
5.0.30.0000.0438.28
5.0.20.0000.0308.18
5.0.10.0070.0238.11
5.0.00.0030.0407.98
4.4.90.0070.0176.46
4.4.80.0000.0306.46
4.4.70.0000.0236.46
4.4.60.0030.0206.46
4.4.50.0000.0236.46
4.4.40.0000.0376.46
4.4.30.0000.0236.46
4.4.20.0030.0236.46
4.4.10.0070.0276.46
4.4.00.0030.0336.46
4.3.110.0000.0236.46
4.3.100.0000.0236.46
4.3.90.0030.0176.46
4.3.80.0000.0336.46
4.3.70.0030.0206.46
4.3.60.0000.0236.46
4.3.50.0030.0206.46
4.3.40.0000.0336.46
4.3.30.0000.0236.46
4.3.20.0030.0206.46
4.3.10.0000.0206.46
4.3.00.0100.0205.64

preferences:
39.31 ms | 401 KiB | 5 Q