3v4l.org

run code in 300+ PHP versions simultaneously
<?php $site_a['text'] = " wort 1 t&auml;glich wort 2"; 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"); print_r($site); exit; $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.0140.00718.43
8.3.50.0070.01122.05
8.3.40.0120.00619.31
8.3.30.0080.00818.92
8.3.20.0000.00819.03
8.3.10.0040.00421.05
8.3.00.0030.00521.82
8.2.180.0140.00418.54
8.2.170.0070.01122.96
8.2.160.0140.00720.64
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00819.89
8.2.110.0060.00320.50
8.2.100.0060.00618.28
8.2.90.0030.00619.22
8.2.80.0000.00818.05
8.2.70.0060.00317.88
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0050.00318.22
8.2.30.0050.00321.23
8.2.20.0000.00817.92
8.2.10.0080.00018.02
8.2.00.0040.00417.97
8.1.280.0070.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0100.00022.59
8.1.230.0110.00021.01
8.1.220.0000.00918.77
8.1.210.0040.00419.07
8.1.200.0000.00917.73
8.1.190.0080.00017.41
8.1.180.0040.00418.10
8.1.170.0000.00818.90
8.1.160.0000.00719.02
8.1.150.0000.00718.70
8.1.140.0050.00317.52
8.1.130.0000.00717.85
8.1.120.0000.00817.63
8.1.110.0040.00417.59
8.1.100.0040.00417.53
8.1.90.0000.00717.63
8.1.80.0030.00517.57
8.1.70.0000.00717.61
8.1.60.0040.00417.74
8.1.50.0030.00617.69
8.1.40.0040.00417.77
8.1.30.0030.00617.82
8.1.20.0030.00517.70
8.1.10.0030.00617.75
8.1.00.0030.00617.75
8.0.300.0040.00419.93
8.0.290.0050.00217.18
8.0.280.0000.00718.60
8.0.270.0040.00417.29
8.0.260.0030.00316.98
8.0.250.0040.00417.25
8.0.240.0000.01117.05
8.0.230.0040.00417.18
8.0.220.0000.00817.17
8.0.210.0000.00717.14
8.0.200.0000.00717.14
8.0.190.0040.00417.17
8.0.180.0030.00517.11
8.0.170.0040.00417.10
8.0.160.0000.00917.14
8.0.150.0000.00717.03
8.0.140.0050.00317.02
8.0.130.0030.00313.55
8.0.120.0080.00017.09
8.0.110.0050.00317.11
8.0.100.0030.00517.12
8.0.90.0050.00216.99
8.0.80.0120.00317.09
8.0.70.0070.00016.98
8.0.60.0000.00817.17
8.0.50.0000.00716.94
8.0.30.0080.01117.38
8.0.20.0120.00617.40
8.0.10.0000.00817.29
8.0.00.0120.00817.02
7.4.330.0030.00314.81
7.4.320.0030.00316.64
7.4.300.0030.00316.77
7.4.290.0000.00816.70
7.4.280.0030.00516.73
7.4.270.0070.00016.73
7.4.260.0000.00713.60
7.4.250.0000.00816.76
7.4.240.0000.00716.73
7.4.230.0030.00316.71
7.4.220.0200.00616.70
7.4.210.0090.00816.77
7.4.200.0020.00516.75
7.4.190.0040.00316.89
7.4.160.0150.00316.80
7.4.150.0150.00317.40
7.4.140.0110.00717.86
7.4.130.0100.00716.74
7.4.120.0090.00816.66
7.4.110.0060.01216.66
7.4.100.0110.01416.64
7.4.90.0070.01016.84
7.4.80.0070.01019.39
7.4.70.0110.01116.84
7.4.60.0040.01416.75
7.4.50.0030.00616.69
7.4.40.0070.00722.52
7.4.30.0160.00616.69
7.4.00.0060.01015.19
7.3.330.0000.00513.38
7.3.320.0030.00313.35
7.3.310.0000.00916.36
7.3.300.0030.00316.46
7.3.290.0150.00616.55
7.3.280.0080.01116.54
7.3.270.0120.00617.40
7.3.260.0080.01118.24
7.3.250.0110.00816.51
7.3.240.0030.01316.88
7.3.230.0100.00716.54
7.3.210.0130.00416.82
7.3.200.0030.01319.39
7.3.190.0100.01316.88
7.3.180.0160.00616.66
7.3.170.0120.01016.57
7.3.160.0040.01116.86
7.3.120.0030.01314.97
7.2.330.0130.00416.88
7.2.320.0080.01216.87
7.2.310.0160.00316.65
7.2.300.0040.01916.89
7.2.290.0100.01016.82
7.2.00.0100.00319.61
7.1.100.0060.00618.17
7.1.70.0060.00317.07
7.1.60.0110.00017.48
7.1.50.0100.01016.88
7.1.00.0000.06322.44
7.0.200.0060.00917.05
7.0.140.0030.07022.23
7.0.60.0030.08721.83
7.0.50.0070.07722.13
7.0.40.0130.07019.95
7.0.30.0100.06720.06
7.0.20.0070.08720.04
7.0.10.0000.08020.07
7.0.00.0100.07720.05
5.6.280.0000.07720.92
5.6.210.0000.04320.64
5.6.200.0130.07321.11
5.6.190.0030.08021.17
5.6.180.0030.04321.00
5.6.170.0070.07721.02
5.6.160.0000.08021.00
5.6.150.0070.08021.11
5.6.140.0070.08321.08
5.6.130.0030.06021.01
5.6.120.0030.08321.14
5.6.110.0100.08020.98
5.6.100.0030.08020.99
5.6.90.0030.07320.96
5.6.80.0030.07720.37
5.6.70.0100.06720.29
5.6.60.0100.07320.36
5.6.50.0000.08020.34
5.6.40.0100.07020.41
5.6.30.0000.05020.27
5.6.20.0100.06720.27
5.6.10.0070.07720.38
5.6.00.0030.07720.44
5.5.350.0030.07320.44
5.5.340.0070.08020.82
5.5.330.0070.07020.89
5.5.320.0000.07020.89
5.5.310.0030.06020.70
5.5.300.0070.07720.89
5.5.290.0130.08020.71
5.5.280.0000.09020.81
5.5.270.0100.07720.66
5.5.260.0100.06720.97
5.5.250.0070.08020.63
5.5.240.0100.07020.25
5.5.230.0030.07720.27
5.5.220.0000.06720.36
5.5.210.0000.08320.29
5.5.200.0070.05020.18
5.5.190.0030.07320.21
5.5.180.0030.08020.25
5.5.160.0030.08020.25
5.5.150.0100.07320.13
5.5.140.0030.05020.21
5.5.130.0000.06020.34
5.5.120.0070.08020.25
5.5.110.0070.07320.09
5.5.100.0000.07020.05
5.5.90.0070.07020.14
5.5.80.0030.07320.12
5.5.70.0100.06720.11
5.5.60.0130.06720.09
5.5.50.0070.06719.90
5.5.40.0100.06720.05
5.5.30.0070.07019.89
5.5.20.0000.06720.08
5.5.10.0000.04720.19
5.5.00.0000.04020.04
5.4.450.0030.04719.34
5.4.440.0030.08019.33
5.4.430.0000.06719.33
5.4.420.0030.08319.22
5.4.410.0070.07719.20
5.4.400.0030.08018.99
5.4.390.0070.07019.20
5.4.380.0030.07719.00
5.4.370.0000.08718.98
5.4.360.0070.05319.10
5.4.350.0030.03718.86
5.4.340.0030.08318.87
5.4.320.0030.07019.00
5.4.310.0100.06719.15
5.4.300.0000.07718.95
5.4.290.0070.06719.02
5.4.280.0070.07019.00
5.4.270.0070.07319.15
5.4.260.0000.07719.07
5.4.250.0100.05719.05
5.4.240.0030.07019.09
5.4.230.0070.07318.84
5.4.220.0070.07018.92
5.4.210.0100.05719.15
5.4.200.0000.05019.00
5.4.190.0030.05718.98
5.4.180.0030.03719.06
5.4.170.0000.03719.18
5.4.160.0000.03718.98
5.4.150.0030.03719.13
5.4.140.0030.03316.27
5.4.130.0000.03716.41
5.4.120.0030.03316.42
5.4.110.0030.03316.36
5.4.100.0000.03316.24
5.4.90.0000.04316.38
5.4.80.0030.03316.29
5.4.70.0000.04016.34
5.4.60.0070.03016.28
5.4.50.0030.03316.18
5.4.40.0030.03016.44
5.4.30.0000.03016.26
5.4.20.0130.02316.42
5.4.10.0070.02316.27
5.4.00.0000.03015.77
5.3.290.0030.08314.66
5.3.280.0000.08014.54
5.3.270.0000.04014.57
5.3.260.0000.03714.41
5.3.250.0000.04014.54
5.3.240.0000.03714.55
5.3.230.0000.04014.59
5.3.220.0030.03314.38
5.3.210.0070.02714.56
5.3.200.0000.03014.56
5.3.190.0030.03714.38
5.3.180.0030.03714.41
5.3.170.0000.03014.56
5.3.160.0070.03714.50
5.3.150.0030.03714.53
5.3.140.0000.03014.54
5.3.130.0000.03014.50
5.3.120.0030.03014.41
5.3.110.0000.03014.49
5.3.100.0030.03013.98
5.3.90.0030.02713.98
5.3.80.0000.03013.96
5.3.70.0000.03014.02
5.3.60.0000.03013.81
5.3.50.0000.03013.89
5.3.40.0000.03013.93
5.3.30.0000.03013.87
5.3.20.0030.02313.56
5.3.10.0000.02713.62
5.3.00.0000.03013.42
5.2.170.0000.02311.20
5.2.160.0000.02311.16
5.2.150.0000.02711.09
5.2.140.0000.02311.01
5.2.130.0000.02310.91
5.2.120.0030.02011.07
5.2.110.0000.02310.96
5.2.100.0030.02711.13
5.2.90.0000.02710.91
5.2.80.0000.03311.10
5.2.70.0030.03011.03
5.2.60.0000.02311.07
5.2.50.0030.02310.88
5.2.40.0000.02310.93
5.2.30.0030.03010.97
5.2.20.0000.02311.02
5.2.10.0000.04710.88
5.2.00.0030.05010.88
5.1.60.0000.04710.88
5.1.50.0000.05710.88
5.1.40.0100.05010.88
5.1.30.0000.06010.88
5.1.20.0070.05310.88
5.1.10.0070.05010.95
5.1.00.0030.05310.95
5.0.50.0070.03710.95
5.0.40.0030.04310.95
5.0.30.0030.06310.95
5.0.20.0030.04310.95
5.0.10.0070.03710.95
5.0.00.0030.06310.95
4.4.90.0000.01710.88
4.4.80.0000.01710.88
4.4.70.0000.01710.88
4.4.60.0000.01310.88
4.4.50.0030.03310.88
4.4.40.0000.05710.88
4.4.30.0030.03310.88
4.4.20.0000.02010.88
4.4.10.0000.03310.95
4.4.00.0000.05310.95
4.3.110.0030.03310.95
4.3.100.0000.03310.95
4.3.90.0000.03310.95
4.3.80.0000.05310.95
4.3.70.0000.03310.95
4.3.60.0000.03010.95
4.3.50.0030.03010.95
4.3.40.0000.05310.95
4.3.30.0070.03711.02
4.3.20.0000.04011.09
4.3.10.0030.03711.09
4.3.00.0030.03011.09

preferences:
42.42 ms | 400 KiB | 5 Q