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){ function show_the_product_$key(){ $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.0130.06719.00
5.4.260.0100.06719.06
5.4.250.0100.07019.10
5.4.240.0130.07318.94
5.4.230.0070.05018.80
5.4.220.0130.07718.80
5.4.210.0030.05718.73
5.4.200.0230.05318.77
5.4.190.0170.06719.02
5.4.180.0100.05018.90
5.4.170.0070.05718.95
5.4.160.0100.04719.09
5.4.150.0070.06318.92
5.4.140.0030.05316.39
5.4.130.0070.05016.38
5.4.120.0100.07016.57
5.4.110.0170.07016.57
5.4.100.0070.06316.68
5.4.90.0070.04716.39
5.4.80.0070.04716.54
5.4.70.0000.07716.52
5.4.60.0000.07716.36
5.4.50.0100.04716.36
5.4.40.0130.04716.52
5.4.30.0100.04716.46
5.4.20.0100.06016.39
5.4.10.0100.05016.44
5.4.00.0100.05715.92
5.3.280.0070.05314.60
5.3.270.0100.05714.61
5.3.260.0030.05714.74
5.3.250.0030.05714.58
5.3.240.0200.04014.78
5.3.230.0000.05714.58
5.3.220.0030.06014.65
5.3.210.0070.05314.66
5.3.200.0100.04714.54
5.3.190.0100.05014.48
5.3.180.0100.07714.80
5.3.170.0130.05014.54
5.3.160.0130.04014.67
5.3.150.0100.04714.79
5.3.140.0030.05314.63
5.3.130.0070.05014.64
5.3.120.0130.05014.73
5.3.110.0170.04314.52
5.3.100.0070.06314.12
5.3.90.0070.07014.10
5.3.80.0030.05314.25
5.3.70.0130.05314.25
5.3.60.0100.05314.08
5.3.50.0070.05313.79
5.3.40.0000.06013.98
5.3.30.0070.05314.07
5.3.20.0100.04713.79
5.3.10.0070.04713.71
5.3.00.0070.05313.73
5.2.170.0100.05711.24
5.2.160.0200.03711.11
5.2.150.0000.04711.16
5.2.140.0070.04311.37
5.2.130.0000.04710.94
5.2.120.0070.04011.09
5.2.110.0170.03711.08
5.2.100.0070.04011.17
5.2.90.0130.04011.18
5.2.80.0070.04311.16
5.2.70.0030.05011.09
5.2.60.0100.04311.22
5.2.50.0030.05011.02
5.2.40.0070.04310.99
5.2.30.0170.05011.15
5.2.20.0130.04710.95
5.2.10.0200.04310.92
5.2.00.0130.04710.95
5.1.60.0100.03010.20
5.1.50.0100.03310.07
5.1.40.0100.03310.08
5.1.30.0130.04710.40
5.1.20.0100.04010.44
5.1.10.0070.03310.14
5.1.00.0100.03710.13
5.0.50.0030.0308.38
5.0.40.0030.0338.51
5.0.30.0030.0538.29
5.0.20.0100.0278.26
5.0.10.0030.0408.13
5.0.00.0100.0478.12
4.4.90.0030.0306.82
4.4.80.0000.0236.82
4.4.70.0030.0276.82
4.4.60.0030.0206.82
4.4.50.0000.0276.82
4.4.40.0070.0336.82
4.4.30.0000.0336.82
4.4.20.0100.0176.82
4.4.10.0070.0176.82
4.4.00.0070.0336.82
4.3.110.0100.0276.82
4.3.100.0070.0276.82
4.3.90.0030.0206.82
4.3.80.0070.0306.82
4.3.70.0030.0306.82
4.3.60.0030.0206.82
4.3.50.0030.0276.82
4.3.40.0030.0436.82
4.3.30.0030.0276.82
4.3.20.0000.0276.82
4.3.10.0030.0276.82
4.3.00.0070.0236.61

preferences:
140.53 ms | 1394 KiB | 7 Q