3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array('material', 'britelki', 'chaschka', 'kostochki', 'vkladish', 'zastejka'); if( !function_exists('create_from_variable') ){ function create_from_variable($arr){ foreach($arr 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>"; } } } } } create_from_variable($product);

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.0130.06318.79
5.4.260.0100.05318.91
5.4.250.0000.06018.91
5.4.240.0170.06718.65
5.4.230.0030.05719.02
5.4.220.0070.06018.65
5.4.210.0170.05719.02
5.4.200.0030.06018.79
5.4.190.0070.07718.79
5.4.180.0100.05319.03
5.4.170.0270.05018.82
5.4.160.0170.05718.94
5.4.150.0170.05718.74
5.4.140.0100.05316.63
5.4.130.0200.04316.64
5.4.120.0100.07016.47
5.4.110.0230.06316.52
5.4.100.0130.04716.42
5.4.90.0170.06016.52
5.4.80.0130.05016.35
5.4.70.0100.06316.32
5.4.60.0130.06716.38
5.4.50.0130.04716.45
5.4.40.0100.05016.58
5.4.30.0030.05316.43
5.4.20.0170.04716.42
5.4.10.0070.06316.48
5.4.00.0170.06015.87
5.3.280.0070.06014.71
5.3.270.0030.06714.75
5.3.260.0130.06714.58
5.3.250.0200.05014.70
5.3.240.0170.06714.61
5.3.230.0130.05014.59
5.3.220.0100.07014.47
5.3.210.0100.05714.73
5.3.200.0100.05014.59
5.3.190.0070.07714.59
5.3.180.0200.05014.55
5.3.170.0030.05714.64
5.3.160.0000.06314.77
5.3.150.0130.06714.48
5.3.140.0100.05314.64
5.3.130.0200.08314.63
5.3.120.0130.06714.54
5.3.110.0030.06314.54
5.3.100.0200.06714.04
5.3.90.0030.05714.08
5.3.80.0070.05714.09
5.3.70.0200.05714.04
5.3.60.0200.04314.22
5.3.50.0070.07014.18
5.3.40.0100.07013.95
5.3.30.0130.04314.00
5.3.20.0170.04313.93
5.3.10.0170.05313.74
5.3.00.0200.05313.55
5.2.170.0170.04011.23
5.2.160.0130.04711.24
5.2.150.0070.06311.23
5.2.140.0170.03711.05
5.2.130.0100.05311.01
5.2.120.0100.04011.19
5.2.110.0100.04011.18
5.2.100.0070.05311.00
5.2.90.0170.04311.00
5.2.80.0100.05011.25
5.2.70.0100.05711.17
5.2.60.0170.03311.14
5.2.50.0000.05311.20
5.2.40.0030.05311.18
5.2.30.0130.05010.87
5.2.20.0400.04310.93
5.2.10.0200.05310.92
5.2.00.0130.04710.79
5.1.60.0100.03010.01
5.1.50.0030.05010.09
5.1.40.0100.04310.17
5.1.30.0070.05310.41
5.1.20.0100.03710.42
5.1.10.0070.04010.23
5.1.00.0070.03710.07
5.0.50.0070.0308.54
5.0.40.0100.0338.46
5.0.30.0070.0408.22
5.0.20.0030.0378.26
5.0.10.0070.0278.20
5.0.00.0000.0578.14
4.4.90.0070.0236.86
4.4.80.0030.0336.86
4.4.70.0100.0236.86
4.4.60.0100.0206.86
4.4.50.0030.0276.86
4.4.40.0030.0476.86
4.4.30.0030.0306.86
4.4.20.0030.0276.86
4.4.10.0100.0206.86
4.4.00.0000.0376.86
4.3.110.0100.0236.86
4.3.100.0070.0276.86
4.3.90.0030.0306.86
4.3.80.0030.0406.86
4.3.70.0030.0236.86
4.3.60.0100.0236.86
4.3.50.0000.0236.86
4.3.40.0000.0506.86
4.3.30.0030.0236.86
4.3.20.0030.0276.86
4.3.10.0000.0236.86
4.3.00.0170.0206.61

preferences:
136.89 ms | 1394 KiB | 7 Q