3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array('material', 'britelki', 'chaschka', 'kostochki', 'vkladish', 'zastejka'); foreach($product as $key){ $var = "show_the_product_".$key; $$var = function(){ $"gc_".$key = 'gc_'.$key.''; if ((isset(${"gc_".$key})) && (${"gc_".$key} != '')) { echo "<p class=\"goods-material\">$gc_".$key."</p>"; } }; } $show_the_product_material();

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.0330.04019.08
5.4.260.0400.04718.89
5.4.250.0470.06319.17
5.4.240.0470.06719.14
5.4.230.0400.03719.23
5.4.220.0400.03718.86
5.4.210.0430.06719.05
5.4.200.0370.03719.09
5.4.190.0400.05319.20
5.4.180.0470.04018.97
5.4.170.0470.07719.15
5.4.160.0370.05019.05
5.4.150.0470.07019.22
5.4.140.0530.05716.57
5.4.130.0530.06016.37
5.4.120.0500.06016.35
5.4.110.0430.06716.61
5.4.100.0470.04716.43
5.4.90.0430.05316.25
5.4.80.0400.06716.57
5.4.70.0500.06316.44
5.4.60.0430.06716.43
5.4.50.0370.04016.34
5.4.40.0470.06316.42
5.4.30.0330.03716.52
5.4.20.0400.06716.43
5.4.10.0430.03316.55
5.4.00.0370.07315.94
5.3.280.0370.03714.81
5.3.270.0430.06714.69
5.3.260.0400.04014.51
5.3.250.0530.05714.52
5.3.240.0430.06714.62
5.3.230.0430.03314.60
5.3.220.0300.04014.57
5.3.210.0570.04014.56
5.3.200.0430.07014.59
5.3.190.0500.06014.54
5.3.180.0370.05314.61
5.3.170.0470.06714.68
5.3.160.0470.06714.54
5.3.150.0430.06714.55
5.3.140.0530.05314.46
5.3.130.0400.06014.51
5.3.120.0530.05714.77
5.3.110.0470.07014.45
5.3.100.0370.03714.07
5.3.90.0400.06713.99
5.3.80.0500.06014.00
5.3.70.0500.05714.10
5.3.60.0400.07314.01
5.3.50.0470.05713.81
5.3.40.0530.06714.09
5.3.30.0370.03713.81
5.3.20.0430.06313.58
5.3.10.0470.06313.72
5.3.00.0330.04713.65
5.2.170.0370.05312.31
5.2.160.0400.05312.31
5.2.150.0270.04312.31
5.2.140.0300.04312.31
5.2.130.0400.05312.31
5.2.120.0470.05012.31
5.2.110.0400.04712.31
5.2.100.0370.04712.31
5.2.90.0300.03312.31
5.2.80.0300.03312.31
5.2.70.0300.04012.31
5.2.60.0330.06012.31
5.2.50.0270.03312.31
5.2.40.0270.02312.31
5.2.30.0200.03012.31
5.2.20.0270.02312.31
5.2.10.0200.03012.31
5.2.00.0230.02712.31
5.1.60.0270.02712.31
5.1.50.0170.03012.31
5.1.40.0230.02312.31
5.1.30.0230.03712.31
5.1.20.0270.02712.31
5.1.10.0230.03312.31
5.1.00.0300.05012.31
5.0.50.0200.04012.31
5.0.40.0130.01712.31
5.0.30.0130.02712.31
5.0.20.0130.04312.31
5.0.10.0130.04012.31
5.0.00.0130.04712.31
4.4.90.0130.03312.31
4.4.80.0070.01712.31
4.4.70.0170.01012.31
4.4.60.0130.03312.31
4.4.50.0130.01712.31
4.4.40.0130.02712.31
4.4.30.0100.01712.31
4.4.20.0130.01012.31
4.4.10.0170.02312.31
4.4.00.0100.04012.31
4.3.110.0100.01712.31
4.3.100.0100.01312.31
4.3.90.0100.01312.31
4.3.80.0130.02012.31
4.3.70.0100.01312.31
4.3.60.0170.03012.31
4.3.50.0130.01712.31
4.3.40.0100.05312.31
4.3.30.0070.02712.31
4.3.20.0100.02712.31
4.3.10.0070.01712.31
4.3.00.0070.03712.31

preferences:
138.74 ms | 1394 KiB | 7 Q