3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $Id: node.tpl.php,v 1.4.2.1 2009/05/12 18:41:54 johnalbin Exp $ /** * @file node.tpl.php * * Theme implementation to display a node. * * Available variables: * - $title: the (sanitized) title of the node. * - $content: Node body or teaser depending on $teaser flag. * - $picture: The authors picture of the node output from * theme_user_picture(). * - $date: Formatted creation date (use $created to reformat with * format_date()). * - $links: Themed links like "Read more", "Add new comment", etc. output * from theme_links(). * - $name: Themed username of node author output from theme_user(). * - $node_url: Direct url of the current node. * - $terms: the themed list of taxonomy term links output from theme_links(). * - $submitted: themed submission information output from * theme_node_submitted(). * * Other variables: * - $node: Full node object. Contains data that may not be safe. * - $type: Node type, i.e. story, page, blog, etc. * - $comment_count: Number of comments attached to the node. * - $uid: User ID of the node author. * - $created: Time the node was published formatted in Unix timestamp. * - $zebra: Outputs either "even" or "odd". Useful for zebra striping in * teaser listings. * - $id: Position of the node. Increments each time it's output. * * Node status variables: * - $teaser: Flag for the teaser state. * - $page: Flag for the full page state. * - $promote: Flag for front page promotion state. * - $sticky: Flags for sticky post setting. * - $status: Flag for published status. * - $comment: State of comment settings for the node. * - $readmore: Flags true if the teaser content of the node cannot hold the * main body content. * - $is_front: Flags true when presented in the front page. * - $logged_in: Flags true when the current user is a logged-in member. * - $is_admin: Flags true when the current user is an administrator. * * @see template_preprocess() * @see template_preprocess_node() */ $claseContent = "servicio"; ?> <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"><div class="node-inner"> <?php// print $picture; ?> <?php if (!$page): ?> <h2 class="title"> <a href="<?php print $node_url; ?>" title="<?php print $title ?>"><?php print $title; ?></a> </h2> <?php else: $titulo = "ADQUIRIR EJEMPLAR / SUSCRIBIRSE"; if (strpos($terms,'Cap Key') !== FALSE){ $claseContent = "capKey"; $titulo = "ADQUIRIR"; } ?> <h2 class="adquirir"><?php print $titulo;?></h2> <?endif; ?> <?php if ($unpublished): ?> <div class="unpublished"><?php print t('Unpublished'); ?></div> <?php endif; ?> <div class="content <?php print $claseContent; ?>"> <?php print $content; ?> </div> <?php print $links; ?> </div></div> <!-- /node-inner, /node -->

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.0140.00018.67
8.3.30.0090.00618.73
8.3.20.0000.00822.00
8.3.10.0040.00423.61
8.3.00.0050.00319.85
8.2.170.0000.01422.96
8.2.160.0100.01020.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00021.02
8.2.110.0090.00620.52
8.2.100.0120.00017.80
8.2.90.0040.00418.92
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0060.00617.30
8.2.50.0030.00718.07
8.2.40.0090.00022.20
8.2.30.0000.00820.63
8.2.20.0000.00817.44
8.2.10.0000.00717.80
8.2.00.0040.00417.93
8.1.270.0040.00420.25
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.00723.83
8.1.230.0120.00017.64
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.10
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0060.00318.59
8.1.160.0070.00020.64
8.1.150.0000.00718.67
8.1.140.0000.00819.37
8.1.130.0070.00017.63
8.1.120.0030.00317.24
8.1.110.0000.00717.33
8.1.100.0030.00617.34
8.1.90.0040.00417.29
8.1.80.0000.00717.24
8.1.70.0030.00317.31
8.1.60.0040.00417.45
8.1.50.0030.00617.38
8.1.40.0000.00817.32
8.1.30.0080.00017.47
8.1.20.0040.00417.52
8.1.10.0050.00317.33
8.1.00.0070.00017.35
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0070.00018.35
8.0.270.0030.00317.16
8.0.260.0090.00017.23
8.0.250.0030.00316.94
8.0.240.0080.00016.95
8.0.230.0070.00016.92
8.0.220.0070.00016.84
8.0.210.0030.00316.88
8.0.200.0030.00316.98
8.0.190.0040.00416.79
8.0.180.0100.00016.85
8.0.170.0040.00416.92
8.0.160.0000.00716.89
8.0.150.0090.00316.88
8.0.140.0050.00316.77
8.0.130.0000.00513.45
8.0.120.0040.00416.93
8.0.110.0070.00016.74
8.0.100.0000.00716.86
8.0.90.0080.00016.80
8.0.80.0070.01016.78
8.0.70.0040.00416.92
8.0.60.0040.00416.79
8.0.50.0000.00716.96
8.0.30.0040.01217.01
8.0.20.0090.01117.40
8.0.10.0000.00816.95
8.0.00.0100.00716.64
7.4.330.0020.00216.70
7.4.320.0000.00616.41
7.4.300.0000.00616.39
7.4.290.0030.00316.49
7.4.280.0030.00616.48
7.4.270.0000.00716.48
7.4.260.0070.00016.27
7.4.250.0000.00816.43
7.4.240.0020.00516.37
7.4.230.0000.00716.48
7.4.220.0150.00316.37
7.4.210.0120.00416.51
7.4.200.0030.00316.38
7.4.160.0060.00916.26
7.4.150.0110.01117.40
7.4.140.0160.00817.86
7.4.130.0090.00916.33
7.4.120.0080.01016.43
7.4.110.0110.00816.32
7.4.100.0080.00816.24
7.4.90.0090.00916.25
7.4.80.0140.00219.39
7.4.70.0130.00316.16
7.4.60.0030.01316.32
7.4.50.0040.01116.37
7.4.40.0140.00716.53
7.4.30.0190.00416.45
7.4.00.0100.00715.02
7.3.330.0020.00213.08
7.3.320.0030.00313.09
7.3.310.0030.00316.18
7.3.300.0070.00016.19
7.3.290.0110.00716.14
7.3.280.0130.00616.22
7.3.270.0060.01117.40
7.3.260.0060.01016.20
7.3.250.0110.00816.23
7.3.240.0130.00516.47
7.3.230.0100.01016.39
7.3.210.0120.00616.19
7.3.200.0100.00716.41
7.3.190.0100.00716.21
7.3.180.0040.01216.30
7.3.170.0210.00016.35
7.3.160.0080.00816.18
7.2.330.0060.01216.18
7.2.320.0060.01216.42
7.2.310.0040.01216.30
7.2.300.0140.00716.36
7.2.290.0100.00716.27
7.2.60.0030.01016.68
7.2.00.0030.00819.54
7.1.200.0030.00515.85
7.1.100.0040.01118.03
7.1.70.0050.00517.03
7.1.60.0140.01019.13
7.1.50.0040.01816.79
7.1.00.0000.08022.57
7.0.200.0000.00716.78
7.0.60.0170.03320.05
7.0.50.0070.05317.93
7.0.40.0130.07720.20
7.0.30.0170.04320.23
7.0.20.0300.08320.17
7.0.10.0070.08720.30
7.0.00.0170.07719.99
5.6.280.0070.08321.12
5.6.210.0130.07020.64
5.6.200.0100.03718.12
5.6.190.0070.08020.32
5.6.180.0330.07320.39
5.6.170.0270.07720.44
5.6.160.0070.06318.18
5.6.150.0070.08318.18
5.6.140.0100.07718.09
5.6.130.0030.05718.07
5.6.120.0170.06320.99
5.6.110.0270.05720.88
5.6.100.0100.08320.97
5.6.90.0070.04321.00
5.6.80.0230.06020.46
5.5.350.0200.06720.38
5.5.340.0100.08017.96
5.5.330.0200.07020.27
5.5.320.0300.07320.50
5.5.310.0230.04020.34
5.5.300.0030.04018.00
5.5.290.0070.08317.91
5.5.280.0070.07020.88
5.5.270.0100.07720.75
5.5.260.0100.08720.86
5.5.250.0030.08320.70
5.5.240.2700.04020.28

preferences:
31.02 ms | 400 KiB | 5 Q