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; function $var(){ $gc_material = 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.0100.07018.75
5.4.260.0070.08018.75
5.4.250.0030.06018.80
5.4.240.0030.05719.02
5.4.230.0130.06319.01
5.4.220.0100.07718.66
5.4.210.0070.05318.96
5.4.200.0070.05318.65
5.4.190.0100.07718.75
5.4.180.0170.04718.74
5.4.170.0070.06018.96
5.4.160.0000.06018.94
5.4.150.0070.07718.74
5.4.140.0130.05016.46
5.4.130.0030.07716.36
5.4.120.0070.07016.47
5.4.110.0130.06716.62
5.4.100.0030.07316.52
5.4.90.0170.04316.33
5.4.80.0130.06316.56
5.4.70.0170.06316.35
5.4.60.0200.05316.34
5.4.50.0130.04716.49
5.4.40.0230.03316.55
5.4.30.0230.05016.50
5.4.20.0100.06716.55
5.4.10.0130.06316.33
5.4.00.0170.05015.91
5.3.280.0170.05714.68
5.3.270.0170.06314.69
5.3.260.0130.06314.59
5.3.250.0130.06714.82
5.3.240.0270.05714.61
5.3.230.0130.06714.57
5.3.220.0100.08014.66
5.3.210.0100.05314.74
5.3.200.0170.05714.47
5.3.190.0170.06314.74
5.3.180.0100.06714.74
5.3.170.0130.06314.72
5.3.160.0070.06714.55
5.3.150.0030.05714.64
5.3.140.0170.04714.71
5.3.130.0130.06714.53
5.3.120.0030.05314.78
5.3.110.0130.06014.65
5.3.100.0130.07014.12
5.3.90.0100.07714.19
5.3.80.0100.07314.11
5.3.70.0030.05313.86
5.3.60.0170.06014.22
5.3.50.0030.05314.18
5.3.40.0130.05313.96
5.3.30.0070.05014.08
5.3.20.0230.05713.88
5.3.10.0170.06013.87
5.3.00.0100.05013.55
5.2.170.0230.04711.33
5.2.160.0100.05311.33
5.2.150.0070.04011.21
5.2.140.0030.04311.30
5.2.130.0270.04711.19
5.2.120.0200.04711.17
5.2.110.0070.04011.07
5.2.100.0100.05710.92
5.2.90.0070.04011.18
5.2.80.0130.05311.25
5.2.70.0230.04311.17
5.2.60.0030.04711.04
5.2.50.0130.05310.98
5.2.40.0030.06011.08
5.2.30.0100.03711.13
5.2.20.0070.05011.03
5.2.10.0130.04010.85
5.2.00.0100.05310.81
5.1.60.0030.04310.07
5.1.50.0070.04010.16
5.1.40.0070.03710.06
5.1.30.0100.04010.43
5.1.20.0070.05010.34
5.1.10.0130.04710.00
5.1.00.0070.03710.07
5.0.50.0030.0478.58
5.0.40.0170.0178.45
5.0.30.0070.0538.27
5.0.20.0170.0308.03
5.0.10.0070.0378.24
5.0.00.0130.0478.36
4.4.90.0030.0236.79
4.4.80.0070.0206.79
4.4.70.0030.0206.79
4.4.60.0000.0236.79
4.4.50.0030.0206.79
4.4.40.0000.0476.79
4.4.30.0000.0336.79
4.4.20.0000.0276.79
4.4.10.0030.0206.79
4.4.00.0030.0376.79
4.3.110.0030.0436.79
4.3.100.0030.0206.79
4.3.90.0070.0276.79
4.3.80.0030.0336.79
4.3.70.0030.0206.79
4.3.60.0100.0276.79
4.3.50.0030.0236.79
4.3.40.0070.0436.79
4.3.30.0000.0236.79
4.3.20.0030.0276.79
4.3.10.0070.0276.79
4.3.00.0000.0236.61

preferences:
138.72 ms | 1394 KiB | 7 Q