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 print_r($matches); return $matches[1].($matches[2]+1); }

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.0140.00418.43
8.3.60.0110.00417.00
8.3.50.0100.00721.97
8.3.40.0070.00719.10
8.3.30.0140.00019.01
8.3.20.0050.00320.33
8.3.10.0000.00823.66
8.3.00.0000.00819.63
8.2.180.0150.00018.79
8.2.170.0070.00722.96
8.2.160.0100.00322.29
8.2.150.0000.00825.66
8.2.140.0070.00024.66
8.2.130.0060.00617.50
8.2.120.0040.00426.35
8.2.110.0070.00322.23
8.2.100.0130.00018.04
8.2.90.0000.00819.17
8.2.80.0030.00517.97
8.2.70.0000.00817.88
8.2.60.0040.00717.93
8.2.50.0060.00318.07
8.2.40.0000.00819.25
8.2.30.0000.00720.67
8.2.20.0050.00517.98
8.2.10.0040.00418.00
8.2.00.0000.00818.01
8.1.280.0140.00025.92
8.1.270.0080.00022.13
8.1.260.0000.00728.09
8.1.250.0000.00828.09
8.1.240.0090.00020.64
8.1.230.0090.00317.66
8.1.220.0000.00717.79
8.1.210.0060.00318.77
8.1.200.0060.00317.60
8.1.190.0040.00417.48
8.1.180.0050.00218.10
8.1.170.0050.00318.62
8.1.160.0000.00721.93
8.1.150.0060.00318.80
8.1.140.0030.00519.63
8.1.130.0070.00017.70
8.1.120.0000.00717.52
8.1.110.0050.00217.58
8.1.100.0040.00417.62
8.1.90.0040.00417.48
8.1.80.0040.00417.54
8.1.70.0040.00417.44
8.1.60.0030.00617.61
8.1.50.0040.00417.67
8.1.40.0000.00817.75
8.1.30.0040.00417.86
8.1.20.0000.00817.88
8.1.10.0030.00617.72
8.1.00.0040.00817.66
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0030.00318.42
8.0.270.0030.00617.16
8.0.260.0030.00317.26
8.0.250.0030.00517.07
8.0.240.0000.00717.12
8.0.230.0000.00717.18
8.0.220.0000.00817.03
8.0.210.0000.00717.08
8.0.200.0030.00317.17
8.0.190.0060.00317.11
8.0.180.0040.00417.09
8.0.170.0000.00816.99
8.0.160.0000.00717.12
8.0.150.0080.00317.00
8.0.140.0040.00416.91
8.0.130.0050.00013.56
8.0.120.0040.00417.01
8.0.110.0030.00617.10
8.0.100.0000.00916.90
8.0.90.0000.00716.94
8.0.80.0060.00917.06
8.0.70.0000.00817.01
8.0.60.0000.00717.07
8.0.50.0050.00217.04
8.0.30.0100.00816.99
8.0.20.0120.00617.45
8.0.10.0000.00817.15
8.0.00.0120.00916.88
7.4.330.0060.00015.14
7.4.320.0000.00616.64
7.4.300.0060.00016.71
7.4.290.0040.00416.84
7.4.280.0030.00516.84
7.4.270.0000.00816.75
7.4.260.0000.00716.67
7.4.250.0030.00616.60
7.4.240.0020.00516.87
7.4.230.0080.00016.82
7.4.220.0070.01016.62
7.4.210.0040.01116.54
7.4.200.0070.00016.80
7.4.160.0090.00616.61
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0070.01416.85
7.4.120.0110.00916.77
7.4.110.0110.01416.73
7.4.100.0100.01316.59
7.4.90.0140.00716.93
7.4.80.0050.01719.39
7.4.70.0130.00316.95
7.4.60.0070.01316.72
7.4.50.0040.01116.55
7.4.40.0000.01716.79
7.4.30.0110.01216.66
7.4.00.0070.01014.98
7.3.330.0030.00313.55
7.3.320.0000.00513.50
7.3.310.0000.00716.42
7.3.300.0000.00716.39
7.3.290.0070.00916.46
7.3.280.0090.01016.48
7.3.270.0070.01017.40
7.3.260.0060.01116.70
7.3.250.0040.01316.54
7.3.240.0080.00916.46
7.3.230.0060.01116.49
7.3.210.0030.01316.54
7.3.200.0100.00716.67
7.3.190.0100.00716.65
7.3.180.0110.00416.62
7.3.170.0070.01016.51
7.3.160.0050.01116.57
7.2.330.0070.01016.52
7.2.320.0030.01516.90
7.2.310.0120.00916.67
7.2.300.0100.01016.98
7.2.290.0130.00316.95
7.2.60.0100.00416.91
7.2.00.0060.00619.59
7.1.200.0110.00415.81
7.1.100.0030.01018.18
7.1.70.0030.00317.32
7.1.60.0130.01019.48
7.1.50.0070.01416.83
7.1.00.0000.07722.44
7.0.200.0070.00016.86
7.0.60.0070.08720.01
7.0.50.0100.05317.85
7.0.40.0130.06720.07
7.0.30.0230.08020.08
7.0.20.0170.04320.36
7.0.10.0000.04720.25
7.0.00.0130.07020.25
5.6.280.0000.05021.07
5.6.210.0200.06320.56
5.6.200.0170.08018.23
5.6.190.0070.07720.48
5.6.180.0200.07720.50
5.6.170.0270.08320.54
5.6.160.0070.06020.43
5.6.150.0070.05018.19
5.6.140.0030.08018.19
5.6.130.0070.07718.15
5.6.120.0030.08721.05
5.6.110.0070.06020.95
5.6.100.0130.06720.97
5.6.90.0030.04321.11
5.6.80.0030.08320.52
5.5.350.4200.04320.41
5.5.340.0030.06317.98
5.5.330.0130.03320.13
5.5.320.0330.07320.32
5.5.310.0300.07720.32
5.5.300.0070.03717.98
5.5.290.0100.08717.98
5.5.280.0030.04720.89
5.5.270.0100.08320.68
5.5.260.0130.07320.77
5.5.250.0070.03720.66
5.5.240.0170.05720.16

preferences:
55.36 ms | 401 KiB | 5 Q