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_".$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.0070.06019.00
5.4.260.0030.07719.00
5.4.250.0070.06718.93
5.4.240.0170.04718.97
5.4.230.0170.04718.75
5.4.220.0130.05718.84
5.4.210.0170.07718.95
5.4.200.0070.06018.97
5.4.190.0200.07018.94
5.4.180.0000.06318.80
5.4.170.0200.05018.65
5.4.160.0270.05318.79
5.4.150.0170.05718.78
5.4.140.0070.07016.39
5.4.130.0130.05316.50
5.4.120.0130.04716.23
5.4.110.0030.07716.49
5.4.100.0100.06016.55
5.4.90.0030.05316.41
5.4.80.0230.03716.39
5.4.70.0100.06016.55
5.4.60.0100.06016.46
5.4.50.0130.06016.63
5.4.40.0100.05716.50
5.4.30.0100.06716.54
5.4.20.0170.06016.39
5.4.10.0030.07016.43
5.4.00.0170.05015.80
5.3.280.0070.05714.57
5.3.270.0070.06314.69
5.3.260.0130.05014.68
5.3.250.0200.05014.59
5.3.240.0030.06314.62
5.3.230.0170.05314.78
5.3.220.0170.04714.39
5.3.210.0200.06714.75
5.3.200.0100.06714.64
5.3.190.0030.07314.67
5.3.180.0170.06314.55
5.3.170.0270.05714.55
5.3.160.0130.07714.74
5.3.150.0030.05314.55
5.3.140.0100.05014.40
5.3.130.0200.04014.71
5.3.120.0170.05714.63
5.3.110.0200.07014.63
5.3.100.0100.05314.11
5.3.90.0200.05314.20
5.3.80.0100.06013.85
5.3.70.0130.04313.85
5.3.60.0200.04014.09
5.3.50.0100.07013.95
5.3.40.0100.04713.86
5.3.30.0170.06314.09
5.3.20.0130.05713.67
5.3.10.0070.06313.48
5.3.00.0100.07013.71
5.2.170.0100.06011.30
5.2.160.0130.05711.13
5.2.150.0200.04311.31
5.2.140.0100.06011.24
5.2.130.0070.05311.28
5.2.120.0030.05011.19
5.2.110.0030.04311.08
5.2.100.0100.03311.10
5.2.90.0070.05711.08
5.2.80.0070.04010.94
5.2.70.0030.05710.92
5.2.60.0200.05311.13
5.2.50.0030.06011.15
5.2.40.0070.04710.82
5.2.30.0100.05311.13
5.2.20.0170.04310.86
5.2.10.0030.04010.94
5.2.00.0100.04010.80
5.1.60.0030.03710.15
5.1.50.0030.03710.04
5.1.40.0100.04310.04
5.1.30.0030.03710.41
5.1.20.0070.04310.44
5.1.10.0100.04710.12
5.1.00.0170.0309.91
5.0.50.0000.0338.52
5.0.40.0030.0308.48
5.0.30.0130.0408.27
5.0.20.0070.0238.43
5.0.10.0000.0338.15
5.0.00.0070.0408.21
4.4.90.0070.0306.42
4.4.80.0000.0306.42
4.4.70.0030.0206.42
4.4.60.0070.0206.42
4.4.50.0000.0336.42
4.4.40.0000.0406.42
4.4.30.0030.0236.42
4.4.20.0030.0236.42
4.4.10.0030.0306.42
4.4.00.0000.0336.42
4.3.110.0070.0206.42
4.3.100.0070.0206.42
4.3.90.0100.0176.42
4.3.80.0100.0236.42
4.3.70.0030.0236.42
4.3.60.0030.0206.42
4.3.50.0070.0206.42
4.3.40.0100.0306.42
4.3.30.0000.0276.42
4.3.20.0030.0206.42
4.3.10.0070.0336.42
4.3.00.0070.0236.61

preferences:
143.64 ms | 1394 KiB | 7 Q