3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>'; echo strip_tags($text); echo "\n"; // Allow <p> and <a> echo strip_tags($text, '<p><a></script><script>prompt()</script>'); ?>

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.40.0140.00318.79
8.3.30.0070.00718.95
8.3.20.0040.00420.33
8.3.10.0050.00321.95
8.3.00.0000.00819.56
8.2.170.0070.01322.96
8.2.160.0100.00320.24
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0110.00019.13
8.2.110.0060.00322.24
8.2.100.0080.00417.66
8.2.90.0000.00819.21
8.2.80.0070.00019.31
8.2.70.0040.00417.59
8.2.60.0030.00617.91
8.2.50.0030.00618.07
8.2.40.0030.00618.21
8.2.30.0040.00419.43
8.2.20.0020.00517.78
8.2.10.0070.00017.90
8.2.00.0090.00017.59
8.1.270.0060.00324.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00023.87
8.1.230.0080.00319.10
8.1.220.0000.00917.76
8.1.210.0000.00818.77
8.1.200.0030.00717.00
8.1.190.0040.00417.41
8.1.180.0060.00318.10
8.1.170.0050.00318.61
8.1.160.0040.00418.87
8.1.150.0070.00018.83
8.1.140.0030.00617.38
8.1.130.0000.00717.69
8.1.120.0000.00717.28
8.1.110.0040.00417.34
8.1.100.0000.00817.43
8.1.90.0000.00717.30
8.1.80.0000.00717.33
8.1.70.0030.00517.38
8.1.60.0040.00417.41
8.1.50.0030.00517.44
8.1.40.0030.00517.42
8.1.30.0040.00417.48
8.1.20.0000.00717.57
8.1.10.0050.00317.38
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0030.00318.43
8.0.270.0070.00017.29
8.0.260.0080.00017.25
8.0.250.0030.00316.97
8.0.240.0030.00316.89
8.0.230.0030.00316.92
8.0.220.0000.00716.79
8.0.210.0030.00316.73
8.0.200.0030.00316.75
8.0.190.0030.00516.78
8.0.180.0080.00016.88
8.0.170.0000.00716.84
8.0.160.0030.00516.86
8.0.150.0070.00016.71
8.0.140.0000.00716.74
8.0.130.0050.00013.21
8.0.120.0050.00316.80
8.0.110.0040.00416.78
8.0.100.0000.00816.87
8.0.90.0000.00716.63
8.0.80.0070.00716.78
8.0.70.0000.00816.88
8.0.60.0050.00216.82
8.0.50.0030.00316.85
8.0.30.0130.00916.94
8.0.20.0080.01017.40
8.0.10.0040.00416.89
8.0.00.0110.01116.60
7.4.330.0050.00015.09
7.4.320.0030.00316.36
7.4.300.0030.00316.48
7.4.290.0000.00716.58
7.4.280.0000.00816.53
7.4.270.0070.00016.43
7.4.260.0090.00016.34
7.4.250.0020.00516.32
7.4.240.0030.00316.46
7.4.230.0070.00016.28
7.4.220.0150.00416.47
7.4.210.0060.00916.43
7.4.200.0070.00016.54
7.4.160.0130.01016.36
7.4.150.0140.00317.40
7.4.140.0120.00517.86
7.4.130.0080.01516.28
7.4.120.0070.01116.36
7.4.110.0090.00916.54
7.4.100.0070.01416.51
7.4.90.0130.00316.30
7.4.80.0090.00919.39
7.4.70.0090.01316.44
7.4.60.0090.00616.48
7.4.50.0000.00916.32
7.4.40.0030.01416.55
7.4.30.0030.01316.59
7.4.10.0130.00614.82
7.4.00.0090.00814.87
7.3.330.0030.00513.03
7.3.320.0050.00012.88
7.3.310.0070.00016.11
7.3.300.0040.00416.18
7.3.290.0090.00816.16
7.3.280.0070.01416.17
7.3.270.0070.01017.40
7.3.260.0110.00716.47
7.3.250.0120.00516.42
7.3.240.0070.01016.45
7.3.230.0070.01016.39
7.3.210.0080.00816.21
7.3.200.0140.00919.39
7.3.190.0090.00916.32
7.3.180.0120.00416.33
7.3.170.0040.01216.45
7.3.160.0070.00816.51
7.3.130.0090.00314.86
7.3.120.0050.01314.81
7.3.110.0090.00714.90
7.3.100.0040.00914.58
7.3.90.0100.00214.76
7.3.80.0060.00714.52
7.3.70.0040.01114.63
7.3.60.0050.00914.67
7.3.50.0070.00514.59
7.3.40.0080.00314.68
7.3.30.0050.01014.80
7.3.20.0090.00616.43
7.3.10.0090.00716.25
7.3.00.0080.00716.37
7.2.330.0030.01316.42
7.2.320.0130.00316.61
7.2.310.0070.01416.58
7.2.300.0080.01516.53
7.2.290.0090.01216.27
7.2.260.0120.00615.05
7.2.250.0070.01115.06
7.2.240.0090.00614.86
7.2.230.0030.01414.83
7.2.220.0050.00814.94
7.2.210.0050.01015.10
7.2.200.0080.00915.04
7.2.190.0050.00714.75
7.2.180.0060.01014.79
7.2.170.0110.00614.81
7.2.160.0060.00915.08
7.2.150.0060.00916.70
7.2.140.0000.01016.90
7.2.130.0130.00416.76
7.2.120.0090.01016.79
7.2.110.0060.01016.76
7.2.100.0040.01316.52
7.2.90.0060.01316.74
7.2.80.0100.01116.78
7.2.70.0110.00716.74
7.2.60.0080.00716.66
7.2.50.0080.00816.58
7.2.40.0050.00816.78
7.2.30.0050.00816.88
7.2.20.0120.00816.62
7.2.10.0130.00716.83
7.2.00.0060.01117.55
7.1.330.0070.00715.65
7.1.320.0080.00815.61
7.1.310.0020.01315.71
7.1.300.0030.01115.75
7.1.290.0040.01115.81
7.1.280.0050.01015.63
7.1.270.0050.00715.67
7.1.260.0030.01015.67
7.1.250.0100.00815.56
7.1.240.0040.01115.77
7.1.230.0100.00715.79
7.1.220.0040.00815.86
7.1.210.0090.00315.54
7.1.200.0070.01015.65
7.1.190.0070.00715.82
7.1.180.0040.00715.79
7.1.170.0030.01015.64
7.1.160.0060.01015.82
7.1.150.0030.00515.78
7.1.140.0060.00915.74
7.1.130.0000.01315.58
7.1.120.0090.00415.88
7.1.110.0000.01015.38
7.1.100.0040.00616.93
7.1.90.0090.00915.49
7.1.80.0030.01015.75
7.1.70.0030.00916.42
7.1.60.0090.01117.57
7.1.50.0120.00616.29
7.1.40.0040.01115.52
7.1.30.0070.01015.87
7.1.20.0060.00615.73
7.1.10.0070.00415.66
7.1.00.0050.03918.88
7.0.330.0080.00315.38
7.0.320.0040.00715.27
7.0.310.0000.01115.09
7.0.300.0120.00315.30
7.0.290.0100.00315.29
7.0.280.0040.00715.32
7.0.270.0040.01115.28
7.0.260.0040.01015.32
7.0.250.0050.00915.07
7.0.240.0070.00715.57
7.0.230.0090.00315.51
7.0.220.0060.00815.50
7.0.210.0080.00615.32
7.0.200.0030.00615.78
7.0.190.0070.01015.27
7.0.180.0060.01215.34
7.0.170.0070.00715.43
7.0.160.0090.00615.28
7.0.150.0000.01215.27
7.0.140.0050.03418.66
7.0.130.0070.00715.30
7.0.120.0070.00715.54
7.0.110.0060.00615.23
7.0.100.0070.00715.41
7.0.90.0030.00915.43
7.0.80.0060.00615.43
7.0.70.0000.00915.30
7.0.60.0000.04417.67
7.0.50.0060.03716.59
7.0.40.0020.03116.65
7.0.30.0180.03616.66
7.0.20.0220.03016.73
7.0.10.0030.04116.70
7.0.00.0050.04116.89
5.6.400.0030.00914.20
5.6.390.0070.00714.49
5.6.380.0030.01014.35
5.6.370.0030.01014.28
5.6.360.0060.00314.42
5.6.350.0090.00614.40
5.6.340.0070.00714.18
5.6.330.0060.00314.28
5.6.320.0000.01714.03
5.6.310.0070.00714.36
5.6.300.0060.00614.54
5.6.290.0000.00814.47
5.6.280.0110.03517.67
5.6.270.0090.00314.48
5.6.260.0060.00614.16
5.6.250.0040.01114.40
5.6.240.0100.00314.19
5.6.230.0100.00314.17
5.6.220.0030.00614.04
5.6.210.0100.01917.26
5.6.200.0070.04416.20
5.6.190.0080.02717.49
5.6.180.0140.02117.50
5.6.170.0180.02017.34
5.6.160.0070.02317.18
5.6.150.0070.04216.20
5.6.140.0060.04516.23
5.6.130.0080.04216.18
5.6.120.0020.05217.41
5.6.110.0030.03217.49
5.6.100.0070.04117.60
5.6.90.0070.03817.66
5.6.80.0130.03817.18
5.6.70.0040.01114.32
5.6.60.0030.01013.85
5.6.50.0060.00914.14
5.6.40.0000.01214.26
5.6.30.0100.00714.00
5.6.20.0030.01314.39
5.6.10.0040.00414.17
5.6.00.0030.00614.38
5.5.380.0060.00613.97
5.5.370.0000.01014.14
5.5.360.0000.01414.31
5.5.350.0100.01817.25
5.5.340.0150.03616.09
5.5.330.0050.03917.31
5.5.320.0150.02517.11
5.5.310.0180.02817.02
5.5.300.0060.04516.16
5.5.290.0130.04515.98
5.5.280.0090.04217.34
5.5.270.0130.04017.53
5.5.260.0120.04317.41
5.5.250.0020.05017.36
5.5.240.0060.03617.01
5.5.230.0000.01414.16
5.5.220.0000.01813.82
5.5.210.0030.00914.05
5.5.200.0060.00914.22
5.5.190.0070.00714.26
5.5.180.0000.00913.65
5.5.170.0130.00314.15
5.5.160.0100.00714.30
5.5.150.0060.00913.80
5.5.140.0040.01513.94
5.5.130.0090.00614.16
5.5.120.0030.00614.30
5.5.110.0030.01014.12
5.5.100.0060.00914.11
5.5.90.0000.01213.96
5.5.80.0040.00714.12
5.5.70.0030.01313.99
5.5.60.0040.01114.12
5.5.50.0030.00714.19
5.5.40.0140.00014.21
5.5.30.0040.01113.77
5.5.20.0060.00614.28
5.5.10.0070.00714.21
5.5.00.0030.01214.12
5.4.450.0120.03016.10
5.4.440.0100.02316.00
5.4.430.0130.02216.05
5.4.420.0050.03016.04
5.4.410.0130.02815.82
5.4.400.0070.02915.70
5.4.390.0080.02815.56
5.4.380.0120.02515.60
5.4.370.0080.04015.61
5.4.360.0080.04015.69
5.4.350.0060.02813.14
5.4.340.0040.02213.15
5.4.330.0000.01112.63
5.4.320.0070.02213.39
5.4.310.0070.02713.38
5.4.300.0050.02313.37
5.4.290.0070.02513.39
5.4.280.0050.02713.31
5.4.270.0130.02013.35
5.4.260.0050.02513.33
5.4.250.0070.02213.36
5.4.240.0090.01713.40
5.4.230.0080.02113.35
5.4.220.0030.03013.36
5.4.210.0080.02713.37
5.4.200.0050.03213.32
5.4.190.0120.02413.34
5.4.180.0120.01913.41
5.4.170.0050.02713.32
5.4.160.0060.02313.44
5.4.150.0080.02013.36
5.4.140.0050.02513.16
5.4.130.0030.02413.25
5.4.120.0080.02213.13
5.4.110.0060.02313.17
5.4.100.0020.02613.17
5.4.90.0100.01813.17
5.4.80.0050.02713.16
5.4.70.0060.02813.13
5.4.60.0050.02913.18
5.4.50.0070.02513.17
5.4.40.0100.02213.12
5.4.30.0050.02213.13
5.4.20.0060.02613.13
5.4.10.0040.02613.12
5.4.00.0070.02012.86
5.3.290.0030.05314.66
5.3.280.0200.04014.49
5.3.270.0100.05314.45
5.3.260.0300.06314.63
5.3.250.0100.04314.61
5.3.240.0100.04714.48
5.3.230.0130.05014.62
5.3.220.0070.04314.57
5.3.210.0100.04714.50
5.3.200.0070.05714.61
5.3.190.0130.05314.43
5.3.180.0070.04314.49
5.3.170.0130.04014.43
5.3.160.0070.05314.40
5.3.150.0130.04714.56
5.3.140.0070.04014.47
5.3.130.0100.04014.43
5.3.120.0100.05314.54
5.3.110.0100.04714.44
5.3.100.0200.04013.88
5.3.90.0370.03714.02
5.3.80.0270.04713.95
5.3.70.0230.05013.91
5.3.60.0230.03714.03
5.3.50.0270.04713.87
5.3.40.0230.04313.80
5.3.30.0370.05013.81
5.3.20.0070.04713.71
5.3.10.0070.04013.55
5.3.00.0070.04713.49
5.2.170.0100.03311.12
5.2.160.0070.04011.11
5.2.150.0070.05711.07
5.2.140.0170.03011.23
5.2.130.0070.03011.17
5.2.120.0100.02711.07
5.2.110.0030.03311.10
5.2.100.0000.03711.17
5.2.90.0100.02711.15
5.2.80.0030.03311.17
5.2.70.0100.04010.95
5.2.60.0130.04011.10
5.2.50.0030.03311.09
5.2.40.0070.03010.85
5.2.30.0030.04310.82
5.2.20.0100.02310.88
5.2.10.0000.03310.77
5.2.00.0070.03010.78
5.1.60.0070.02710.11
5.1.50.0030.0409.95
5.1.40.0100.0309.95
5.1.30.0030.03710.31
5.1.20.0000.03710.26
5.1.10.0030.03010.04
5.1.00.0070.03010.13
5.0.50.0030.0238.56
5.0.40.0030.0238.32
5.0.30.0000.0408.25
5.0.20.0070.0238.37
5.0.10.0030.0208.29
5.0.00.0030.0338.20
4.4.90.0070.0205.84
4.4.80.0100.0135.82
4.4.70.0030.0205.82
4.4.60.0000.0205.81
4.4.50.0030.0175.83
4.4.40.0030.0275.84
4.4.30.0030.0175.83
4.4.20.0030.0175.90
4.4.10.0030.0135.88
4.4.00.0030.0235.88
4.3.110.0030.0175.75
4.3.100.0000.0205.79
4.3.90.0130.0075.75
4.3.80.0070.0305.72
4.3.70.0000.0235.89
4.3.60.0000.0175.73
4.3.50.0000.0205.73
4.3.40.0030.0275.67
4.3.30.0070.0174.52
4.3.20.0000.0204.45
4.3.10.0030.0204.46
4.3.00.0070.01016.65

preferences:
55.9 ms | 400 KiB | 5 Q