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('/<input name="LFMIdsite" value="(.*?)"/', '<input 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.00718.56
8.3.50.0070.00821.14
8.3.40.0070.01418.96
8.3.30.0100.00320.17
8.3.20.0050.00220.05
8.3.10.0050.00321.90
8.3.00.0000.00822.52
8.2.180.0150.00316.75
8.2.170.0040.01522.96
8.2.160.0040.01120.50
8.2.150.0050.00324.18
8.2.140.0110.00424.66
8.2.130.0110.00726.16
8.2.120.0040.00419.66
8.2.110.0060.00322.07
8.2.100.0030.01019.70
8.2.90.0040.00419.11
8.2.80.0070.00019.07
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0060.00318.09
8.2.30.0030.00718.10
8.2.20.0030.00617.73
8.2.10.0040.00417.78
8.2.00.0070.00417.89
8.1.280.0100.01025.92
8.1.270.0000.00724.66
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00023.82
8.1.230.0070.00419.17
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.40
8.1.180.0040.00420.29
8.1.170.0030.00518.59
8.1.160.0000.00822.08
8.1.150.0040.00418.79
8.1.140.0000.00817.55
8.1.130.0030.00317.78
8.1.120.0000.00917.66
8.1.110.0040.00417.61
8.1.100.0000.00717.60
8.1.90.0080.00017.63
8.1.80.0000.00717.48
8.1.70.0000.00717.54
8.1.60.0060.00617.72
8.1.50.0000.00817.71
8.1.40.0040.00417.70
8.1.30.0040.00417.76
8.1.20.0030.00517.80
8.1.10.0000.00717.71
8.1.00.0050.00517.58
8.0.300.0050.00218.77
8.0.290.0040.00417.18
8.0.280.0000.00718.46
8.0.270.0070.00017.34
8.0.260.0030.00316.98
8.0.250.0070.00017.02
8.0.240.0040.00417.15
8.0.230.0000.00717.07
8.0.220.0000.00716.95
8.0.210.0000.00817.08
8.0.200.0030.00317.11
8.0.190.0000.00817.00
8.0.180.0080.00417.10
8.0.170.0040.00417.05
8.0.160.0040.00416.98
8.0.150.0040.00416.96
8.0.140.0040.00417.00
8.0.130.0030.00313.50
8.0.120.0040.00416.94
8.0.110.0040.00416.96
8.0.100.0080.00016.94
8.0.90.0000.00717.07
8.0.80.0060.00917.02
8.0.70.0000.00717.11
8.0.60.0070.00016.86
8.0.50.0040.00416.91
8.0.30.0090.01017.41
8.0.20.0080.01117.40
8.0.10.0040.00416.90
8.0.00.0150.01816.77
7.4.330.0060.00015.00
7.4.320.0000.00616.67
7.4.300.0030.00316.66
7.4.290.0040.00416.69
7.4.280.0000.00716.57
7.4.270.0000.00716.66
7.4.260.0080.00316.73
7.4.250.0070.00016.66
7.4.240.0050.00216.70
7.4.230.0000.00716.57
7.4.220.0090.00916.86
7.4.210.0070.01016.75
7.4.200.0000.00716.79
7.4.190.0040.00416.66
7.4.160.0120.01216.75
7.4.150.0180.00017.40
7.4.140.0130.00617.86
7.4.130.0090.00816.76
7.4.120.0050.01116.61
7.4.110.0110.00716.79
7.4.100.0160.00316.82
7.4.90.0070.01016.61
7.4.80.0090.00919.39
7.4.70.0030.01516.78
7.4.60.0090.00616.52
7.4.50.0000.00816.55
7.4.40.0100.00722.77
7.4.30.0030.01716.80
7.4.00.0090.00615.11
7.3.330.0000.00613.33
7.3.320.0000.00513.25
7.3.310.0030.00316.29
7.3.300.0000.00716.46
7.3.290.0060.00916.45
7.3.280.0060.01116.44
7.3.270.0130.00717.40
7.3.260.0030.01416.57
7.3.250.0090.00816.69
7.3.240.0110.01216.65
7.3.230.0110.00716.47
7.3.210.0090.00916.86
7.3.200.0070.01419.39
7.3.190.0090.01316.63
7.3.180.0150.00416.63
7.3.170.0040.01216.59
7.3.160.0090.00816.46
7.3.120.0100.00714.98
7.3.110.0040.00814.73
7.3.100.0120.00314.69
7.3.90.0070.01014.97
7.3.80.0050.00515.09
7.3.70.0120.00015.12
7.3.60.0040.01114.89
7.3.50.0090.00315.08
7.3.40.0110.00414.78
7.3.30.0030.00915.07
7.3.20.0030.01016.87
7.3.10.0090.00616.76
7.3.00.0100.00316.73
7.2.330.0050.01416.84
7.2.320.0100.00716.88
7.2.310.0070.01016.86
7.2.300.0150.00416.91
7.2.290.0100.00716.81
7.2.240.0000.01415.24
7.2.230.0070.01115.41
7.2.220.0040.00815.32
7.2.210.0030.01514.99
7.2.200.0100.00715.24
7.2.190.0070.01015.38
7.2.180.0000.01815.18
7.2.170.0080.00615.15
7.2.160.0040.01215.19
7.2.150.0070.01016.80
7.2.140.0040.01416.91
7.2.130.0040.01117.08
7.2.120.0030.01517.02
7.2.110.0070.01016.89
7.2.100.0040.01116.87
7.2.90.0080.00816.89
7.2.80.0060.01217.12
7.2.70.0060.00917.11
7.2.60.0060.00616.93
7.2.50.0140.00417.00
7.2.40.0030.01317.13
7.2.30.0040.01116.93
7.2.20.0090.00917.13
7.2.10.0040.01217.10
7.2.00.0100.00317.01
7.1.330.0090.00615.95
7.1.320.0090.00616.05
7.1.310.0090.00615.95
7.1.300.0070.00715.63
7.1.290.0000.01415.84
7.1.280.0000.01416.16
7.1.270.0030.01016.07
7.1.260.0060.00616.03
7.1.250.0040.01215.82
7.1.70.0050.00216.98
7.1.60.0040.01819.21
7.1.50.0060.01817.31
7.1.00.0000.05022.50
7.0.200.0260.00015.17
7.0.140.0070.07022.10
7.0.60.0030.08720.09
7.0.50.0070.05717.89
7.0.40.0230.06320.23
7.0.30.0300.05320.18
7.0.20.0230.08720.34
7.0.10.0270.07720.18
7.0.00.0070.04320.09
5.6.280.0000.07721.10
5.6.210.0070.07020.46
5.6.200.0100.03718.15
5.6.190.0070.08720.57
5.6.180.0200.08320.42
5.6.170.0230.06720.49
5.6.160.0030.04320.41
5.6.150.0030.05018.21
5.6.140.0130.05718.12
5.6.130.0130.07318.20
5.6.120.0100.04321.02
5.6.110.0130.07321.01
5.6.100.0100.07720.88
5.6.90.0130.08020.94
5.6.80.0130.07720.41
5.6.70.0270.07720.38
5.5.350.0030.07720.32
5.5.340.0070.05317.92
5.5.330.0070.04020.43
5.5.320.0170.04720.16
5.5.310.0170.04020.28
5.5.300.0130.05017.89
5.5.290.0030.05018.01
5.5.280.0070.04020.80
5.5.270.0000.06720.84
5.5.260.0130.07720.79
5.5.250.0000.08320.71
5.5.240.0130.07720.07
5.4.450.0970.06319.47
5.4.440.0770.04719.27
5.4.430.0830.04719.59
5.4.420.0300.06019.46
5.4.410.0670.05718.97
5.4.400.1470.04318.77
5.4.390.0500.07318.72
5.4.380.0330.04318.56
5.4.370.0130.05018.49
5.4.360.0100.05318.70
5.4.350.0060.03911.97
5.4.340.0060.03411.97
5.4.320.0080.03312.46
5.4.310.0030.04112.46
5.4.300.0060.03812.46
5.4.290.0050.04312.46
5.4.280.0090.04012.36
5.4.270.0090.03512.35
5.4.260.0080.04212.36
5.4.250.0170.04719.03
5.4.240.0130.07718.77
5.4.230.0030.05718.77
5.4.220.0170.04718.77
5.4.210.0170.04719.00
5.4.200.0130.05318.79
5.4.190.0030.05718.64
5.4.180.0070.07718.77
5.4.170.0030.06319.06
5.4.160.0300.03719.00
5.4.150.0130.07318.76
5.4.140.0030.06016.47
5.4.130.0100.04716.24
5.4.120.0000.06016.45
5.4.110.0130.04316.50
5.4.100.0100.04716.34
5.4.90.0030.05716.44
5.4.80.0030.05316.38
5.4.70.0100.04716.38
5.4.60.0070.05016.46
5.4.50.0170.06716.47
5.4.40.0070.06016.47
5.4.30.0070.06016.38
5.4.20.0070.05316.31
5.4.10.0070.08016.17
5.4.00.0070.05015.71
5.3.290.0070.04412.80
5.3.280.0130.04714.45
5.3.270.0000.08314.62
5.3.260.0170.06014.62
5.3.250.0100.05314.38
5.3.240.0200.05314.63
5.3.230.0100.05714.30
5.3.220.0100.05014.62
5.3.210.0030.05714.67
5.3.200.0000.06014.66
5.3.190.0100.05714.46
5.3.180.0130.04314.44
5.3.170.0100.04714.45
5.3.160.0170.04314.58
5.3.150.0000.05714.62
5.3.140.0170.06314.43
5.3.130.0100.05314.56
5.3.120.0070.05314.39
5.3.110.0130.06314.60
5.3.100.0130.04313.88
5.3.90.0100.04714.03
5.3.80.0130.04314.02
5.3.70.0230.05313.86
5.3.60.0030.05314.09
5.3.50.0100.04313.81
5.3.40.0030.05013.84
5.3.30.0070.04713.80
5.3.20.0070.05013.61
5.3.10.0030.05713.65
5.3.00.0000.05713.64
5.2.170.0070.05011.26
5.2.160.0070.04011.14
5.2.150.0030.04311.07
5.2.140.0030.05711.06
5.2.130.0070.04011.13
5.2.120.0000.04311.26
5.2.110.0070.04310.95
5.2.100.0070.05311.13
5.2.90.0100.03711.03
5.2.80.0130.04310.93
5.2.70.0130.04010.86
5.2.60.0100.03710.89
5.2.50.0130.03710.88
5.2.40.0100.05010.94
5.2.30.0100.04310.98
5.2.20.0030.04310.97
5.2.10.0200.04310.94
5.2.00.0030.05010.88
5.1.60.0070.0309.83
5.1.50.0070.03710.23
5.1.40.0070.0479.95
5.1.30.0030.04010.39
5.1.20.0000.04310.42
5.1.10.0070.03310.13
5.1.00.0070.04010.31
5.0.50.0070.0278.65
5.0.40.0000.0308.32
5.0.30.0030.0438.14
5.0.20.0070.0337.98
5.0.10.0030.0278.09
5.0.00.0030.0438.40
4.4.90.0070.0277.42
4.4.80.0030.0207.42
4.4.70.0030.0237.38
4.4.60.0070.0177.38
4.4.50.0030.0307.38
4.4.40.0030.0437.38
4.4.30.0030.0237.38
4.4.20.0000.0237.38
4.4.10.0030.0207.38
4.4.00.0030.0337.38
4.3.110.0070.0307.38
4.3.100.0000.0237.38
4.3.90.0100.0137.38
4.3.80.0070.0377.38
4.3.70.0070.0177.38
4.3.60.0000.0237.38
4.3.50.0000.0277.38
4.3.40.0070.0277.38
4.3.30.0030.0277.38
4.3.20.0070.0177.38
4.3.10.0000.0237.38
4.3.00.0100.0276.39

preferences:
44.95 ms | 401 KiB | 5 Q