3v4l.org

run code in 300+ PHP versions simultaneously
<?php #echo "Hello, World!"; $stt = "<p><em>(Formerly SCS 1346 The Writer&rsquo;s Handbook)</em></p> <p>Good grammar is the bedrock of good writing. Designed for native or near-native speakers of English, this course will help you improve your skills in grammar and punctuation, whether you write for personal satisfaction or as part of your job. We&rsquo;ll review the basics of grammar and usage so you can write with more confidence, coherence and energy. Exercises and writing assignments will help you master the techniques of clear, correct and effective writing.</p>"; echo strip_tags(stringClean($stt)); function htmlClean( $html, $allowTags = '<p><a><strong><ul><ol><li><em><i>' ) { $html = str_replace(array ('<![CDATA[', ']]>'), '', utf8_encode($html)); $html = htmlspecialchars_decode($html, ENT_QUOTES); $html = html_entity_decode($html, ENT_QUOTES, 'UTF-8'); $html = str_replace('&apos;', '\'', $html); $html = str_replace('&nbsp;', ' ', $html); $html = strip_tags($html, $allowTags); $html = preg_replace('/(<p><\/p>|<p>\s<\/p>|<p>&nbsp;<\/p>)/im', '', $html); $html = trim($html); return preg_replace("/<([b-z][a-z0-9]*)[^>]*?(\/?)>/im", '<$1$2>', $html); } function stringClean( $str ) { $str = htmlspecialchars_decode($str, ENT_QUOTES); $str = html_entity_decode($str, ENT_QUOTES, 'UTF-8'); $str = str_replace('&apos;', '\'', $str); $str = str_replace('&nbsp;', ' ', $str); return trim($str); }

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.0100.00718.50
8.3.50.0140.00721.87
8.3.40.0110.00418.67
8.3.30.0120.00418.94
8.3.20.0040.00420.29
8.3.10.0030.00621.50
8.3.00.0040.00419.14
8.2.180.0230.01216.37
8.2.170.0100.00722.96
8.2.160.0070.01022.18
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0050.00319.64
8.2.110.0090.00019.29
8.2.100.0090.00319.54
8.2.90.0000.00819.23
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0040.00417.90
8.2.50.0000.00918.07
8.2.40.0000.00920.01
8.2.30.0040.00418.02
8.2.20.0050.00317.68
8.2.10.0040.00418.08
8.2.00.0000.00717.71
8.1.280.0120.00325.92
8.1.270.0080.00018.95
8.1.260.0030.01226.35
8.1.250.0000.00828.09
8.1.240.0000.00922.65
8.1.230.0070.00319.16
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0000.01017.22
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0040.00818.59
8.1.160.0000.00722.05
8.1.150.0000.00718.88
8.1.140.0040.00417.56
8.1.130.0070.00017.92
8.1.120.0040.00417.35
8.1.110.0000.00817.45
8.1.100.0030.00617.40
8.1.90.0040.00317.43
8.1.80.0000.00717.44
8.1.70.0000.00717.37
8.1.60.0040.00417.64
8.1.50.0030.00617.57
8.1.40.0040.00417.60
8.1.30.0000.00817.52
8.1.20.0040.00417.74
8.1.10.0040.00417.56
8.1.00.0040.00417.54
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.46
8.0.270.0070.00017.36
8.0.260.0030.00317.29
8.0.250.0000.00716.89
8.0.240.0030.00317.02
8.0.230.0030.00316.86
8.0.220.0040.00416.82
8.0.210.0040.00416.87
8.0.200.0000.00716.97
8.0.190.0000.00716.98
8.0.180.0000.00716.85
8.0.170.0000.00816.97
8.0.160.0080.00016.77
8.0.150.0000.00716.77
8.0.140.0070.00016.84
8.0.130.0060.00013.29
8.0.120.0000.00816.88
8.0.110.0000.00716.73
8.0.100.0070.00016.90
8.0.90.0040.00316.85
8.0.80.0100.00616.91
8.0.70.0070.00016.91
8.0.60.0050.00216.73
8.0.50.0040.00416.87
8.0.30.0120.00917.06
8.0.20.0090.01017.43
8.0.10.0030.00516.84
8.0.00.0100.00716.81
7.4.330.0030.00215.07
7.4.320.0000.00616.55
7.4.300.0000.00816.45
7.4.290.0070.00016.65
7.4.280.0000.00816.50
7.4.270.0000.00716.66
7.4.260.0030.00316.52
7.4.250.0040.00416.50
7.4.240.0020.00616.61
7.4.230.0000.00716.52
7.4.220.0100.00716.49
7.4.210.0130.00716.62
7.4.200.0000.00716.54
7.4.160.0050.01016.43
7.4.150.0030.01417.40
7.4.140.0080.01017.86
7.4.130.0110.00816.47
7.4.120.0060.01316.61
7.4.110.0120.00616.46
7.4.100.0120.00616.56
7.4.90.0040.01516.53
7.4.80.0060.01219.39
7.4.70.0030.01316.34
7.4.60.0060.01216.63
7.4.50.0030.00616.39
7.4.40.0150.00316.50
7.4.30.0100.01316.74
7.4.00.0140.00414.87
7.3.330.0030.00313.11
7.3.320.0050.00013.21
7.3.310.0000.00716.25
7.3.300.0030.00316.21
7.3.290.0060.00916.25
7.3.280.0070.00916.25
7.3.270.0030.01417.40
7.3.260.0030.01416.38
7.3.250.0140.00516.44
7.3.240.0030.01316.57
7.3.230.0090.01316.60
7.3.210.0130.00416.43
7.3.200.0090.01219.39
7.3.190.0030.01416.37
7.3.180.0070.01016.21
7.3.170.0050.00616.47
7.3.160.0070.00916.23
7.3.120.0090.00914.81
7.3.110.0030.01314.97
7.3.100.0100.00314.45
7.3.90.0060.00614.84
7.3.80.0110.00314.52
7.3.70.0060.00614.88
7.3.60.0030.01314.84
7.3.50.0030.01114.79
7.3.40.0030.00714.57
7.3.30.0090.00614.69
7.3.20.0090.00916.50
7.3.10.0100.00316.71
7.3.00.0000.01616.59
7.2.330.0120.00616.65
7.2.320.0080.00816.79
7.2.310.0130.00516.40
7.2.300.0090.00916.88
7.2.290.0080.01616.69
7.2.250.0060.00615.23
7.2.240.0100.01014.90
7.2.230.0130.00315.21
7.2.220.0090.00615.11
7.2.210.0030.01015.10
7.2.200.0030.01014.99
7.2.190.0100.01014.95
7.2.180.0060.00615.02
7.2.170.0000.00914.73
7.2.80.0040.00716.42
7.2.60.0070.00716.77
7.2.00.0000.01418.80
7.1.330.0100.00315.94
7.1.320.0030.01015.92
7.1.310.0060.00915.83
7.1.300.0030.00915.48
7.1.290.0080.00615.81
7.1.280.0060.00915.64
7.1.270.0070.00715.89
7.1.260.0030.01315.51
7.1.200.0000.01415.53
7.1.100.0000.01518.09
7.1.70.0040.00416.95
7.1.60.0120.01219.46
7.1.50.0100.00716.54
7.1.00.0100.07022.36
7.0.200.0320.00014.25
7.0.140.0030.03322.08
7.0.60.0000.06319.94
7.0.50.0170.07317.91
7.0.40.0030.07720.40
7.0.30.0230.05320.10
7.0.20.0370.02720.25
7.0.10.0030.06720.23
7.0.00.0070.04320.09
5.6.280.0100.06721.11
5.6.210.0130.07020.70
5.6.200.0000.04718.15
5.6.190.0130.08020.50
5.6.180.0500.04020.68
5.6.170.0270.04720.55
5.6.160.0100.07720.47
5.6.150.0130.03018.16
5.6.140.0100.03718.23
5.6.130.0070.06718.29
5.6.120.0000.05021.04
5.6.110.0070.03720.97
5.6.100.0130.05021.02
5.6.90.0130.07021.07
5.6.80.0100.04720.37
5.5.350.3900.04320.31
5.5.340.0000.04017.99
5.5.330.0030.05020.32
5.5.320.2270.04320.36
5.5.310.0170.04020.26
5.5.300.0070.07718.05
5.5.290.0100.07718.02
5.5.280.0170.07720.88
5.5.270.0270.05020.76
5.5.260.0070.08720.96
5.5.250.0200.03320.68
5.5.240.0030.06020.20
5.4.450.0600.05719.20
5.4.440.0130.06019.48
5.4.430.0130.05319.21
5.4.420.0100.05319.46
5.4.410.0070.05319.26
5.4.400.0070.05719.36
5.4.390.0200.07318.73
5.4.380.0170.08018.78
5.4.370.0200.07318.48
5.4.360.0300.04718.84
5.4.350.0170.07018.75
5.4.340.0270.04318.60
5.4.320.0270.04718.60
5.4.310.0300.04318.70
5.4.300.0230.07018.50
5.4.290.0270.06718.84
5.4.280.0200.07018.58
5.4.270.0230.05318.73
5.4.260.0270.05318.55
5.4.250.0330.04318.74
5.4.240.0300.05018.56
5.4.230.0270.06318.82
5.4.220.0270.06018.46
5.4.210.0300.05718.73
5.4.200.0170.06016.79
5.4.190.0230.05018.82
5.4.180.0370.04718.82
5.4.170.0130.06018.72
5.4.160.0200.05018.73
5.4.150.0130.06018.45
5.4.140.0170.07016.39
5.4.130.0130.05716.20
5.4.120.0200.05016.27
5.4.110.0200.05016.37
5.4.100.0230.04716.31
5.4.90.0230.04716.37
5.4.80.0200.06016.27
5.4.70.0370.05016.17
5.4.60.0230.04716.20
5.4.50.0170.05316.18
5.4.40.0170.05016.24
5.4.30.0230.04316.42
5.4.20.0200.05716.13
5.4.10.0170.05016.20
5.4.00.0170.05715.72
5.3.290.0200.05314.71
5.3.280.0170.06314.60
5.3.270.0270.05014.74
5.3.260.0330.05014.64
5.3.250.0130.05714.71
5.3.240.0230.04714.59
5.3.230.0230.06014.79
5.3.220.0170.05314.62
5.3.210.0170.06014.79
5.3.200.0070.06314.76
5.3.190.0170.05714.71
5.3.180.0230.04714.57
5.3.170.0230.06314.59
5.3.160.0230.04714.57
5.3.150.0200.05014.79
5.3.140.0230.05314.60
5.3.130.0300.05714.68
5.3.120.0130.06314.75
5.3.110.0130.06014.66
5.3.100.0100.06014.07
5.3.90.0100.06314.02
5.3.80.0200.05014.20
5.3.70.0300.05314.07
5.3.60.0230.04314.04
5.3.50.0200.06013.98
5.3.40.0300.04313.94
5.3.30.0170.05314.08
5.3.20.0300.05313.72
5.3.10.0100.06013.66
5.3.00.0130.06713.66
5.2.170.0170.03711.38
5.2.160.0070.04711.28
5.2.150.0100.04711.38
5.2.140.0130.04311.25
5.2.130.0200.03311.17
5.2.120.0130.04011.31
5.2.110.0070.05711.32
5.2.100.0170.03711.23
5.2.90.0200.03711.11
5.2.80.0330.03011.21
5.2.70.0230.03711.33
5.2.60.0130.04711.16
5.2.50.0170.04311.05
5.2.40.0170.03711.05
5.2.30.0130.04311.02
5.2.20.0130.04011.06
5.2.10.0200.03310.99
5.2.00.0230.03010.84
5.1.60.0130.03010.19
5.1.50.0200.02710.02
5.1.40.0100.03710.18
5.1.30.0130.03310.36
5.1.20.0100.04010.38
5.1.10.0130.04010.18
5.1.00.0170.04010.20
5.0.50.0030.0338.54
5.0.40.0130.0238.45
5.0.30.0100.0578.44
5.0.20.0070.0308.26
5.0.10.0100.0308.33
5.0.00.0100.0438.32
4.4.90.0030.0235.92
4.4.80.0030.0235.91
4.4.70.0070.0275.93
4.4.60.0100.0235.99
4.4.50.0030.0275.97
4.4.40.0030.0375.93
4.4.30.0030.0235.92
4.4.20.0100.0175.95
4.4.10.0000.0275.98
4.4.00.0070.0375.97
4.3.110.0030.0235.89
4.3.100.0030.0235.85
4.3.90.0070.0205.89
4.3.80.0000.0405.93
4.3.70.0030.0235.89
4.3.60.0030.0235.81
4.3.50.0070.0235.86
4.3.40.0030.0375.83
4.3.30.0000.0274.64
4.3.20.0030.0234.60
4.3.10.0070.0204.60
4.3.00.0100.0208.74

preferences:
52.05 ms | 401 KiB | 5 Q