3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stxt = "По словам вице-премьера Крыма, единственными законными вооруженными формированиями на территории Крыма являются российские вооруженные силы."; $keywords = ''; $keywords = explode(',',$keywords); $other_text = "...<br> #Новости_0629"; foreach ($keywords as $value) { $other_text.= !empty($value) ? " #" . trim($value) : ''; } $other_text .= "<br> Подробнее: http://www.0629.com.ua/news/489813"; $description_text_lenght = 220 - strlen($other_text); $full_text = mb_substr($stxt, 0, $description_text_lenght) . $other_text; if(!empty($item['icon_photo'])){ $full_text .="<br> <img src='http://s.citysites.ua/section/newsIcon/upload/images/news/icon/93917261-8562-kryim_13941132274.jpg'/><br>"; } var_dump($full_text);

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.0140.00718.31
8.3.50.0150.00921.20
8.3.40.0110.00718.85
8.3.30.0110.00419.18
8.3.20.0020.00520.05
8.3.10.0070.00022.14
8.3.00.0080.00022.40
8.2.180.0140.00718.29
8.2.170.0070.01022.96
8.2.160.0040.01419.34
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.01326.16
8.2.120.0000.00819.75
8.2.110.0040.00422.05
8.2.100.0000.01119.57
8.2.90.0040.00419.30
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0090.00018.16
8.2.50.0050.00318.07
8.2.40.0050.00318.22
8.2.30.0040.00418.25
8.2.20.0040.00417.66
8.2.10.0030.00617.80
8.2.00.0040.00417.66
8.1.280.0070.00725.92
8.1.270.0060.00320.39
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0000.01023.86
8.1.230.0120.00018.99
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00617.43
8.1.180.0040.00418.61
8.1.170.0050.00318.52
8.1.160.0060.00322.05
8.1.150.0030.00618.71
8.1.140.0080.00017.42
8.1.130.0050.00217.86
8.1.120.0040.00417.46
8.1.110.0050.00317.44
8.1.100.0000.00717.52
8.1.90.0000.00817.48
8.1.80.0030.00317.40
8.1.70.0030.00317.47
8.1.60.0040.00417.66
8.1.50.0000.00817.57
8.1.40.0040.00417.52
8.1.30.0040.00417.63
8.1.20.0080.00017.73
8.1.10.0060.00317.64
8.1.00.0050.00317.49
8.0.300.0040.00418.77
8.0.290.0040.00417.30
8.0.280.0000.00718.46
8.0.270.0040.00417.23
8.0.260.0000.00816.93
8.0.250.0030.00317.05
8.0.240.0080.00016.91
8.0.230.0040.00416.96
8.0.220.0000.00716.91
8.0.210.0040.00416.96
8.0.200.0070.00017.07
8.0.190.0040.00417.01
8.0.180.0000.00716.91
8.0.170.0000.00717.04
8.0.160.0000.00716.91
8.0.150.0000.00716.89
8.0.140.0070.00016.99
8.0.130.0000.00613.41
8.0.120.0040.00416.97
8.0.110.0040.00416.93
8.0.100.0040.00416.86
8.0.90.0040.00417.02
8.0.80.0120.00317.00
8.0.70.0000.00716.91
8.0.60.0040.00416.83
8.0.50.0030.00316.88
8.0.30.0080.01016.96
8.0.20.0110.00717.43
8.0.10.0000.00717.04
8.0.00.0080.01116.87
7.4.330.0020.00215.00
7.4.320.0000.00716.55
7.4.300.0060.00016.55
7.4.290.0000.01016.56
7.4.280.0030.00316.58
7.4.270.0000.00716.67
7.4.260.0000.00716.47
7.4.250.0000.00716.50
7.4.240.0070.00016.59
7.4.230.0040.00416.66
7.4.220.0120.00616.58
7.4.210.0070.00816.62
7.4.200.0070.00016.45
7.4.190.0040.00416.60
7.4.160.0100.01016.41
7.4.150.0110.00717.40
7.4.140.0140.00917.86
7.4.130.0100.00716.50
7.4.120.0130.00416.49
7.4.110.0100.00716.56
7.4.100.0070.01116.50
7.4.90.0000.01716.50
7.4.80.0090.01219.39
7.4.70.0080.00816.39
7.4.60.0070.01016.63
7.4.50.0000.00916.30
7.4.40.0080.01122.77
7.4.30.0060.01116.47
7.4.00.0000.01415.12
7.3.330.0000.00513.27
7.3.320.0000.00613.20
7.3.310.0030.00316.19
7.3.300.0070.00016.23
7.3.290.0100.00616.32
7.3.280.0100.00616.35
7.3.270.0200.00017.40
7.3.260.0090.00916.39
7.3.250.0080.00816.56
7.3.240.0060.01216.34
7.3.230.0110.01216.39
7.3.210.0090.00616.49
7.3.200.0140.00319.39
7.3.190.0070.01016.62
7.3.180.0100.01116.29
7.3.170.0060.01016.32
7.3.160.0130.01016.34
7.3.120.0120.00315.07
7.2.330.0140.00516.76
7.2.320.0070.01116.67
7.2.310.0080.01516.71
7.2.300.0100.00716.80
7.2.290.0030.01316.67
7.2.60.0100.00716.91
7.2.00.0040.01119.54
7.1.200.0000.01315.64
7.1.100.0060.01117.93
7.1.70.0030.00617.06
7.1.60.0180.00719.82
7.1.50.0100.01317.11
7.1.00.0000.04722.42
7.0.200.0000.00816.86
7.0.140.0030.07321.92
7.0.60.0100.05020.08
7.0.50.0070.03717.93
7.0.40.0070.05319.98
7.0.30.0330.07720.30
7.0.20.0230.08320.20
7.0.10.0130.07720.16
7.0.00.0000.06320.05
5.6.280.0000.07721.11
5.6.210.0030.04020.54
5.6.200.0030.08318.13
5.6.190.0070.07320.41
5.6.180.0400.06720.48
5.6.170.0230.05020.45
5.6.160.0070.08720.40
5.6.150.0030.06318.22
5.6.140.0100.04318.10
5.6.130.0070.05018.22
5.6.120.0030.04720.98
5.6.110.0100.08021.11
5.6.100.0030.06721.11
5.6.90.0030.08320.87
5.6.80.0100.06320.40
5.6.70.3970.03720.38
5.5.350.0100.08320.35
5.5.340.0100.07318.04
5.5.330.0070.09020.12
5.5.320.0300.08020.27
5.5.310.0230.08020.13
5.5.300.0070.08017.98
5.5.290.0070.08017.96
5.5.280.0030.04020.87
5.5.270.0100.05720.84
5.5.260.0100.08020.96
5.5.250.0000.04320.66
5.5.240.0100.07020.19
5.4.450.0670.06719.45
5.4.440.0870.06019.47
5.4.430.0900.07319.54
5.4.420.1230.05319.48
5.4.410.0730.05719.01
5.4.400.1230.04718.75
5.4.390.1470.04718.73
5.4.380.0330.05318.50
5.4.370.0030.06718.68
5.4.360.0170.04718.59
5.4.350.0130.05718.54
5.4.340.0270.04018.74
5.4.320.0040.03912.46
5.4.310.0020.04712.45
5.4.300.0070.04112.46
5.4.290.0090.04212.45
5.4.280.0110.04012.35
5.4.270.0070.04612.35
5.4.260.0070.03512.35
5.4.250.0100.05718.93
5.4.240.0130.05318.76
5.4.230.0130.06718.97
5.4.220.0100.07718.88
5.4.210.0030.08718.85
5.4.200.0170.07318.72
5.4.190.0130.05318.75
5.4.180.0130.05718.71
5.4.170.0230.05318.98
5.4.160.0100.05718.71
5.4.150.0130.06018.98
5.4.140.0030.06716.29
5.4.130.0030.05716.49
5.4.120.0170.05316.49
5.4.110.0030.07016.21
5.4.100.0030.05316.39
5.4.90.0170.05716.39
5.4.80.0100.05016.38
5.4.70.0200.06316.14
5.4.60.0170.06016.22
5.4.50.0130.05316.43
5.4.40.0130.05016.47
5.4.30.0100.05016.35
5.4.20.0130.04316.33
5.4.10.0200.06316.13
5.4.00.0070.05715.66
5.3.290.0100.05012.80
5.3.280.0100.05714.60
5.3.270.0200.06314.61
5.3.260.0200.05314.47
5.3.250.0130.06314.30
5.3.240.0030.08014.38
5.3.230.0130.05314.46
5.3.220.0030.05714.27
5.3.210.0070.05714.66
5.3.200.0170.06314.61
5.3.190.0130.04714.59
5.3.180.0130.04714.26
5.3.170.0300.04014.57
5.3.160.0170.05714.57
5.3.150.0170.06714.56
5.3.140.0100.05314.39
5.3.130.0070.08014.54
5.3.120.0130.05014.54
5.3.110.0130.06314.57
5.3.100.0030.07713.95
5.3.90.0100.06714.11
5.3.80.0170.05014.02
5.3.70.0070.07014.16
5.3.60.0100.05013.86
5.3.50.0170.04314.04
5.3.40.0100.06314.04
5.3.30.0100.06013.92
5.3.20.0130.05313.68
5.3.10.0130.05313.61
5.3.00.0130.05013.79
5.2.170.0070.05710.98
5.2.160.0200.04311.06
5.2.150.0030.05011.16
5.2.140.0170.05011.15
5.2.130.0070.06011.11
5.2.120.0200.04310.86
5.2.110.0170.04711.20
5.2.100.0000.05311.11
5.2.90.0100.04010.86
5.2.80.0030.06011.11
5.2.70.0070.04010.85
5.2.60.0000.04710.98
5.2.50.0070.04311.04
5.2.40.0100.04010.88
5.2.30.0100.04710.92
5.2.20.0030.04311.05
5.2.10.0170.03710.93
5.2.00.0070.06010.63
5.1.60.0030.04310.07
5.1.50.0070.04310.23
5.1.40.0170.0339.91
5.1.30.0130.04310.50
5.1.20.0070.04310.45
5.1.10.0070.0439.99
5.1.00.0200.02010.30
5.0.50.0130.0308.46
5.0.40.0070.0238.56
5.0.30.0030.0438.25
5.0.20.0000.0308.10
5.0.10.0030.0338.36
5.0.00.0030.0438.11
4.4.90.0030.0307.51
4.4.80.0000.0237.51
4.4.70.0030.0237.51
4.4.60.0030.0277.51
4.4.50.0130.0177.51
4.4.40.0030.0377.51
4.4.30.0200.0137.51
4.4.20.0070.0207.51
4.4.10.0000.0237.51
4.4.00.0030.0307.51
4.3.110.0030.0237.51
4.3.100.0030.0307.51
4.3.90.0100.0177.51
4.3.80.0070.0407.51
4.3.70.0000.0237.51
4.3.60.0030.0307.51
4.3.50.0000.0237.51
4.3.40.0070.0277.49
4.3.30.0070.0177.49
4.3.20.0030.0237.49
4.3.10.0000.0237.49
4.3.00.0030.0207.20

preferences:
43.51 ms | 401 KiB | 5 Q