3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<div id="_ftn88"> <p class="FootnoteText" style="text-align:left"> <a href="#_ftnref88"><span class="FootnoteReference" style="font-family:\'Times New Roman\'; font-size:8pt">[88]</span></a><span style="font-family:\'Times New Roman\'; font-size:10pt"> </span><span style="width:7.86pt; text-indent:0pt; display:inline-block"></span><span style="font-family:\'Times New Roman\'; font-size:10pt">At 96.</span> </p> </div>'; preg_replace_callback( "/<p(.*?)>(.*?)<\/p>/s", "replaceMatches", $text); function replaceMatches($matches) { // as usual: $matches[0] is the complete match // $matches[1] the match for the first subpattern // enclosed in '(...)' and so on $matches[2] = str_replace('span', 'strong', $matches[2]); return $matches; }

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.70.0100.01018.43
8.3.60.0080.00817.00
8.3.50.0060.01222.04
8.3.40.0070.01019.04
8.3.30.0090.00618.91
8.3.20.0070.00020.24
8.3.10.0040.00423.78
8.3.00.0080.00019.50
8.2.190.0090.00917.13
8.2.180.0100.00618.54
8.2.170.0140.00422.96
8.2.160.0130.00722.25
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0080.00417.75
8.2.120.0000.00826.35
8.2.110.0090.00020.40
8.2.100.0090.00318.03
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0040.00420.46
8.2.30.0000.00720.67
8.2.20.0060.00317.77
8.2.10.0040.00418.07
8.2.00.0040.00418.00
8.1.280.0140.00325.92
8.1.270.0040.00422.19
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0110.00021.05
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00318.54
8.1.160.0070.00021.98
8.1.150.0000.00719.00
8.1.140.0050.00319.59
8.1.130.0000.00717.73
8.1.120.0000.00817.57
8.1.110.0000.00817.45
8.1.100.0030.00517.52
8.1.90.0080.00017.53
8.1.80.0050.00317.59
8.1.70.0000.00717.54
8.1.60.0030.00517.52
8.1.50.0040.00417.53
8.1.40.0040.00417.53
8.1.30.0000.00917.68
8.1.20.0040.00417.74
8.1.10.0040.00417.53
8.1.00.0090.00317.68
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.42
8.0.270.0040.00417.23
8.0.260.0030.00317.23
8.0.250.0000.00817.07
8.0.240.0000.00817.13
8.0.230.0000.00717.01
8.0.220.0070.00017.05
8.0.210.0030.00316.93
8.0.200.0000.00617.12
8.0.190.0000.00817.05
8.0.180.0000.00716.99
8.0.170.0030.00617.07
8.0.160.0040.00417.18
8.0.150.0040.00416.93
8.0.140.0070.00016.99
8.0.130.0030.00313.52
8.0.120.0090.00016.98
8.0.110.0040.00417.00
8.0.100.0000.00717.05
8.0.90.0040.00417.03
8.0.80.0110.00717.01
8.0.70.0040.00416.96
8.0.60.0000.00717.07
8.0.50.0040.00416.95
8.0.30.0130.00717.10
8.0.20.0100.00917.40
8.0.10.0040.00417.09
8.0.00.0120.00516.78
7.4.330.0020.00215.08
7.4.320.0030.00316.72
7.4.300.0000.00616.59
7.4.290.0000.00716.70
7.4.280.0050.00316.66
7.4.270.0030.00316.82
7.4.260.0000.00716.63
7.4.250.0000.00816.68
7.4.240.0010.00616.64
7.4.230.0000.00716.53
7.4.220.0090.00916.61
7.4.210.0090.00916.61
7.4.200.0050.00316.87
7.4.160.0100.00716.62
7.4.150.0070.01117.40
7.4.140.0110.01017.86
7.4.130.0090.00916.73
7.4.120.0090.00816.65
7.4.110.0090.00916.87
7.4.100.0090.00916.67
7.4.90.0030.01316.84
7.4.80.0090.00919.39
7.4.70.0060.00916.81
7.4.60.0100.00716.62
7.4.50.0040.01416.89
7.4.40.0120.00916.72
7.4.30.0110.01116.81
7.4.00.0030.01415.34
7.3.330.0020.00213.28
7.3.320.0050.00013.41
7.3.310.0000.00716.45
7.3.300.0040.00416.35
7.3.290.0080.00816.55
7.3.280.0090.00916.47
7.3.270.0180.00417.40
7.3.260.0100.01316.75
7.3.250.0130.00416.58
7.3.240.0110.00516.48
7.3.230.0100.01016.71
7.3.210.0040.01216.77
7.3.200.0090.00616.58
7.3.190.0170.00016.54
7.3.180.0170.03116.51
7.3.170.0170.00016.60
7.3.160.0030.01316.52
7.3.10.0060.01016.81
7.3.00.0110.00216.74
7.2.330.0040.01516.73
7.2.320.0030.01416.68
7.2.310.0140.00316.68
7.2.300.0130.00316.77
7.2.290.0100.00716.87
7.2.130.0050.00816.90
7.2.120.0060.00816.96
7.2.110.0070.00716.90
7.2.100.0100.00316.81
7.2.90.0050.00916.98
7.2.80.0070.00716.84
7.2.70.0090.00616.96
7.2.60.0080.00717.04
7.2.50.0040.01017.01
7.2.40.0090.00416.86
7.2.30.0040.01216.96
7.2.20.0080.00516.93
7.2.10.0040.00916.76
7.2.00.0040.00917.88
7.1.250.0070.00715.94
7.1.240.0040.00415.99
7.1.230.0070.00716.11
7.1.220.0090.00015.89
7.1.210.0070.00715.85
7.1.200.0080.00315.75
7.1.190.0140.00016.05
7.1.180.0060.00616.07
7.1.170.0030.00716.06
7.1.160.0080.00415.64
7.1.150.0030.00715.70
7.1.140.0030.01015.75
7.1.130.0070.01015.98
7.1.120.0100.00315.66
7.1.110.0040.01116.02
7.1.100.0000.01417.08
7.1.90.0000.01415.68
7.1.80.0030.00616.00
7.1.70.0060.00616.56
7.1.60.0080.01117.66
7.1.50.0050.00516.36
7.1.40.0030.00715.87
7.1.30.0060.01015.95
7.1.20.0100.00015.70
7.1.10.0030.00915.72
7.1.00.0010.04419.21
7.0.330.0060.00615.50
7.0.320.0060.00915.33
7.0.310.0030.01015.59
7.0.300.0120.00015.57
7.0.290.0030.00615.50
7.0.280.0030.01015.02
7.0.270.0040.00815.52
7.0.260.0030.00715.36
7.0.250.0060.01015.71
7.0.240.0070.00315.61
7.0.230.0060.00615.50
7.0.220.0120.00015.60
7.0.210.0030.00915.29
7.0.200.0070.00716.11
7.0.190.0060.00615.58
7.0.180.0030.01015.48
7.0.170.0030.01015.48
7.0.160.0060.00915.26
7.0.150.0110.00415.32
7.0.140.0050.00515.32
7.0.130.0000.01415.61
7.0.120.0030.00615.53
7.0.110.0030.00915.43
7.0.100.0030.00915.54
7.0.90.0060.00315.62
7.0.80.0050.00515.66
7.0.70.0060.00615.54
7.0.60.0060.02617.63
7.0.50.0030.03516.90
7.0.40.0100.03716.86
7.0.30.0120.03917.00
7.0.20.0130.03116.82
7.0.10.0040.02516.92
7.0.00.0080.03516.83
5.6.380.0090.00614.63
5.6.370.0100.00814.46
5.6.360.0000.00914.24
5.6.350.0030.00614.17
5.6.340.0100.00314.14
5.6.330.0030.01014.51
5.6.320.0070.00714.20
5.6.310.0000.01114.50
5.6.300.0130.00314.58
5.6.290.0070.00314.42
5.6.280.0070.01817.66
5.6.270.0040.01114.24
5.6.260.0100.00614.76
5.6.250.0040.01114.30
5.6.240.0140.00014.31
5.6.230.0080.00814.05
5.6.220.0060.00914.17
5.6.210.0070.03417.52
5.6.200.0030.03516.15
5.6.190.0070.02417.29
5.6.180.0160.03917.50
5.6.170.0130.03317.22
5.6.160.0050.04317.31
5.6.150.0020.02916.30
5.6.140.0070.02816.38
5.6.130.0080.02816.22
5.6.120.0000.04917.68
5.6.110.0100.04017.69
5.6.100.0100.02217.58
5.6.90.0080.04617.71
5.6.80.0050.04517.16
5.6.70.0030.01014.24
5.6.60.0070.00314.13
5.6.50.0100.00314.27
5.6.40.0110.00414.19
5.6.30.0030.01014.01
5.6.20.0030.01014.36
5.6.10.0100.00314.30
5.6.00.0060.00314.14
5.5.380.0000.01210.81
5.5.370.0080.00411.36
5.5.360.0030.00911.41
5.5.350.2080.02215.89
5.5.340.0060.02314.48
5.5.330.0070.04215.68
5.5.320.0110.03015.81
5.5.310.0150.03015.70
5.5.300.0080.04314.48
5.5.290.0030.03814.71
5.5.280.0070.04215.78
5.5.270.0020.02515.85
5.5.260.0100.03716.07
5.5.250.0050.04415.80
5.5.240.0160.03815.64
5.5.230.0090.00311.04
5.5.220.0060.00611.11
5.5.210.0060.00311.14
5.5.200.0040.00811.05
5.5.190.0070.00311.28
5.5.180.0060.00311.24
5.5.170.0100.00011.38
5.5.160.0040.00411.25
5.5.150.0030.00511.12
5.5.140.0060.00010.91
5.5.130.0030.00610.89
5.5.120.0040.00411.18
5.5.110.0030.01011.21
5.5.100.0090.00311.00
5.5.90.0030.00710.84
5.5.80.0000.00611.30
5.5.70.0040.00711.08
5.5.60.0060.00610.90
5.5.50.0000.01010.93
5.5.40.0040.00811.23
5.5.30.0040.00810.75
5.5.20.0000.01211.27
5.5.10.0070.00311.16
5.5.00.0000.00611.30

preferences:
57.62 ms | 401 KiB | 5 Q