3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array('material', 'britelki', 'chaschka', 'kostochki', 'vkladish', 'zastejka'); foreach($product as $key){ $var = "show_the_product_".$key; $$var = function(){ $"gc_".$key = get_post_meta(get_the_ID(), 'gc_'.$key.'', true); if ((isset(${"gc_".$key})) && (${"gc_".$key} != '')) { echo "<p class=\"goods-material\">$gc_".$key."</p>"; } }; } $show_the_product_material();

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)
5.4.270.0070.05718.93
5.4.260.0130.05019.00
5.4.250.0070.06718.93
5.4.240.0100.07718.72
5.4.230.0100.05019.06
5.4.220.0200.05318.72
5.4.210.0070.05318.96
5.4.200.0100.04718.96
5.4.190.0130.06018.96
5.4.180.0200.05318.98
5.4.170.0100.07018.87
5.4.160.0130.06018.79
5.4.150.0130.07018.92
5.4.140.0130.04316.43
5.4.130.0170.05716.55
5.4.120.0030.07316.36
5.4.110.0100.06316.59
5.4.100.0000.05316.55
5.4.90.0200.03716.44
5.4.80.0130.07016.38
5.4.70.0130.05316.50
5.4.60.0170.03716.50
5.4.50.0030.08016.44
5.4.40.0070.05316.61
5.4.30.0100.05316.27
5.4.20.0170.06316.43
5.4.10.0130.05316.35
5.4.00.0170.04015.81
5.3.280.0200.05314.58
5.3.270.0030.05714.77
5.3.260.0130.07314.78
5.3.250.0130.06014.69
5.3.240.0130.04714.67
5.3.230.0100.04714.77
5.3.220.0100.05714.65
5.3.210.0070.07014.72
5.3.200.0170.06714.70
5.3.190.0070.05314.64
5.3.180.0170.04714.64
5.3.170.0100.07314.65
5.3.160.0130.06714.55
5.3.150.0030.07314.64
5.3.140.0200.05714.77
5.3.130.0100.07714.61
5.3.120.0070.06014.68
5.3.110.0200.05314.46
5.3.100.0070.06014.17
5.3.90.0070.05314.18
5.3.80.0070.06014.02
5.3.70.0070.06014.18
5.3.60.0030.07014.09
5.3.50.0270.05014.13
5.3.40.0030.07014.13
5.3.30.0100.05313.98
5.3.20.0070.06313.88
5.3.10.0100.06013.65
5.3.00.0100.05713.71
5.2.170.0030.05711.08
5.2.160.0030.05710.90
5.2.150.0070.04010.98
5.2.140.0130.04711.04
5.2.130.0070.04311.19
5.2.120.0030.04011.21
5.2.110.0170.03311.02
5.2.100.0000.04711.02
5.2.90.0070.05011.00
5.2.80.0130.06011.02
5.2.70.0100.04011.20
5.2.60.0000.05010.99
5.2.50.0000.05011.17
5.2.40.0170.05011.02
5.2.30.0000.05010.98
5.2.20.0130.03310.79
5.2.10.0070.03710.92
5.2.00.0070.06010.55
5.1.60.0130.03710.15
5.1.50.0100.03310.02
5.1.40.0070.04310.02
5.1.30.0100.04010.27
5.1.20.0070.04010.43
5.1.10.0030.0509.98
5.1.00.0070.0509.84
5.0.50.0100.0378.40
5.0.40.0130.0308.26
5.0.30.0070.0578.28
5.0.20.0030.0338.11
5.0.10.0100.0378.00
5.0.00.0000.0438.39
4.4.90.0000.0276.42
4.4.80.0100.0176.42
4.4.70.0030.0206.42
4.4.60.0100.0176.42
4.4.50.0030.0306.42
4.4.40.0100.0406.64
4.4.30.0000.0276.64
4.4.20.0070.0276.64
4.4.10.0070.0236.64
4.4.00.0130.0376.64
4.3.110.0030.0276.64
4.3.100.0070.0206.62
4.3.90.0030.0206.62
4.3.80.0070.0306.57
4.3.70.0100.0136.54
4.3.60.0030.0306.53
4.3.50.0070.0276.52
4.3.40.0170.0306.51
4.3.30.0000.0236.49
4.3.20.0070.0206.43
4.3.10.0100.0176.42
4.3.00.0030.01315.57

preferences:
142.21 ms | 1394 KiB | 7 Q