3v4l.org

run code in 300+ PHP versions simultaneously
<?php $product = array('material', 'britelki', 'chaschka', 'kostochki', 'vkladish', 'zastejka'); if( !finction_exists('create_from_variable') ){ function create_from_variable($arr){ foreach($product as $key){ create_function('',"$gc_".$key." = 123; echo '<p>$gc_material</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.0000.06718.66
5.4.260.0170.06718.97
5.4.250.0070.05719.02
5.4.240.0070.05318.75
5.4.230.0100.05318.70
5.4.220.0170.05718.96
5.4.210.0170.04718.99
5.4.200.0130.05018.91
5.4.190.0030.08019.02
5.4.180.0070.07318.80
5.4.170.0170.06318.76
5.4.160.0230.04018.96
5.4.150.0130.05018.75
5.4.140.0130.04716.36
5.4.130.0100.05016.41
5.4.120.0000.05716.46
5.4.110.0100.07016.53
5.4.100.0100.04716.41
5.4.90.0100.06716.62
5.4.80.0070.05016.48
5.4.70.0170.05316.40
5.4.60.0030.05716.31
5.4.50.0070.06316.43
5.4.40.0170.04016.58
5.4.30.0000.05716.38
5.4.20.0100.07316.50
5.4.10.0100.05016.33
5.4.00.0100.05715.87
5.3.280.0070.05014.75
5.3.270.0070.05314.59
5.3.260.0100.05014.69
5.3.250.0000.05714.43
5.3.240.0030.05314.61
5.3.230.0130.06314.84
5.3.220.0100.05014.47
5.3.210.0130.05714.55
5.3.200.0100.05014.65
5.3.190.0130.05714.63
5.3.180.0070.05014.55
5.3.170.0130.07314.53
5.3.160.0070.08014.63
5.3.150.0070.07014.47
5.3.140.0230.05714.77
5.3.130.0130.06014.61
5.3.120.0130.05314.63
5.3.110.0200.05314.68
5.3.100.0100.04714.26
5.3.90.0070.04714.20
5.3.80.0030.06714.09
5.3.70.0100.06714.18
5.3.60.0100.06714.09
5.3.50.0100.04313.95
5.3.40.0130.06713.87
5.3.30.0030.07314.00
5.3.20.0170.04313.88
5.3.10.0100.04713.73
5.3.00.0070.05313.89
5.2.170.0100.05311.12
5.2.160.0030.05311.23
5.2.150.0070.05311.21
5.2.140.0130.03711.21
5.2.130.0130.04311.16
5.2.120.0070.03711.18
5.2.110.0100.05011.10
5.2.100.0030.04311.28
5.2.90.0030.04711.18
5.2.80.0070.06711.05
5.2.70.0070.04311.16
5.2.60.0170.04011.13
5.2.50.0000.04711.18
5.2.40.0100.04010.96
5.2.30.0070.06010.96
5.2.20.0100.03711.18
5.2.10.0070.05311.08
5.2.00.0030.04010.70
5.1.60.0030.0509.99
5.1.50.0130.02710.05
5.1.40.0070.04710.08
5.1.30.0030.04310.32
5.1.20.0030.04010.42
5.1.10.0100.04010.12
5.1.00.0000.04010.16
5.0.50.0030.0338.38
5.0.40.0100.0208.24
5.0.30.0030.0478.27
5.0.20.0000.0308.29
5.0.10.0100.0238.12
5.0.00.0070.0378.07
4.4.90.0030.0206.62
4.4.80.0100.0176.62
4.4.70.0130.0206.62
4.4.60.0070.0206.62
4.4.50.0070.0206.62
4.4.40.0000.0376.62
4.4.30.0000.0236.62
4.4.20.0030.0306.62
4.4.10.0030.0206.62
4.4.00.0070.0406.62
4.3.110.0000.0236.62
4.3.100.0030.0276.62
4.3.90.0130.0136.62
4.3.80.0000.0476.62
4.3.70.0100.0136.62
4.3.60.0000.0236.62
4.3.50.0070.0176.62
4.3.40.0000.0376.62
4.3.30.0000.0236.62
4.3.20.0030.0206.62
4.3.10.0030.0206.62
4.3.00.0130.0236.61

preferences:
148.96 ms | 1394 KiB | 7 Q