3v4l.org

run code in 300+ PHP versions simultaneously
<?php $site_a['text'] = "täglich"; preg_match('/<title>(.*?)<\/title>/is', $site_a['text'], $title); if(isset($title[1])) { $title = $title[1]; $title = preg_replace('/[^a-z0-9\.-üßäö]+/', ' ', $title); }else $title = ""; $site = preg_replace('#<script(.*?)>(.*?)</script>#is', '', $site_a['text']); $site = preg_replace('#<style(.*?)>(.*?)</style>#is', '', $site); $site = preg_replace('#<a(.*?)>(.*?)</a>#is', '', $site); $site = preg_replace('#<title(.*?)>(.*?)</title>#is', '', $site); $site = strip_tags($site); $site = preg_replace('/[\?]+\s/', '. ', $site); $site = preg_replace('/[\!]+\s/', '. ', $site); $site = preg_replace('/\s\s+/', ' ', $site); $site = strtolower ( $site ); //$site = html_entity_decode($site, ENT_QUOTES, "UTF-8"); $site = html_entity_decode($site, ENT_QUOTES, "ISO-8859-1"); $site = preg_replace('/[^a-z0-9\.\?-üßäö\s]+/', ' ', $site); $search = array("[", "]", "{", "}", ":"); $text = str_replace($search, "", $site); $text = utf8_encode ($text); $site = explode(". ", $text); if(is_array($site)) foreach ($site AS $key => $satz){ $satz = preg_replace('/[^a-z0-9-üßäö]+\s/', ' ', $satz); $satz = preg_replace('/[^a-z0-9-üßäö\s]+/', '', $satz); $site[$key] = explode(" ", $satz); } $paragraph = array(); if(is_array($site)) foreach ($site AS $key => $satz){ $paragraph[] = array("sentence" => $satz); } $json = array("titel" => $title, "id" => "id", "link" => "link", "context" => array(array("paragraph" => $paragraph)) ); $json = json_encode($json); print_r($json);

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.0090.00618.45
8.3.50.0100.00917.82
8.3.40.0170.00319.11
8.3.30.0090.00618.92
8.3.20.0040.00418.88
8.3.10.0050.00319.03
8.3.00.0100.00019.50
8.2.180.0090.00616.88
8.2.170.0110.00422.96
8.2.160.0130.00319.16
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0080.00021.00
8.2.110.0040.00422.20
8.2.100.0060.00618.28
8.2.90.0040.00420.98
8.2.80.0000.00819.52
8.2.70.0030.00618.13
8.2.60.0040.00418.17
8.2.50.0080.00018.07
8.2.40.0000.00818.28
8.2.30.0000.00718.07
8.2.20.0040.00417.84
8.2.10.0030.00517.90
8.2.00.0050.00317.98
8.1.280.0070.00725.92
8.1.270.0070.00323.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0040.00423.91
8.1.230.0060.00622.68
8.1.220.0060.00318.77
8.1.210.0030.00619.18
8.1.200.0100.00017.50
8.1.190.0000.00817.66
8.1.180.0090.00318.10
8.1.170.0000.00818.96
8.1.160.0000.00718.86
8.1.150.0000.00818.96
8.1.140.0070.00017.67
8.1.130.0000.00717.98
8.1.120.0000.00717.70
8.1.110.0040.00417.68
8.1.100.0020.00517.67
8.1.90.0000.00717.65
8.1.80.0060.00317.73
8.1.70.0030.00617.58
8.1.60.0090.00017.83
8.1.50.0000.00817.73
8.1.40.0050.00317.72
8.1.30.0030.00617.90
8.1.20.0000.00917.83
8.1.10.0040.00417.82
8.1.00.0000.00817.70
8.0.300.0050.00320.02
8.0.290.0050.00316.88
8.0.280.0070.00018.46
8.0.270.0030.00317.36
8.0.260.0040.00417.04
8.0.250.0000.00817.21
8.0.240.0030.00317.08
8.0.230.0040.00417.09
8.0.220.0030.00317.09
8.0.210.0000.00717.07
8.0.200.0040.00417.16
8.0.190.0050.00317.08
8.0.180.0070.00417.01
8.0.170.0000.01016.96
8.0.160.0040.00417.03
8.0.150.0080.00017.05
8.0.140.0040.00416.96
8.0.130.0000.00613.58
8.0.120.0030.00617.03
8.0.110.0030.00517.11
8.0.100.0070.00016.93
8.0.90.0040.00417.22
8.0.80.0100.00617.14
8.0.70.0030.00516.94
8.0.60.0030.00617.14
8.0.50.0030.00617.17
8.0.30.0150.00617.52
8.0.20.0110.02417.13
8.0.10.0040.00417.18
8.0.00.0110.00717.18
7.4.330.0000.00513.34
7.4.320.0030.00316.88
7.4.300.0030.00316.93
7.4.290.0000.00716.87
7.4.280.0040.00416.84
7.4.270.0030.00316.80
7.4.260.0050.00013.58
7.4.250.0060.00316.77
7.4.240.0030.00316.82
7.4.230.0030.00316.76
7.4.220.0070.01116.73
7.4.210.0100.00716.79
7.4.200.0030.00516.69
7.4.190.0000.00717.03
7.4.160.0160.00016.96
7.4.150.0120.00616.79
7.4.140.0000.01816.60
7.4.130.0120.00916.92
7.4.120.0100.00716.72
7.4.110.0090.00916.86
7.4.100.0090.00916.86
7.4.90.0120.00616.94
7.4.80.0030.01519.39
7.4.70.0130.00716.83
7.4.60.0110.00616.77
7.4.50.0020.00216.79
7.4.40.0030.01316.49
7.4.30.0080.01116.92
7.4.00.0090.00615.23
7.3.330.0000.00613.35
7.3.320.0040.00413.29
7.3.310.0050.00316.45
7.3.300.0000.00716.51
7.3.290.0100.00816.49
7.3.280.0030.01216.56
7.3.270.0030.01416.47
7.3.260.0070.01416.59
7.3.250.0040.01416.66
7.3.240.0030.01516.85
7.3.230.0070.01116.62
7.3.210.0140.00416.83
7.3.200.0070.01316.98
7.3.190.0110.01016.50
7.3.180.0000.01616.62
7.3.170.0090.01216.52
7.3.160.0070.01016.75
7.3.120.0080.00815.22
7.3.10.0030.01016.84
7.3.00.0040.01116.74
7.2.330.0070.01017.00
7.2.320.0100.01416.78
7.2.310.0090.01617.05
7.2.300.0100.00716.85
7.2.290.0000.02116.79
7.2.130.0030.00717.05
7.2.120.0070.01017.24
7.2.110.0120.00317.17
7.2.100.0030.00617.18
7.2.90.0090.00617.07
7.2.80.0000.01417.26
7.2.70.0070.00317.13
7.2.60.0050.01117.10
7.2.50.0060.01017.05
7.2.40.0030.00717.21
7.2.30.0120.00317.25
7.2.20.0100.00717.11
7.2.10.0100.00617.18
7.2.00.0060.00518.54
7.1.250.0090.00616.00
7.1.200.0060.00915.99
7.1.100.0030.00618.57
7.1.70.0030.00617.30
7.1.60.0090.01619.30
7.1.50.0120.00916.93
7.1.00.0000.06722.32
7.0.200.0070.01416.91
7.0.140.0030.07321.93
7.0.120.0030.06022.15
7.0.90.0530.08720.04
7.0.80.0630.08720.16
7.0.70.0700.06319.95
7.0.60.0570.07320.11
7.0.50.0570.07020.36
7.0.40.0000.08720.05
7.0.30.0170.07320.08
7.0.20.0070.07020.11
7.0.10.0070.08020.14
7.0.00.0070.07320.11
5.6.280.0070.07020.82
5.6.240.0130.07020.55
5.6.230.0100.07720.73
5.6.220.0100.08020.63
5.6.210.0170.07720.66
5.6.200.0130.07321.13
5.6.190.0030.04321.03
5.6.180.0130.07721.11
5.6.170.0170.04021.05
5.6.160.0230.06321.03
5.6.150.0130.07721.03
5.6.140.0200.05321.05
5.6.130.0130.08021.06
5.6.120.0070.04021.04
5.6.110.0070.08021.04
5.6.100.0030.05021.08
5.6.90.0100.08321.12
5.6.80.0070.08320.42
5.6.70.0030.04320.34
5.6.60.0070.07720.37
5.6.50.0070.05320.50
5.6.40.0170.07020.43
5.6.30.0170.06720.32
5.6.20.0000.07320.32
5.6.10.0100.04720.32
5.6.00.0030.04320.43
5.5.380.0030.08020.36
5.5.370.0070.07020.58
5.5.360.0070.08320.36
5.5.350.0070.08720.43
5.5.340.0030.08720.82
5.5.330.0070.09020.89
5.5.320.0030.08020.90
5.5.310.0130.04320.81
5.5.300.0130.07720.81
5.5.290.0030.09020.85
5.5.280.0000.07720.90
5.5.270.0000.09020.77
5.5.260.0000.06320.80
5.5.250.0030.08720.70
5.5.240.0100.04320.17
5.5.230.0000.08320.28
5.5.220.0070.05720.12
5.5.210.0100.07720.28
5.5.200.0100.08020.30
5.5.190.0030.08320.25
5.5.180.0030.08320.14
5.5.160.0130.05320.15
5.5.150.0030.05720.12
5.5.140.0000.07020.25
5.5.130.0100.07020.25
5.5.120.0130.06720.13
5.5.110.0000.04720.16
5.5.100.0100.04720.19
5.5.90.0100.06720.02
5.5.80.0130.05720.16
5.5.70.0130.07020.17
5.5.60.0030.07320.07
5.5.50.0070.08720.09
5.5.40.0070.04020.09
5.5.30.0170.04319.91
5.5.20.0030.04020.06
5.5.10.0030.04020.13
5.5.00.0030.03719.98
5.4.450.0030.08019.43
5.4.440.0000.07319.30
5.4.430.0000.05319.55
5.4.420.0100.07319.25
5.4.410.0070.07319.24
5.4.400.0070.07318.98
5.4.390.0130.07319.13
5.4.380.0070.05718.79
5.4.370.0070.07018.98
5.4.360.0100.07718.98
5.4.350.0170.06718.81
5.4.340.0000.08019.03
5.4.320.0170.06719.03
5.4.310.0030.07718.96
5.4.300.0100.04319.07
5.4.290.0000.05019.12
5.4.280.0070.07719.10
5.4.270.0100.07319.02
5.4.260.0100.07318.80
5.4.250.0130.06318.97
5.4.240.0100.07018.98
5.4.230.0030.08019.12
5.4.220.0030.04718.93
5.4.210.0100.06319.14
5.4.200.0130.05019.04
5.4.190.0170.06018.80
5.4.180.0000.04019.13
5.4.170.0070.06719.13
5.4.160.0000.04019.09
5.4.150.0000.04318.94
5.4.140.0000.04016.29
5.4.130.0030.04316.29
5.4.120.0100.02316.35
5.4.110.0030.04016.36
5.4.100.0070.03316.43
5.4.90.0100.04316.29
5.4.80.0000.04316.45
5.4.70.0000.04016.41
5.4.60.0000.03716.41
5.4.50.0030.05316.38
5.4.40.0030.04016.24
5.4.30.0000.04016.31
5.4.20.0070.03016.39
5.4.10.0100.03016.29
5.4.00.0030.03715.76
5.3.290.0100.04714.66
5.3.280.0100.06314.62
5.3.270.0130.03714.61
5.3.260.0030.03714.45
5.3.250.0000.05014.58
5.3.240.0030.04314.62
5.3.230.0070.03014.52
5.3.220.0100.03014.54
5.3.210.0070.03314.40
5.3.200.0000.04014.45
5.3.190.0070.03314.44
5.3.180.0070.07014.57
5.3.170.0100.05714.53
5.3.160.0000.04014.44
5.3.150.0100.02714.53
5.3.140.0100.05714.44
5.3.130.0000.07714.38
5.3.120.0000.04014.40
5.3.110.0000.04014.42
5.3.100.0030.03713.90
5.3.90.0030.03013.86
5.3.80.0070.05013.90
5.3.70.0000.05014.01
5.3.60.0000.04714.03
5.3.50.0100.03013.92
5.3.40.0030.03713.91
5.3.30.0000.03713.83
5.3.20.0000.05013.57
5.3.10.0070.03013.61
5.3.00.0000.03713.64
5.2.170.0000.03011.16
5.2.160.0000.03011.23
5.2.150.0070.02711.02
5.2.140.0030.03011.23
5.2.130.0030.02711.04
5.2.120.0000.03711.11
5.2.110.0000.03011.16
5.2.100.0030.04310.98
5.2.90.0000.03011.08
5.2.80.0030.03011.07
5.2.70.0000.03011.06
5.2.60.0000.03011.11
5.2.50.0000.03011.11
5.2.40.0070.05711.07
5.2.30.0000.05311.00
5.2.20.0070.02310.82
5.2.10.0030.03010.82
5.2.00.0030.02710.68
5.1.60.0030.02310.01
5.1.50.0000.02710.04
5.1.40.0000.02710.00
5.1.30.0000.03010.36
5.1.20.0000.02710.27
5.1.10.0000.0279.96
5.1.00.0030.02310.15
5.0.50.0030.0278.42
5.0.40.0030.0178.50
5.0.30.0000.0308.28
5.0.20.0030.0178.21
5.0.10.0000.0478.28
5.0.00.0030.0578.29
4.4.90.0000.0307.27
4.4.80.0000.0207.27
4.4.70.0000.0177.27
4.4.60.0030.0137.27
4.4.50.0030.0107.27
4.4.40.0000.0237.27
4.4.30.0030.0137.27
4.4.20.0030.0107.27
4.4.10.0000.0177.27
4.4.00.0000.0377.27
4.3.110.0030.0137.27
4.3.100.0000.0277.27
4.3.90.0030.0177.27
4.3.80.0100.0477.27
4.3.70.0000.0337.27
4.3.60.0000.0237.27
4.3.50.0000.0207.27
4.3.40.0030.0477.27
4.3.30.0030.0337.27
4.3.20.0000.0407.27
4.3.10.0000.0377.27
4.3.00.0030.0307.27

preferences:
34.39 ms | 401 KiB | 5 Q