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.0130.06718.66
5.4.260.0170.06718.77
5.4.250.0170.07318.75
5.4.240.0130.05018.95
5.4.230.0100.07719.00
5.4.220.0200.06318.75
5.4.210.0100.06718.96
5.4.200.0200.05318.75
5.4.190.0070.05318.99
5.4.180.0170.05018.90
5.4.170.0130.07018.80
5.4.160.0170.08318.98
5.4.150.0130.07019.00
5.4.140.0100.05716.61
5.4.130.0130.05016.34
5.4.120.0030.07716.54
5.4.110.0130.06716.66
5.4.100.0230.05316.42
5.4.90.0070.06716.50
5.4.80.0200.03716.51
5.4.70.0170.06016.40
5.4.60.0070.06316.34
5.4.50.0100.05316.60
5.4.40.0000.05316.52
5.4.30.0170.05716.34
5.4.20.0030.05316.46
5.4.10.0100.07016.59
5.4.00.0100.05716.04
5.3.280.0070.07314.56
5.3.270.0070.07314.59
5.3.260.0130.05314.74
5.3.250.0030.05714.50
5.3.240.0200.05014.62
5.3.230.0170.06314.68
5.3.220.0000.06314.75
5.3.210.0070.05714.59
5.3.200.0200.04014.40
5.3.190.0130.05314.65
5.3.180.0170.07014.39
5.3.170.0170.04314.46
5.3.160.0200.04014.41
5.3.150.0030.05714.64
5.3.140.0100.05014.73
5.3.130.0000.08014.61
5.3.120.0130.05314.63
5.3.110.0130.06714.52
5.3.100.0030.05314.00
5.3.90.0170.05013.92
5.3.80.0100.06314.09
5.3.70.0030.05314.11
5.3.60.0100.06314.06
5.3.50.0130.05314.13
5.3.40.0100.04714.04
5.3.30.0170.06713.91
5.3.20.0030.05713.85
5.3.10.0030.05713.55
5.3.00.0100.04713.71
5.2.170.0070.06011.15
5.2.160.0100.05711.23
5.2.150.0200.04711.23
5.2.140.0100.04311.09
5.2.130.0170.05711.26
5.2.120.0100.05311.12
5.2.110.0000.06011.32
5.2.100.0100.05311.07
5.2.90.0100.03311.06
5.2.80.0100.05011.04
5.2.70.0030.04711.18
5.2.60.0230.04011.04
5.2.50.0030.06710.97
5.2.40.0100.05310.98
5.2.30.0000.04711.06
5.2.20.0070.05011.05
5.2.10.0200.04310.92
5.2.00.0000.04710.80
5.1.60.0070.0409.97
5.1.50.0100.03010.06
5.1.40.0030.03710.08
5.1.30.0100.03310.30
5.1.20.0070.05010.45
5.1.10.0130.03710.16
5.1.00.0000.04310.13
5.0.50.0130.0278.64
5.0.40.0000.0338.40
5.0.30.0030.0478.38
5.0.20.0070.0338.24
5.0.10.0000.0378.32
5.0.00.0030.0478.08
4.4.90.0070.0307.44
4.4.80.0000.0307.44
4.4.70.0000.0307.44
4.4.60.0030.0207.44
4.4.50.0100.0207.44
4.4.40.0000.0437.44
4.4.30.0000.0277.44
4.4.20.0030.0237.44
4.4.10.0000.0237.44
4.4.00.0030.0437.44
4.3.110.0070.0277.44
4.3.100.0000.0337.44
4.3.90.0070.0207.44
4.3.80.0000.0337.44
4.3.70.0100.0107.44
4.3.60.0070.0277.44
4.3.50.0030.0337.44
4.3.40.0100.0337.44
4.3.30.0030.0237.44
4.3.20.0030.0237.44
4.3.10.0000.0307.44
4.3.00.0130.0176.61

preferences:
137.86 ms | 1394 KiB | 7 Q