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.0100.05319.04
5.4.260.0070.05319.02
5.4.250.0170.07319.10
5.4.240.0170.07018.97
5.4.230.0130.04319.01
5.4.220.0130.07318.68
5.4.210.0170.05318.91
5.4.200.0070.07019.10
5.4.190.0070.05319.00
5.4.180.0000.06319.00
5.4.170.0030.07718.96
5.4.160.0170.05019.00
5.4.150.0170.07318.98
5.4.140.0070.05716.39
5.4.130.0000.06316.34
5.4.120.0100.07716.43
5.4.110.0100.04716.53
5.4.100.0030.07016.48
5.4.90.0130.07016.63
5.4.80.0100.06316.40
5.4.70.0130.04316.57
5.4.60.0170.04716.34
5.4.50.0070.06316.49
5.4.40.0070.06316.51
5.4.30.0100.06016.54
5.4.20.0170.04316.64
5.4.10.0070.06316.46
5.4.00.0170.06015.87
5.3.280.0100.05014.57
5.3.270.0030.05714.68
5.3.260.0100.07014.69
5.3.250.0100.07014.59
5.3.240.0070.07714.70
5.3.230.0130.04714.69
5.3.220.0070.05714.68
5.3.210.0170.07014.59
5.3.200.0130.06014.39
5.3.190.0130.06314.65
5.3.180.0070.07314.78
5.3.170.0030.07714.65
5.3.160.0100.05014.39
5.3.150.0100.05314.39
5.3.140.0070.05714.65
5.3.130.0070.07714.69
5.3.120.0130.06014.55
5.3.110.0030.08314.56
5.3.100.0070.05314.21
5.3.90.0130.06714.02
5.3.80.0100.04714.05
5.3.70.0070.05714.05
5.3.60.0100.05713.99
5.3.50.0070.06713.93
5.3.40.0100.05713.98
5.3.30.0070.05013.91
5.3.20.0100.05013.79
5.3.10.0130.05013.48
5.3.00.0100.05313.62
5.2.170.0170.04011.05
5.2.160.0070.03711.05
5.2.150.0000.06311.23
5.2.140.0100.04011.23
5.2.130.0200.03710.93
5.2.120.0070.04011.11
5.2.110.0030.04311.18
5.2.100.0070.04711.18
5.2.90.0030.04011.16
5.2.80.0070.05711.27
5.2.70.0000.06011.18
5.2.60.0070.06011.12
5.2.50.0070.06010.93
5.2.40.0070.05011.08
5.2.30.0070.04310.88
5.2.20.0030.05711.04
5.2.10.0000.04711.08
5.2.00.0170.05010.88
5.1.60.0030.0439.98
5.1.50.0000.0409.84
5.1.40.0100.0479.95
5.1.30.0100.04710.55
5.1.20.0070.03710.58
5.1.10.0070.04710.16
5.1.00.0030.03710.14
5.0.50.0030.0308.58
5.0.40.0070.0378.43
5.0.30.0100.0538.20
5.0.20.0100.0338.13
5.0.10.0070.0238.27
5.0.00.0000.0578.00
4.4.90.0070.0206.82
4.4.80.0000.0236.82
4.4.70.0070.0276.82
4.4.60.0030.0276.82
4.4.50.0030.0206.82
4.4.40.0030.0476.82
4.4.30.0070.0176.82
4.4.20.0070.0206.82
4.4.10.0030.0236.82
4.4.00.0030.0336.82
4.3.110.0030.0336.82
4.3.100.0030.0206.82
4.3.90.0070.0306.82
4.3.80.0030.0336.82
4.3.70.0030.0276.82
4.3.60.0000.0206.82
4.3.50.0070.0276.82
4.3.40.0030.0336.82
4.3.30.0030.0206.82
4.3.20.0100.0206.82
4.3.10.0070.0176.82
4.3.00.0100.0206.62

preferences:
148.12 ms | 1386 KiB | 7 Q