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)
8.3.60.0120.00918.20
8.3.50.0050.01221.83
8.3.40.0100.01018.98
8.3.30.0000.01518.98
8.3.20.0040.00420.33
8.3.10.0080.00022.09
8.3.00.0040.00422.39
8.2.180.0100.01016.63
8.2.170.0140.00422.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0100.00726.16
8.2.120.0050.00319.38
8.2.110.0100.00020.54
8.2.100.0080.00419.63
8.2.90.0060.00319.22
8.2.80.0080.00018.04
8.2.70.0040.00417.63
8.2.60.0040.00818.03
8.2.50.0040.00418.07
8.2.40.0040.00418.21
8.2.30.0000.01018.02
8.2.20.0030.00617.88
8.2.10.0040.00419.57
8.2.00.0050.00317.82
8.1.280.0120.00325.92
8.1.270.0060.00322.05
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.72
8.1.230.0070.00418.95
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00717.48
8.1.190.0040.00417.63
8.1.180.0050.00318.71
8.1.170.0050.00318.43
8.1.160.0030.00521.98
8.1.150.0040.00418.65
8.1.140.0000.00717.38
8.1.130.0000.00717.84
8.1.120.0040.00417.46
8.1.110.0040.00417.47
8.1.100.0000.00717.44
8.1.90.0050.00217.32
8.1.80.0040.00417.49
8.1.70.0030.00317.44
8.1.60.0040.00717.58
8.1.50.0040.00417.52
8.1.40.0080.00017.45
8.1.30.0040.00417.57
8.1.20.0000.00917.66
8.1.10.0040.00417.49
8.1.00.0000.00717.54
8.0.300.0070.00018.77
8.0.290.0070.00017.18
8.0.280.0000.00718.41
8.0.270.0040.00417.32
8.0.260.0070.00016.94
8.0.250.0000.00717.04
8.0.240.0030.00316.96
8.0.230.0000.00816.99
8.0.220.0000.00716.93
8.0.210.0070.00017.00
8.0.200.0000.00616.93
8.0.190.0040.00417.01
8.0.180.0060.00316.95
8.0.170.0040.00416.87
8.0.160.0000.00716.91
8.0.150.0050.00316.86
8.0.140.0000.00816.91
8.0.130.0000.00513.38
8.0.120.0070.00016.96
8.0.110.0040.00416.87
8.0.100.0030.00616.83
8.0.90.0040.00416.84
8.0.80.0040.01217.02
8.0.70.0000.00817.07
8.0.60.0040.00416.96
8.0.50.0040.00416.90
8.0.30.0110.00817.09
8.0.20.0120.00717.43
8.0.10.0000.00717.09
8.0.00.0130.01216.87
7.4.330.0050.00015.12
7.4.320.0020.00516.53
7.4.300.0030.00316.61
7.4.290.0030.00316.63
7.4.280.0030.00316.59
7.4.270.0020.00516.46
7.4.260.0040.00416.58
7.4.250.0050.00216.57
7.4.240.0040.00416.54
7.4.230.0000.00716.69
7.4.220.0060.01916.40
7.4.210.0070.00716.49
7.4.200.0000.00716.63
7.4.190.0040.00216.66
7.4.160.0090.00616.42
7.4.150.0100.01017.40
7.4.140.0150.00317.86
7.4.130.0090.00916.55
7.4.120.0090.00816.43
7.4.110.0130.00716.41
7.4.100.0140.00716.45
7.4.90.0030.01616.52
7.4.80.0090.00919.39
7.4.70.0070.00916.50
7.4.60.0100.00716.47
7.4.50.0040.00016.32
7.4.40.0110.00622.77
7.4.30.0070.01016.59
7.4.00.0060.00915.20
7.3.330.0000.00613.41
7.3.320.0000.00513.43
7.3.310.0030.00316.46
7.3.300.0030.00316.39
7.3.290.0000.01516.44
7.3.280.0050.01016.41
7.3.270.0090.00917.40
7.3.260.0140.00316.46
7.3.250.0110.01016.57
7.3.240.0060.00916.63
7.3.230.0070.01016.39
7.3.210.0160.00616.48
7.3.200.0130.00719.39
7.3.190.0100.01316.34
7.3.180.0060.01016.45
7.3.170.0130.00316.45
7.3.160.0110.00516.38
7.3.120.0070.01114.91
7.2.330.0100.01016.50
7.2.320.0140.00316.41
7.2.310.0030.01516.84
7.2.300.0170.00316.54
7.2.290.0100.00716.50
7.2.00.0040.00919.41
7.1.100.0060.00918.19
7.1.70.0040.01217.21
7.1.60.0100.01419.82
7.1.50.0100.01017.00
7.1.00.0030.07722.44
7.0.200.0040.00416.80
7.0.140.0070.06722.08
7.0.60.0270.06019.87
7.0.50.0200.06717.88
7.0.40.0130.08320.18
7.0.30.0300.07320.22
7.0.20.0270.04320.33
7.0.10.0270.06020.10
7.0.00.0100.08320.12
5.6.210.0130.04320.61
5.6.200.0070.04718.18
5.6.190.0070.04320.58
5.6.180.3570.04320.49
5.6.170.0230.06320.60
5.6.160.0030.09020.54
5.6.150.0030.08718.19
5.6.140.0030.04718.23
5.6.130.0170.07018.16
5.6.120.0000.09321.12
5.6.110.0170.07020.96
5.6.100.0030.07721.06
5.6.90.0000.08021.10
5.6.80.0130.03020.48
5.6.70.0300.05320.40
5.5.350.0070.08020.43
5.5.340.0200.04317.95
5.5.330.0100.03720.46
5.5.320.0170.06020.35
5.5.310.0300.07720.36
5.5.300.0000.04318.04
5.5.290.0130.04018.00
5.5.280.0100.06320.97
5.5.270.0070.09320.73
5.5.260.0100.06320.65
5.5.250.0100.08320.45
5.5.240.0170.07720.28
5.4.450.0400.05319.62
5.4.440.0730.05019.48
5.4.430.0130.05019.53
5.4.420.0070.06019.54
5.4.410.0200.04319.12
5.4.400.0870.00018.48
5.4.390.0770.00018.78
5.4.380.0200.05718.58
5.4.370.0200.06318.77
5.4.360.0230.04718.48
5.4.350.0130.05718.72
5.4.340.0200.04718.76
5.4.320.0050.03912.51
5.4.310.0040.03912.50
5.4.300.0060.04312.51
5.4.290.0060.04012.50
5.4.280.0080.03912.40
5.4.270.0170.06018.63
5.4.260.0100.07318.93
5.4.250.0100.06018.74
5.4.240.0070.07318.71
5.4.230.0170.04318.77
5.4.220.0170.05018.81
5.4.210.0170.06018.92
5.4.200.0030.06018.89
5.4.190.0130.05018.90
5.4.180.0200.05018.98
5.4.170.0130.06018.96
5.4.160.0000.05718.96
5.4.150.0130.05018.92
5.4.140.0000.05716.38
5.4.130.0130.07316.57
5.4.120.0100.05016.30
5.4.110.0070.06016.59
5.4.100.0030.06716.47
5.4.90.0100.05016.39
5.4.80.0130.04316.48
5.4.70.0070.06716.50
5.4.60.0170.06016.45
5.4.50.0130.06716.28
5.4.40.0070.04716.49
5.4.30.0100.05716.59
5.4.20.0070.05316.45
5.4.10.0130.04716.45
5.4.00.0070.06716.02
5.3.290.0070.04212.80
5.3.280.0130.04714.68
5.3.270.0130.07014.69
5.3.260.0130.04714.70
5.3.250.0070.05314.78
5.3.240.0130.07014.71
5.3.230.0230.04314.68
5.3.220.0130.05014.76
5.3.210.0070.07014.55
5.3.200.0170.06014.75
5.3.190.0170.04314.75
5.3.180.0030.05314.78
5.3.170.0100.07014.74
5.3.160.0100.06714.79
5.3.150.0100.05014.63
5.3.140.0030.05714.54
5.3.130.0100.07014.52
5.3.120.0030.05314.45
5.3.110.0170.06014.71
5.3.100.0030.06014.13
5.3.90.0070.05014.16
5.3.80.0200.04713.85
5.3.70.0070.05014.11
5.3.60.0200.06014.07
5.3.50.0070.06014.17
5.3.40.0030.07313.94
5.3.30.0100.05713.90
5.3.20.0130.06713.70
5.3.10.0170.05313.83
5.3.00.0170.05013.66
5.2.170.0000.04711.08
5.2.160.0030.04311.05
5.2.150.0130.04311.16
5.2.140.0100.05011.14
5.2.130.0100.04711.00
5.2.120.0070.04011.02
5.2.110.0030.04011.25
5.2.100.0130.04710.99
5.2.90.0100.05711.12
5.2.80.0100.05311.00
5.2.70.0100.06011.10
5.2.60.0170.04010.97
5.2.50.0030.06010.92
5.2.40.0030.04011.00
5.2.30.0030.04311.08
5.2.20.0070.04010.98
5.2.10.0070.04310.70
5.2.00.0030.06310.80
5.1.60.0030.03710.06
5.1.50.0070.0339.77
5.1.40.0100.0379.91
5.1.30.0070.05010.39
5.1.20.0170.03710.24
5.1.10.0130.03710.00
5.1.00.0070.0379.84
5.0.50.0130.0278.59
5.0.40.0070.0408.34
5.0.30.0030.0538.46
5.0.20.0000.0308.38
5.0.10.0000.0408.21
5.0.00.0000.0438.25
4.4.90.0030.0206.90
4.4.80.0030.0236.90
4.4.70.0030.0276.90
4.4.60.0030.0336.90
4.4.50.0070.0236.90
4.4.40.0000.0376.90
4.4.30.0030.0206.90
4.4.20.0070.0276.90
4.4.10.0030.0236.85
4.4.00.0030.0436.85
4.3.110.0000.0276.85
4.3.100.0000.0336.85
4.3.90.0000.0236.85
4.3.80.0000.0436.85
4.3.70.0000.0276.85
4.3.60.0030.0236.85
4.3.50.0070.0276.85
4.3.40.0130.0276.85
4.3.30.0070.0206.85
4.3.20.0070.0276.85
4.3.10.0030.0206.85
4.3.00.0070.0236.61

preferences:
40.58 ms | 401 KiB | 5 Q