3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b= 1234; $your_variable = '<div style="width:768px;height:94px;left:17px;top:17px;position:absolute;background-color:transparent;background-image:none;background-repeat:repeat;border-left:;border-right:;border-top:;border-bottom:;" id="ex5"></div><div style="width:401px;height:153px;left:17px;top:118px;position:absolute;background-color:transparent;background-image:none;background-repeat:repeat;border-left:;border-right:;border-top:;border-bottom:;" id="ex6"></div><div style="width:400px;height:201px;left:17px;top:279px;position:absolute;background-color:transparent;background-image:none;background-repeat:repeat;border-left:;border-right:;border-top:;border-bottom:;" id="ex7"></div><div style="width:360px;height:359px;left:425px;top:119px;position:absolute;background-color:transparent;background-image:none;background-repeat:repeat;border-left:;border-right:;border-top:;border-bottom:;" id="ex8"><form method="post" action="https://www.leadformix.com/bf/FormCapture.php" class="no-lfm" name="lfxform"><input name="LFMIdsite" value="8635" type="hidden"><input name="returnURL" value="http://channel.netgear.com/success.html" type="hidden"><input name="LFMC" id="LFMC" value="0" type="hidden"><input name="campaign_urlid" id="campaign_urlid" value="CRMCAMPAIGNID" type="hidden"><span title_edit="editcontent"> <div class="draggable" style="padding-top:15px;"><span title_edit="formeditcontent" style="font-family:arial; font-size:14px; color:#000000;display:block;">First Name:</span><input name="firstnamelf1" style="font-family:arial; font-size:14px; color:#000000;width:100px; height:20px; background-color:#ffffff;vertical-align:middle;" type="text"></div><div class="draggable" style="padding-top:15px;"><span title_edit="formeditcontent" style="font-family:arial; font-size:14px; color:#000000;display:block;">Last Name:</span><input name="lastnamelf2" style="font-family:arial; font-size:14px; color:#000000;width:100px; height:20px; background-color:#ffffff;vertical-align:middle;" type="text"></div><div class="draggable" style="padding-top:15px;"><span title_edit="formeditcontent" style="font-family:arial; font-size:14px; color:#000000;display:block;">Email:</span><input name="emaillf3" style="font-family:arial; font-size:14px; color:#000000;width:100px; height:20px; background-color:#ffffff;vertical-align:middle;" type="text"></div><div class="draggable" style="padding-top:15px;"><span title_edit="formeditcontent" class="adjstr"> </span><input name="submit4" style="font-family:arial; font-size:14px;cursor:pointer;" value="Submit" type="submit"><span title_edit="formeditcontent" class="crsntc"></span></div></span></form></div>'; $result = preg_replace('/name="LFMIdsite" value="(.*?)"/', 'name="LFMIdsite" value="'.$b.'"', $your_variable); echo $result; //$lidsite = $matches[1]; //echo $lidsite; //$your_variable = str_replace('/name="LFMIdsite" value="'.$lidsite.'"', '/name="LFMIdsite" value="'.$b.'"', $your_variable); //echo $your_variable; ?>

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.0110.01118.68
8.3.50.0110.00921.27
8.3.40.0070.00718.88
8.3.30.0140.00020.34
8.3.20.0040.00420.33
8.3.10.0000.00722.09
8.3.00.0080.00022.57
8.2.180.0150.00418.42
8.2.170.0060.00922.96
8.2.160.0100.00320.35
8.2.150.0000.00724.18
8.2.140.0150.00624.66
8.2.130.0150.00026.16
8.2.120.0090.00019.54
8.2.110.0090.00022.25
8.2.100.0070.00717.91
8.2.90.0000.00819.09
8.2.80.0040.00419.25
8.2.70.0060.00317.63
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0000.00918.04
8.2.20.0040.00417.72
8.2.10.0070.00017.95
8.2.00.0000.00917.88
8.1.280.0100.01025.92
8.1.270.0060.01324.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.99
8.1.230.0070.00419.04
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0050.00517.48
8.1.190.0030.00617.40
8.1.180.0030.00520.07
8.1.170.0080.00018.77
8.1.160.0000.00822.04
8.1.150.0070.00018.79
8.1.140.0060.00317.64
8.1.130.0000.00717.76
8.1.120.0060.00317.56
8.1.110.0000.00717.66
8.1.100.0060.00317.63
8.1.90.0040.00417.64
8.1.80.0000.00717.51
8.1.70.0050.00217.65
8.1.60.0060.00317.74
8.1.50.0030.00517.56
8.1.40.0000.00917.68
8.1.30.0050.00317.79
8.1.20.0000.00817.82
8.1.10.0000.00817.68
8.1.00.0030.00617.58
8.0.300.0070.00018.77
8.0.290.0000.00817.04
8.0.280.0050.00218.47
8.0.270.0040.00417.29
8.0.260.0000.00716.99
8.0.250.0030.00316.95
8.0.240.0040.00417.01
8.0.230.0070.00017.05
8.0.220.0000.00717.01
8.0.210.0000.00717.04
8.0.200.0070.00017.09
8.0.190.0030.00516.96
8.0.180.0080.00417.05
8.0.170.0030.00517.07
8.0.160.0040.00417.03
8.0.150.0000.00817.04
8.0.140.0000.00716.98
8.0.130.0030.00313.49
8.0.120.0040.00416.88
8.0.110.0040.00416.86
8.0.100.0030.00516.97
8.0.90.0040.00317.11
8.0.80.0050.01017.03
8.0.70.0020.00517.03
8.0.60.0040.00416.85
8.0.50.0000.00716.86
8.0.30.0190.00417.20
8.0.20.0050.01217.40
8.0.10.0000.00816.97
8.0.00.0130.00616.95
7.4.330.0000.00515.00
7.4.320.0030.00316.57
7.4.300.0060.00016.71
7.4.290.0000.00616.78
7.4.280.0030.00316.79
7.4.270.0050.00316.74
7.4.260.0030.00316.52
7.4.250.0040.00416.77
7.4.240.0050.00316.69
7.4.230.0000.00716.73
7.4.220.0090.00916.79
7.4.210.0050.01116.61
7.4.200.0030.00316.70
7.4.190.0030.00316.78
7.4.160.0070.01016.74
7.4.150.0110.01117.40
7.4.140.0130.00517.86
7.4.130.0080.01116.67
7.4.120.0080.01116.64
7.4.110.0100.01016.66
7.4.100.0090.01316.65
7.4.90.0120.00616.72
7.4.80.0090.00919.39
7.4.70.0100.00716.61
7.4.60.0090.01016.66
7.4.50.0000.00416.59
7.4.40.0120.00622.77
7.4.30.0070.01316.72
7.4.00.0070.01015.10
7.3.330.0050.00013.30
7.3.320.0000.00513.24
7.3.310.0040.00416.54
7.3.300.0000.00716.33
7.3.290.0120.00316.41
7.3.280.0090.00616.42
7.3.270.0100.01017.40
7.3.260.0140.00316.58
7.3.250.0080.01016.73
7.3.240.0060.01216.41
7.3.230.0070.01016.73
7.3.210.0080.01616.53
7.3.200.0060.01219.39
7.3.190.0100.01416.55
7.3.180.0130.00616.32
7.3.170.0050.01116.61
7.3.160.0100.00716.76
7.3.120.0030.01314.78
7.3.10.0040.01216.58
7.3.00.0070.00716.41
7.2.330.0000.01916.88
7.2.320.0040.01617.02
7.2.310.0030.01316.63
7.2.300.0070.01016.63
7.2.290.0100.00716.71
7.2.130.0070.00717.00
7.2.120.0040.01217.09
7.2.110.0040.01117.14
7.2.100.0030.00517.04
7.2.90.0110.00517.13
7.2.80.0120.00317.06
7.2.70.0120.00916.84
7.2.60.0030.00717.13
7.2.50.0110.00617.21
7.2.40.0090.00617.11
7.2.30.0120.00317.23
7.2.20.0030.01217.03
7.2.10.0030.01016.86
7.2.00.0050.01118.21
7.1.250.0030.01316.14
7.1.200.0040.00716.06
7.1.100.0120.00318.17
7.1.70.0030.00517.29
7.1.60.0120.01219.21
7.1.50.0110.00717.30
7.1.00.0000.03722.42
7.0.200.0070.01116.92
7.0.140.0030.07321.91
7.0.70.0000.05021.82
7.0.60.0070.08321.65
7.0.50.0130.07722.01
7.0.40.0030.06719.96
7.0.30.0030.08020.18
7.0.20.0100.05320.04
7.0.10.0100.08020.05
7.0.00.0130.08720.04
5.6.280.0000.07720.81
5.6.220.0070.04020.61
5.6.210.0130.07020.62
5.6.200.0130.07721.01
5.6.190.0030.08720.98
5.6.180.0070.09021.06
5.6.170.0130.08721.00
5.6.160.0030.07721.01
5.6.150.0070.04021.14
5.6.140.0100.08720.88
5.6.130.0030.09020.90
5.6.120.0100.05021.01
5.6.110.0030.05021.01
5.6.100.0130.06021.08
5.6.90.0100.06321.03
5.6.80.0100.07320.32
5.6.70.0100.07720.54
5.6.60.0100.07020.44
5.6.50.0170.07720.40
5.6.40.0030.06320.48
5.6.30.0070.07720.38
5.6.20.0030.08720.37
5.6.10.0270.05320.38
5.6.00.0170.07320.30
5.5.360.0130.08020.55
5.5.350.0100.07720.39
5.5.340.0000.08320.79
5.5.330.0100.07320.64
5.5.320.0100.06720.86
5.5.310.0030.09020.88
5.5.300.0070.07020.75
5.5.290.0300.05720.82
5.5.280.0130.07320.82
5.5.270.0130.08720.86
5.5.260.0100.08020.77
5.5.250.0070.07320.61
5.5.240.0000.05020.31
5.5.230.0100.08720.20
5.5.220.0070.06320.24
5.5.210.0070.04320.28
5.5.200.0100.07720.27
5.5.190.0000.05320.18
5.5.180.0070.05720.18
5.5.160.0130.08020.27
5.5.150.0100.06320.12
5.5.140.0130.07020.11
5.5.130.0100.08320.21
5.5.120.0130.07320.13
5.5.110.0200.06320.23
5.5.100.0100.08320.18
5.5.90.0100.07320.04
5.5.80.0030.08720.06
5.5.70.0100.08019.94
5.5.60.0100.04320.05
5.5.50.0000.07020.00
5.5.40.0030.07020.14
5.5.30.0200.06020.02
5.5.20.0170.07020.02
5.5.10.0100.07320.05
5.5.00.0000.04320.03
5.4.450.0070.08319.38
5.4.440.0030.07019.46
5.4.430.0130.07019.34
5.4.420.0170.06719.38
5.4.410.0070.05319.43
5.4.400.0100.07019.03
5.4.390.0030.06719.12
5.4.380.0100.07718.94
5.4.370.0130.03319.13
5.4.360.0170.06719.07
5.4.350.0170.07019.04
5.4.340.0030.08319.03
5.4.320.0000.07319.07
5.4.310.0200.06018.91
5.4.300.0100.06019.12
5.4.290.0030.08018.89
5.4.280.0070.07319.11
5.4.270.0070.06319.11
5.4.260.0130.07318.94
5.4.250.0130.05018.93
5.4.240.0030.08019.09
5.4.230.0100.07318.96
5.4.220.0100.07019.02
5.4.210.0070.08318.94
5.4.200.0100.08018.97
5.4.190.0030.05719.11
5.4.180.0100.07319.10
5.4.170.0000.04718.77
5.4.160.0070.07018.76
5.4.150.0000.04019.10
5.4.140.0000.03716.29
5.4.130.0000.03716.36
5.4.120.0000.06016.27
5.4.110.0030.04316.21
5.4.100.0000.03716.31
5.4.90.0000.04716.36
5.4.80.0070.03716.20
5.4.70.0000.05016.27
5.4.60.0000.04716.18
5.4.50.0000.03716.33
5.4.40.0000.04016.23
5.4.30.0030.04716.34
5.4.20.0070.04316.33
5.4.10.0000.03716.23
5.4.00.0000.03315.83
5.3.290.0270.06714.64
5.3.280.0070.07314.56
5.3.270.0030.03714.54
5.3.260.0070.03314.46
5.3.250.0000.04014.61
5.3.240.0000.03714.58
5.3.230.0000.03714.56
5.3.220.0000.03714.53
5.3.210.0030.07014.57
5.3.200.0000.04014.48
5.3.190.0070.03314.55
5.3.180.0030.03714.56
5.3.170.0030.04714.40
5.3.160.0000.03714.48
5.3.150.0000.04014.54
5.3.140.0000.03714.57
5.3.130.0000.04014.50
5.3.120.0030.04014.51
5.3.110.0070.04714.41
5.3.100.0000.03714.03
5.3.90.0030.03713.84
5.3.80.0030.03313.79
5.3.70.0000.03714.00
5.3.60.0030.03313.99
5.3.50.0000.03713.71
5.3.40.0000.03713.70
5.3.30.0000.03713.88
5.3.20.0000.03013.64
5.3.10.0070.03013.57
5.3.00.0070.03013.57
5.2.170.0030.02712.36
5.2.160.0000.03012.36
5.2.150.0000.03012.36
5.2.140.0030.02712.36
5.2.130.0000.03312.36
5.2.120.0000.03012.36
5.2.110.0000.02712.36
5.2.100.0000.03012.36
5.2.90.0000.02712.36
5.2.80.0000.03312.36
5.2.70.0000.04312.36
5.2.60.0000.02312.36
5.2.50.0030.04312.36
5.2.40.0070.03312.36
5.2.30.0000.03012.36
5.2.20.0030.02312.36
5.2.10.0000.02712.36
5.2.00.0000.02712.36
5.1.60.0000.02712.36
5.1.50.0030.02012.36
5.1.40.0000.02712.36
5.1.30.0030.02012.36
5.1.20.0030.02312.36
5.1.10.0000.02312.36
5.1.00.0000.02312.36
5.0.50.0000.01712.36
5.0.40.0000.02012.36
5.0.30.0000.03012.36
5.0.20.0030.02012.36
5.0.10.0000.03012.36
5.0.00.0000.04312.36
4.4.90.0030.01012.36
4.4.80.0030.01012.36
4.4.70.0000.01312.36
4.4.60.0000.01312.36
4.4.50.0000.01312.36
4.4.40.0000.02712.36
4.4.30.0000.01712.36
4.4.20.0000.01312.36
4.4.10.0000.01312.36
4.4.00.0000.02712.36
4.3.110.0030.01012.36
4.3.100.0000.01312.36
4.3.90.0000.01712.36
4.3.80.0000.05312.36
4.3.70.0000.03712.36
4.3.60.0030.02712.36
4.3.50.0030.03312.36
4.3.40.0000.05012.36
4.3.30.0000.03712.36
4.3.20.0000.03712.36
4.3.10.0000.03312.36
4.3.00.0000.02712.36

preferences:
52.46 ms | 401 KiB | 5 Q