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($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.0110.05315.67
5.4.260.0060.04615.65
5.4.250.0040.04915.67
5.4.240.0100.05715.61
5.4.230.0040.05715.66
5.4.220.0070.06115.55
5.4.210.0110.05115.63
5.4.200.0070.05815.65
5.4.190.0070.04715.58
5.4.180.0100.04415.56
5.4.170.0050.05815.69
5.4.160.0070.04515.58
5.4.150.0110.04515.72
5.4.140.0070.04614.22
5.4.130.0070.04614.18
5.4.120.0100.05314.18
5.4.110.0060.05614.24
5.4.100.0090.05414.32
5.4.90.0080.04314.27
5.4.80.0090.05314.18
5.4.70.0150.04814.15
5.4.60.0070.05414.26
5.4.50.0070.05014.23
5.4.40.0090.04914.30
5.4.30.0130.05314.21
5.4.20.0120.04214.21
5.4.10.0090.04214.22
5.4.00.0110.04413.64
5.3.280.0040.05313.74
5.3.270.0150.04713.65
5.3.260.0120.04313.70
5.3.250.0100.05413.65
5.3.240.0110.04313.66
5.3.230.0080.04713.65
5.3.220.0080.05413.62
5.3.210.0110.05613.58
5.3.200.0060.05713.66
5.3.190.0150.04413.70
5.3.180.0080.05613.64
5.3.170.0020.05313.70
5.3.160.0080.04413.61
5.3.150.0100.05013.68
5.3.140.0110.04413.57
5.3.130.0060.05713.68
5.3.120.0080.05913.52
5.3.110.0070.05613.61
5.3.100.0040.04713.12
5.3.90.0110.04013.16
5.3.80.0060.04513.06
5.3.70.0110.04313.05
5.3.60.0050.05113.03
5.3.50.0050.05413.07
5.3.40.0080.04713.03
5.3.30.0050.04312.93
5.3.20.0060.04712.75
5.3.10.0140.04012.75
5.3.00.0120.05012.67
5.2.170.0110.04210.16
5.2.160.0080.04210.14
5.2.150.0080.04610.27
5.2.140.0060.04210.16
5.2.130.0060.04410.11
5.2.120.0080.04010.16
5.2.110.0080.03610.11
5.2.100.0070.03110.07
5.2.90.0100.03610.16
5.2.80.0090.04610.10
5.2.70.0070.03510.17
5.2.60.0100.04210.11
5.2.50.0050.03910.02
5.2.40.0090.03310.00
5.2.30.0090.04510.04
5.2.20.0020.04310.06
5.2.10.0080.0329.84
5.2.00.0150.0379.73
5.1.60.0070.0319.03
5.1.50.0050.0299.02
5.1.40.0090.0299.10
5.1.30.0070.0379.44
5.1.20.0060.0369.38
5.1.10.0050.0359.13
5.1.00.0050.0319.10
5.0.50.0030.0277.58
5.0.40.0050.0297.35
5.0.30.0050.0407.27
5.0.20.0040.0227.21
5.0.10.0120.0247.27
5.0.00.0080.0417.10
4.4.90.0050.0255.79
4.4.80.0030.0215.77
4.4.70.0060.0195.77
4.4.60.0070.0165.77
4.4.50.0010.0255.78
4.4.40.0040.0335.75
4.4.30.0050.0265.78
4.4.20.0020.0205.82
4.4.10.0060.0195.82
4.4.00.0070.0295.78
4.3.110.0030.0245.73
4.3.100.0070.0205.73
4.3.90.0060.0205.71
4.3.80.0080.0265.69
4.3.70.0040.0205.71
4.3.60.0050.0225.71
4.3.50.0050.0255.71
4.3.40.0040.0345.66
4.3.30.0020.0225.04
4.3.20.0010.0235.03
4.3.10.0030.0245.01
4.3.00.0200.0136.61

preferences:
141.91 ms | 1394 KiB | 7 Q