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_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.0170.04318.76
5.4.260.0200.07718.83
5.4.250.0130.05319.09
5.4.240.0130.07718.75
5.4.230.0200.06718.86
5.4.220.0130.08018.65
5.4.210.0230.06018.95
5.4.200.0100.06718.96
5.4.190.0200.07019.01
5.4.180.0070.05318.75
5.4.170.0170.05718.89
5.4.160.0030.08318.78
5.4.150.0170.05318.97
5.4.140.0100.05016.39
5.4.130.0030.05716.64
5.4.120.0200.04016.46
5.4.110.0200.06316.67
5.4.100.0100.05016.55
5.4.90.0030.05716.45
5.4.80.0070.05316.51
5.4.70.0130.06316.43
5.4.60.0130.04716.50
5.4.50.0200.04016.62
5.4.40.0170.05716.51
5.4.30.0130.05316.52
5.4.20.0100.05016.49
5.4.10.0130.07316.45
5.4.00.0100.04715.82
5.3.280.0170.05014.68
5.3.270.0070.05314.62
5.3.260.0170.07014.63
5.3.250.0130.05014.60
5.3.240.0130.05714.69
5.3.230.0130.06014.74
5.3.220.0130.06714.77
5.3.210.0230.05314.41
5.3.200.0130.06714.76
5.3.190.0170.06714.75
5.3.180.0030.07714.65
5.3.170.0130.05014.55
5.3.160.0130.07014.66
5.3.150.0200.04014.66
5.3.140.0100.05714.65
5.3.130.0200.06714.64
5.3.120.0300.05314.39
5.3.110.0070.05314.64
5.3.100.0070.05014.13
5.3.90.0070.07314.04
5.3.80.0170.06014.03
5.3.70.0100.05014.09
5.3.60.0130.04014.02
5.3.50.0030.05314.05
5.3.40.0130.05313.98
5.3.30.0070.05313.94
5.3.20.0030.06013.80
5.3.10.0100.06713.50
5.3.00.0270.05313.73
5.2.170.0000.05011.24
5.2.160.0030.04011.00
5.2.150.0170.04011.12
5.2.140.0070.04311.05
5.2.130.0100.05011.06
5.2.120.0070.03711.29
5.2.110.0130.03311.09
5.2.100.0030.04711.08
5.2.90.0070.06011.25
5.2.80.0070.04711.17
5.2.70.0100.04311.15
5.2.60.0100.04011.14
5.2.50.0230.05011.18
5.2.40.0100.05011.07
5.2.30.0030.04710.94
5.2.20.0100.05010.95
5.2.10.0070.05310.81
5.2.00.0070.04010.88
5.1.60.0130.02710.24
5.1.50.0000.03710.05
5.1.40.0100.04010.02
5.1.30.0100.03710.41
5.1.20.0000.04310.54
5.1.10.0030.03710.05
5.1.00.0130.0379.91
5.0.50.0030.0278.51
5.0.40.0070.0238.63
5.0.30.0100.0378.21
5.0.20.0070.0308.29
5.0.10.0070.0278.24
5.0.00.0030.0408.13
4.4.90.0030.0206.86
4.4.80.0000.0276.86
4.4.70.0070.0236.86
4.4.60.0030.0306.86
4.4.50.0030.0236.86
4.4.40.0070.0376.86
4.4.30.0030.0306.86
4.4.20.0100.0206.86
4.4.10.0000.0336.86
4.4.00.0000.0376.86
4.3.110.0130.0206.86
4.3.100.0030.0206.82
4.3.90.0030.0306.82
4.3.80.0000.0436.82
4.3.70.0030.0206.82
4.3.60.0000.0236.82
4.3.50.0070.0276.82
4.3.40.0070.0406.82
4.3.30.0000.0236.82
4.3.20.0000.0236.82
4.3.10.0000.0306.82
4.3.00.0130.0206.61

preferences:
136.5 ms | 1394 KiB | 7 Q