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 substr(strip_tags(stringClean($stt)),0,160) . '...'; 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.31
8.3.50.0140.00721.92
8.3.40.0150.00618.72
8.3.30.0090.00619.14
8.3.20.0040.00420.34
8.3.10.0080.00021.85
8.3.00.0050.00319.07
8.2.180.0140.00416.38
8.2.170.0180.00022.96
8.2.160.0100.00722.08
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.61
8.2.110.0160.00322.27
8.2.100.0040.00817.72
8.2.90.0000.00719.23
8.2.80.0040.00717.97
8.2.70.0000.00817.50
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0040.00418.09
8.2.30.0040.00417.97
8.2.20.0080.00017.71
8.2.10.0060.00317.96
8.2.00.0050.00217.63
8.1.280.0110.00325.92
8.1.270.0090.00018.82
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.97
8.1.230.0040.00718.84
8.1.220.0000.00917.77
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0060.00318.65
8.1.160.0050.00222.04
8.1.150.0000.00718.99
8.1.140.0000.00817.54
8.1.130.0040.00417.77
8.1.120.0050.00317.40
8.1.110.0000.00817.45
8.1.100.0000.00717.44
8.1.90.0040.00417.38
8.1.80.0000.00717.49
8.1.70.0040.00417.47
8.1.60.0000.00817.45
8.1.50.0000.00917.61
8.1.40.0040.00417.44
8.1.30.0000.00817.68
8.1.20.0040.00417.69
8.1.10.0000.00817.59
8.1.00.0000.00817.49
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0000.00718.36
8.0.270.0050.00316.78
8.0.260.0030.00318.52
8.0.250.0000.00716.93
8.0.240.0000.00616.90
8.0.230.0000.00717.00
8.0.220.0000.00716.95
8.0.210.0030.00316.79
8.0.200.0030.00316.99
8.0.190.0090.00016.95
8.0.180.0040.00417.00
8.0.170.0080.00016.83
8.0.160.0030.00316.93
8.0.150.0000.00816.89
8.0.140.0040.00416.79
8.0.130.0000.00613.38
8.0.120.0030.00516.76
8.0.110.0000.00716.95
8.0.100.0040.00416.85
8.0.90.0070.00016.79
8.0.80.0120.00416.92
8.0.70.0030.00516.93
8.0.60.0000.00716.66
8.0.50.0000.00716.89
8.0.30.0030.01817.17
8.0.20.0080.01017.44
8.0.10.0050.00317.01
8.0.00.0130.00716.97
7.4.330.0000.00515.03
7.4.320.0030.00316.38
7.4.300.0030.00316.54
7.4.290.0000.00716.39
7.4.280.0050.00316.52
7.4.270.0000.00716.46
7.4.260.0040.00416.51
7.4.250.0050.00216.58
7.4.240.0000.00716.58
7.4.230.0050.00216.61
7.4.220.0110.00716.50
7.4.210.0070.01016.58
7.4.200.0040.00416.66
7.4.160.0090.00616.64
7.4.150.0130.00317.40
7.4.140.0080.00917.86
7.4.130.0140.00316.45
7.4.120.0140.00716.58
7.4.110.0030.01616.58
7.4.100.0000.01716.58
7.4.90.0070.01016.59
7.4.80.0170.00319.39
7.4.70.0090.01316.52
7.4.60.0080.00816.50
7.4.50.0090.00016.41
7.4.40.0160.00616.64
7.4.30.0090.01416.43
7.4.00.0030.01215.00
7.3.330.0000.00613.17
7.3.320.0030.00313.23
7.3.310.0050.00216.14
7.3.300.0040.00416.25
7.3.290.0100.00716.25
7.3.280.0100.00716.27
7.3.270.0120.00617.40
7.3.260.0100.01016.51
7.3.250.0130.00516.50
7.3.240.0110.00616.53
7.3.230.0040.01316.52
7.3.210.0080.00816.54
7.3.200.0130.00719.39
7.3.190.0000.01616.48
7.3.180.0030.01216.23
7.3.170.0100.01316.28
7.3.160.0090.00816.40
7.2.330.0130.00616.73
7.2.320.0100.00716.58
7.2.310.0130.00316.80
7.2.300.0130.01016.66
7.2.290.0110.00816.74
7.2.00.0060.00319.08
7.1.200.0030.01015.48
7.1.100.0080.00318.32
7.1.70.0060.01117.03
7.1.60.0100.01419.46
7.1.50.0100.00316.99
7.1.00.0030.07722.36
7.0.200.0030.00616.79
7.0.140.0070.03022.05
7.0.60.0030.05319.99
7.0.50.0070.04017.88
7.0.40.0000.05720.21
7.0.30.0300.07320.15
7.0.20.0200.09020.05
7.0.10.0100.08320.06
7.0.00.0130.07720.09
5.6.280.0030.07020.82
5.6.210.0130.06720.71
5.6.200.0070.05718.29
5.6.190.0070.07320.42
5.6.180.0500.06020.51
5.6.170.0270.07020.55
5.6.160.0100.08320.54
5.6.150.0030.08718.23
5.6.140.0000.05318.15
5.6.130.0030.04718.21
5.6.120.0200.07721.01
5.6.110.0070.06721.02
5.6.100.0100.08320.89
5.6.90.0200.06020.98
5.6.80.0170.07020.45
5.5.350.4270.03720.41
5.5.340.0100.08017.99
5.5.330.0100.08020.40
5.5.320.2170.05020.38
5.5.310.0100.04320.27
5.5.300.0000.09018.05
5.5.290.0100.08017.98
5.5.280.0070.08020.78
5.5.270.0170.07720.93
5.5.260.0100.07720.88
5.5.250.0170.07720.79
5.5.240.0070.02720.27
5.4.450.0570.06019.61
5.4.440.0130.06319.57
5.4.430.0130.05019.21
5.4.420.0230.04719.64
5.4.410.0100.05319.57
5.4.400.0000.06719.27
5.4.390.0300.06018.51
5.4.380.0300.06718.59
5.4.370.0230.07718.58
5.4.360.0200.05318.74
5.4.350.0200.07318.59
5.4.340.0300.06018.48
5.4.320.0200.07018.73
5.4.310.0230.05018.76
5.4.300.0300.04318.62
5.4.290.0200.06318.80
5.4.280.0270.05018.74
5.4.270.0170.06018.53
5.4.260.0330.04018.73
5.4.250.0330.04018.55
5.4.240.0200.05718.70
5.4.230.0170.05718.79
5.4.220.0270.05018.82
5.4.210.0300.05318.73
5.4.200.0170.05716.78
5.4.190.0270.05718.75
5.4.180.0130.06318.74
5.4.170.0330.04718.59
5.4.160.0170.07718.71
5.4.150.0200.07018.54
5.4.140.0270.04716.18
5.4.130.0200.05016.26
5.4.120.0200.06016.23
5.4.110.0230.06716.25
5.4.100.0270.06016.28
5.4.90.0300.05016.17
5.4.80.0100.06016.36
5.4.70.0170.05316.31
5.4.60.0130.06016.26
5.4.50.0130.05716.27
5.4.40.0200.05016.46
5.4.30.0200.05016.41
5.4.20.0100.06316.17
5.4.10.0070.06016.41
5.4.00.0200.04715.89
5.3.290.0300.06714.70
5.3.280.0200.06014.63
5.3.270.0300.06714.65
5.3.260.0200.06714.61
5.3.250.0170.05714.64
5.3.240.0230.05314.59
5.3.230.0100.06314.73
5.3.220.0200.05714.69
5.3.210.0300.04014.59
5.3.200.0170.05014.61
5.3.190.0100.06014.62
5.3.180.0170.05314.62
5.3.170.0170.06014.62
5.3.160.0230.04714.63
5.3.150.0170.05314.71
5.3.140.0230.04714.66
5.3.130.0270.05014.58
5.3.120.0170.06014.77
5.3.110.0300.05314.80
5.3.100.0070.06014.03
5.3.90.0130.05714.25
5.3.80.0200.05314.19
5.3.70.0130.05714.06
5.3.60.0170.05314.23
5.3.50.0170.05314.13
5.3.40.0130.05314.12
5.3.30.0170.05014.11
5.3.20.0170.05313.83
5.3.10.0130.05713.66
5.3.00.0070.06013.65
5.2.170.0100.05011.18
5.2.160.0170.04011.38
5.2.150.0170.04011.22
5.2.140.0130.04311.17
5.2.130.0130.04011.24
5.2.120.0230.03311.24
5.2.110.0130.04311.21
5.2.100.0170.04311.21
5.2.90.0130.04011.13
5.2.80.0070.04711.14
5.2.70.0170.03711.20
5.2.60.0130.04311.06
5.2.50.0170.04311.14
5.2.40.0100.04011.23
5.2.30.0130.05011.09
5.2.20.0130.04011.04
5.2.10.0100.04710.89
5.2.00.0200.04310.95
5.1.60.0200.04010.14
5.1.50.0330.04010.00
5.1.40.0130.03310.02
5.1.30.0270.02010.41
5.1.20.0070.04310.58
5.1.10.0100.03710.30
5.1.00.0030.04310.18
5.0.50.0030.0378.60
5.0.40.0070.0308.52
5.0.30.0030.0538.23
5.0.20.0130.0238.31
5.0.10.0070.0278.20
5.0.00.0030.0478.36
4.4.90.0000.0275.96
4.4.80.0100.0176.00
4.4.70.0070.0235.91
4.4.60.0100.0205.92
4.4.50.0100.0175.96
4.4.40.0070.0376.04
4.4.30.0170.0135.94
4.4.20.0100.0305.97
4.4.10.0100.0205.96
4.4.00.0100.0306.05
4.3.110.0130.0235.90
4.3.100.0100.0205.93
4.3.90.0100.0175.88
4.3.80.0030.0405.96
4.3.70.0100.0175.86
4.3.60.0070.0205.87
4.3.50.0130.0175.87
4.3.40.0130.0275.77
4.3.30.0100.0204.60
4.3.20.0070.0204.60
4.3.10.0030.0274.60
4.3.00.0100.0208.74

preferences:
50.15 ms | 401 KiB | 5 Q