3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Using Tabs With PHP</title> <style> .link{ font-family:tahoma; font-size:11px; font-weight:bold; color:white; text-decoration:none; } </style> </head> <body> <? $id=$_REQUEST['id']; $links=array(); $links[]="Home"; $links[]="Services"; $links[]="Products"; $links[]="Downloads"; $links[]="Contact Us"; $total_links=count($links); ?> <table cellpadding="0px" cellspacing="0"> <tr> <td width="30px">&nbsp;</td> <? for($i=0;$i<$total_links;$i++){ if($i+1==$id){ ?> <td style="padding-left:3px"> <table cellpadding="0" cellspacing="0"> <tr height="28px"> <td width="15px"><img src="images/selected-left.gif" /></td> <td style="background-image:url(images/selected.gif);" class="link"><?=$links[$i]?></td> <td width="15px"><img src="images/selected-right.gif" /></td> </tr> </table> </td> <? } else { ?> <td style="padding-left:3px"> <table cellpadding="0" cellspacing="0"> <tr height="28px"> <td width="13px"><img src="images/tab-left.gif" /></td> <td style="background-image:url(images/tab.gif);"><a href="?id=<?=$i+1?>" class="link"><?=$links[$i]?></a></td> <td width="13px"><img src="images/tab-right.gif" /></td> </tr> </table> </td> <? } // else end } //for end ?> <td width="30px">&nbsp;</td> </tr> <tr> <td colspan="<?=$total_links+2?>" bgcolor="#1895D5">&nbsp;</td> </tr> <tr> <td colspan="<?=$total_links+2?>" style="border:1px #1895D5 solid;"> <h1 style="color:#1895D5">The text for linkid<?=$id?> goes here ...</h1> </td> </tr> </table> </body> </html>

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.40.0120.00318.82
8.3.30.0140.00019.27
8.3.20.0040.00420.34
8.3.10.0040.00422.09
8.3.00.0040.00422.39
8.2.170.0070.00722.96
8.2.160.0100.00318.89
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0090.00617.63
8.2.110.0040.00422.11
8.2.100.0080.00419.76
8.2.90.0040.00419.05
8.2.80.0030.00618.03
8.2.70.0060.00317.75
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0000.00818.09
8.2.30.0000.00818.05
8.2.20.0040.00417.77
8.2.10.0000.00719.61
8.2.00.0000.00817.67
8.1.270.0100.00722.14
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0040.00423.96
8.1.230.0070.00419.00
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0070.00417.35
8.1.190.0030.00517.16
8.1.180.0040.00418.10
8.1.170.0000.00918.65
8.1.160.0040.00422.01
8.1.150.0000.00818.51
8.1.140.0120.00017.20
8.1.130.0070.00017.75
8.1.120.0040.00417.35
8.1.110.0000.00717.20
8.1.100.0000.00817.27
8.1.90.0040.00417.34
8.1.80.0030.00317.29
8.1.70.0000.00817.34
8.1.60.0040.00417.32
8.1.50.0040.00417.28
8.1.40.0050.00317.28
8.1.30.0040.00417.41
8.1.20.0040.00417.54
8.1.10.0000.00817.55
8.1.00.0030.00517.39
8.0.300.0030.00618.77
8.0.290.0000.00717.05
8.0.280.0030.00318.38
8.0.270.0030.00317.19
8.0.260.0000.00816.88
8.0.250.0000.00716.93
8.0.240.0040.00416.99
8.0.230.0040.00316.79
8.0.220.0030.00316.76
8.0.210.0000.00716.73
8.0.200.0000.00616.82
8.0.190.0000.00716.91
8.0.180.0000.00716.76
8.0.170.0040.00416.74
8.0.160.0020.00516.78
8.0.150.0040.00416.77
8.0.140.0050.00316.79
8.0.130.0000.00513.35
8.0.120.0000.00816.79
8.0.110.0070.00016.89
8.0.100.0040.00416.67
8.0.90.0000.00716.80
8.0.80.0090.00616.80
8.0.70.0000.00716.74
8.0.60.0040.00416.79
8.0.50.0080.00016.77
8.0.30.0110.01516.72
8.0.20.0130.01017.40
8.0.10.0000.00716.90
8.0.00.0030.02116.77
7.4.330.0050.00015.19
7.4.320.0000.00616.36
7.4.300.0000.00816.37
7.4.290.0050.00316.41
7.4.280.0000.00716.39
7.4.270.0000.00716.39
7.4.260.0100.00016.41
7.4.250.0080.00016.34
7.4.240.0040.00316.44
7.4.230.0030.00416.39
7.4.220.0100.00716.32
7.4.210.0100.00516.48
7.4.200.0000.00716.54
7.4.190.0070.00016.56
7.4.160.0120.00616.27
7.4.150.0040.01517.40
7.4.140.0160.00417.86
7.4.130.0080.00916.42
7.4.120.0070.01116.37
7.4.110.0100.00716.30
7.4.100.0060.01116.65
7.4.90.0090.00916.55
7.4.80.0040.01619.39
7.4.70.0030.01316.34
7.4.60.0060.01616.51
7.4.50.0000.00616.31
7.4.40.0070.01122.77
7.4.30.0030.01516.21
7.4.10.0090.00614.90
7.4.00.0030.01314.84
7.3.330.0000.00513.26
7.3.320.0060.00013.25
7.3.310.0080.00016.29
7.3.300.0000.00716.32
7.3.290.0000.01416.31
7.3.280.0080.01116.31
7.3.270.0070.01017.40
7.3.260.0130.00516.79
7.3.250.0090.01116.46
7.3.240.0140.00616.53
7.3.230.0110.00616.39
7.3.210.0110.00616.39
7.3.200.0120.01119.39
7.3.190.0110.00716.49
7.3.180.0090.00616.52
7.3.170.0070.01116.41
7.3.160.0060.01216.61
7.3.130.0100.00714.68
7.3.120.0080.01114.87
7.3.110.0070.00914.78
7.3.100.0080.00714.86
7.3.90.0060.01014.90
7.3.80.0060.01014.89
7.3.70.0060.00714.88
7.3.60.0070.00814.83
7.3.50.0060.00614.72
7.3.40.0060.00714.69
7.3.30.0060.00914.88
7.3.20.0050.01016.60
7.3.10.0020.00916.64
7.3.00.0060.00916.67
7.2.330.0130.00716.38
7.2.320.0120.00616.63
7.2.310.0070.01116.59
7.2.300.0110.00516.55
7.2.290.0090.01316.48
7.2.260.0150.00415.03
7.2.250.0040.01414.90
7.2.240.0090.00614.95
7.2.230.0070.00815.14
7.2.220.0030.01414.88
7.2.210.0060.00814.99
7.2.200.0070.00814.91
7.2.190.0060.00915.06
7.2.180.0050.00714.90
7.2.170.0060.00714.85
7.2.160.0060.00914.91
7.2.150.0110.00516.95
7.2.140.0060.00916.88
7.2.130.0060.00916.89
7.2.120.0100.00516.90
7.2.110.0080.00616.73
7.2.100.0070.00716.70
7.2.90.0060.00916.89
7.2.80.0060.00616.91
7.2.70.0070.00716.77
7.2.60.0030.01016.71
7.2.50.0080.00616.78
7.2.40.0050.00916.87
7.2.30.0090.00716.81
7.2.20.0070.00716.82
7.2.10.0050.00816.83
7.2.00.0060.00717.39
7.1.330.0090.00815.81
7.1.320.0050.00915.77
7.1.310.0050.00915.78
7.1.300.0060.00615.74
7.1.290.0070.00515.77
7.1.280.0020.01215.74
7.1.270.0030.00915.56
7.1.260.0040.00515.55
7.1.250.0060.00915.86
7.1.240.0050.00615.87
7.1.230.0040.00815.79
7.1.220.0060.00615.75
7.1.210.0070.00815.74
7.1.200.0050.01015.62
7.1.190.0050.00815.64
7.1.180.0040.01115.82
7.1.170.0090.00215.88
7.1.160.0070.00515.81
7.1.150.0010.01115.78
7.1.140.0090.00515.78
7.1.130.0020.01215.68
7.1.120.0050.00515.81
7.1.110.0050.01015.83
7.1.100.0060.00715.88
7.1.90.0060.00415.75
7.1.80.0060.00515.80
7.1.70.0050.00516.21
7.1.60.0060.00916.16
7.1.50.0060.01116.11
7.1.40.0050.00615.73
7.1.30.0050.00915.56
7.1.20.0040.00815.74
7.1.10.0040.01015.87
7.1.00.0100.02817.87
7.0.330.0050.00715.50
7.0.320.0080.00415.37
7.0.310.0030.00915.51
7.0.300.0030.01015.37
7.0.290.0040.00615.32
7.0.280.0060.00615.31
7.0.270.0040.00815.37
7.0.260.0080.00615.24
7.0.250.0050.00915.37
7.0.240.0070.00515.49
7.0.230.0020.00915.54
7.0.220.0040.00915.48
7.0.210.0050.00915.42
7.0.200.0080.00715.87
7.0.190.0070.00715.51
7.0.180.0030.01015.38
7.0.170.0050.00815.37
7.0.160.0080.00515.58
7.0.150.0020.01315.49
7.0.140.0070.02717.72
7.0.130.0090.00515.40
7.0.120.0050.00515.42
7.0.110.0030.00815.41
7.0.100.0000.01115.49
7.0.90.0020.01315.39
7.0.80.0010.00815.47
7.0.70.0020.01215.54
7.0.60.0070.02216.99
7.0.50.0070.02916.13
7.0.40.0080.02815.64
7.0.30.0090.03615.76
7.0.20.0120.03015.66
7.0.10.0050.03515.74
7.0.00.0070.02015.77
5.6.400.0050.00914.37
5.6.390.0050.01014.21
5.6.380.0030.01214.39
5.6.370.0060.00614.19
5.6.360.0030.01114.44
5.6.350.0060.00814.53
5.6.340.0110.00314.38
5.6.330.0090.00414.20
5.6.320.0040.00814.64
5.6.310.0040.00814.16
5.6.300.0070.00814.41
5.6.290.0050.01014.21
5.6.280.0020.03116.59
5.6.270.0030.01114.28
5.6.260.0050.00714.39
5.6.250.0050.01014.16
5.6.240.0080.00614.17
5.6.230.0040.00914.37
5.6.220.0060.00514.41
5.6.210.0050.03416.28
5.6.200.0030.02815.52
5.6.190.0050.01816.38
5.6.180.0070.02616.34
5.6.170.0100.02716.35
5.6.160.0080.01916.29
5.6.150.0070.01615.53
5.6.140.0020.03615.54
5.6.130.0040.03315.53
5.6.120.0040.02616.55
5.6.110.0070.03416.49
5.6.100.0070.03316.56
5.6.90.0050.02016.57
5.6.80.0050.01916.15
5.6.70.1370.01516.31
5.6.60.0090.00414.28
5.6.50.0070.00714.22
5.6.40.0050.00714.17
5.6.30.0040.00814.30
5.6.20.0050.00814.12
5.6.10.0110.00314.12
5.6.00.0080.00514.34
5.5.380.0060.00514.18
5.5.370.0080.00514.31
5.5.360.0030.00614.02
5.5.350.0100.02916.32
5.5.340.0050.03215.35
5.5.330.0040.03116.37
5.5.320.0110.02816.15
5.5.310.0100.03016.24
5.5.300.0060.02715.28
5.5.290.0030.03315.44
5.5.280.0070.01416.22
5.5.270.0080.03316.40
5.5.260.0070.03216.49
5.5.250.0090.02516.28
5.5.240.0050.02116.24
5.5.230.0100.00414.18
5.5.220.0030.01114.20
5.5.210.0050.00513.97
5.5.200.0060.00814.19
5.5.190.0050.01113.98
5.5.180.0070.00514.18
5.5.170.0020.01114.22
5.5.160.0060.00514.11
5.5.150.0030.00614.09
5.5.140.0070.00514.03
5.5.130.0080.00514.28
5.5.120.0030.00814.14
5.5.110.0040.00614.00
5.5.100.0030.00814.03
5.5.90.0050.00714.00
5.5.80.0020.01214.14
5.5.70.0060.00514.25
5.5.60.0000.01013.97
5.5.50.0020.01014.05
5.5.40.0050.00814.00
5.5.30.0070.00714.08
5.5.20.0030.01114.25
5.5.10.0110.00413.82
5.5.00.0050.00814.14
5.4.450.0160.02214.58
5.4.440.0270.03114.69
5.4.430.0110.01914.67
5.4.420.0080.02114.57
5.4.410.0110.02014.47
5.4.400.0170.01814.40
5.4.390.0080.02814.39
5.4.380.0040.02614.32
5.4.370.0070.01714.27
5.4.360.0040.01814.34
5.4.350.0030.01812.15
5.4.340.0080.02312.14
5.4.330.0060.00112.23
5.4.320.0030.01912.30
5.4.310.0030.01612.30
5.4.300.0010.01912.30
5.4.290.0060.01712.30
5.4.280.0060.01512.27
5.4.270.0070.02714.49
5.4.260.0070.02514.48
5.4.250.0110.02114.50
5.4.240.0080.03214.50
5.4.230.0070.02414.48
5.4.220.0050.02514.50
5.4.210.0090.02114.42
5.4.200.0110.02414.47
5.4.190.0080.02514.53
5.4.180.0060.02914.47
5.4.170.0090.02414.40
5.4.160.0100.02914.46
5.4.150.0090.03214.45
5.4.140.0090.02513.62
5.4.130.0060.02013.57
5.4.120.0100.02813.61
5.4.110.0090.02113.64
5.4.100.0020.03113.66
5.4.90.0110.02613.67
5.4.80.0050.03213.64
5.4.70.0040.02613.60
5.4.60.0040.02613.65
5.4.50.0120.02613.59
5.4.40.0050.02713.66
5.4.30.0040.02913.69
5.4.20.0070.02713.61
5.4.10.0120.02913.65
5.4.00.0120.02513.39
5.3.290.0030.01812.42
5.3.280.0050.02413.03
5.3.270.0110.02413.04
5.3.260.0090.02213.01
5.3.250.0050.02213.03
5.3.240.0080.02813.08
5.3.230.0050.02713.01
5.3.220.0090.02612.98
5.3.210.0070.02012.98
5.3.200.0030.02913.03
5.3.190.0040.02713.07
5.3.180.0100.02613.00
5.3.170.0050.02313.00
5.3.160.0070.02613.03
5.3.150.0070.02713.07
5.3.140.0060.02312.94
5.3.130.0040.02313.05
5.3.120.0130.02513.07
5.3.110.0060.02413.05
5.3.100.0050.02612.83
5.3.90.0070.02712.87
5.3.80.0110.02012.82
5.3.70.0040.02512.88
5.3.60.0080.02112.86
5.3.50.0060.02312.80
5.3.40.0050.02112.79
5.3.30.0050.02312.84
5.3.20.0080.01812.69
5.3.10.0080.01712.64
5.3.00.0040.02712.72
5.2.170.0000.05311.36
5.2.160.0070.04011.36
5.2.150.0030.04711.25
5.2.140.0130.04311.07
5.2.130.0100.05311.23
5.2.120.0070.05711.30
5.2.110.0070.05310.92
5.2.100.0130.04711.27
5.2.90.0030.04311.08
5.2.80.0070.06010.99
5.2.70.0070.06011.02
5.2.60.0100.04011.27
5.2.50.0070.06011.25
5.2.40.0100.06010.98
5.2.30.0030.05011.11
5.2.20.0100.04711.07
5.2.10.0030.04311.08
5.2.00.0130.04310.86
5.1.60.0100.0409.98
5.1.50.0070.04010.08
5.1.40.0170.03710.06
5.1.30.0030.04310.63
5.1.20.0070.04010.40
5.1.10.0100.04310.35
5.1.00.0070.03710.35
5.0.50.0000.0308.62
5.0.40.0130.0238.64
5.0.30.0070.0578.21
5.0.20.0070.0278.23
5.0.10.0100.0378.38
5.0.00.0030.0608.42
4.4.90.0030.0207.13
4.4.80.0100.0177.13
4.4.70.0000.0277.13
4.4.60.0000.0307.13
4.4.50.0030.0207.10
4.4.40.0030.0337.10
4.4.30.0030.0277.10
4.4.20.0130.0237.10
4.4.10.0030.0237.10
4.4.00.0030.0377.10
4.3.110.0100.0277.10
4.3.100.0100.0207.10
4.3.90.0030.0207.10
4.3.80.0030.0437.10
4.3.70.0000.0377.10
4.3.60.0000.0337.10
4.3.50.0070.0207.10
4.3.40.0030.0407.10
4.3.30.0070.0307.10
4.3.20.0070.0207.10
4.3.10.0030.0307.10
4.3.00.0170.0206.86

preferences:
44.4 ms | 400 KiB | 5 Q