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>');

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.70.0150.00016.58
8.3.60.0070.00718.05
8.3.50.0080.00821.80
8.3.40.0070.00718.84
8.3.30.0060.01118.43
8.3.20.0040.00418.74
8.3.10.0050.00220.97
8.3.00.0050.00319.43
8.2.180.0070.00718.16
8.2.170.0110.00422.96
8.2.160.0140.00020.22
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00421.05
8.2.110.0060.00322.09
8.2.100.0040.00817.78
8.2.90.0040.00418.34
8.2.80.0000.00818.61
8.2.70.0030.00517.50
8.2.60.0080.00018.03
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0050.00317.97
8.2.20.0040.00418.40
8.2.10.0000.00717.61
8.2.00.0060.00317.72
8.1.280.0140.00725.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0110.00019.16
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0000.00818.37
8.1.160.0000.00718.73
8.1.150.0020.00518.55
8.1.140.0040.00417.43
8.1.130.0070.00017.74
8.1.120.0000.00717.46
8.1.110.0030.00617.38
8.1.100.0040.00417.31
8.1.90.0000.00717.27
8.1.80.0040.00417.42
8.1.70.0050.00417.29
8.1.60.0060.00717.26
8.1.50.0080.00217.27
8.1.40.0050.00617.29
8.1.30.0070.00417.34
8.1.20.0080.00517.40
8.1.10.0070.00517.34
8.1.00.0120.00117.25
8.0.300.0000.00718.77
8.0.290.0090.00016.75
8.0.280.0030.00318.38
8.0.270.0030.00317.30
8.0.260.0030.00316.82
8.0.250.0050.00216.98
8.0.240.0040.00416.81
8.0.230.0030.00316.79
8.0.220.0040.00416.73
8.0.210.0040.00416.83
8.0.200.0070.00416.79
8.0.190.0080.00216.66
8.0.180.0090.00416.51
8.0.170.0090.00416.61
8.0.160.0050.00616.67
8.0.150.0050.00716.73
8.0.140.0010.00816.76
8.0.130.0040.00415.59
8.0.120.0060.00316.65
8.0.110.0080.00216.57
8.0.100.0070.00316.50
8.0.90.0020.00716.67
8.0.80.0110.00316.52
8.0.70.0080.00316.59
8.0.60.0060.00516.58
8.0.50.0080.00316.64
8.0.30.0110.00716.83
8.0.20.0100.01016.99
8.0.10.0080.00416.79
8.0.00.0130.00416.80
7.4.330.0110.00620.92
7.4.320.0070.00016.30
7.4.300.0090.00216.38
7.4.290.0060.00516.38
7.4.280.0060.00716.46
7.4.270.0100.00316.33
7.4.260.0080.00215.32
7.4.250.0050.00616.18
7.4.240.0070.00216.41
7.4.230.0010.00916.31
7.4.220.0040.01116.40
7.4.210.0100.00416.37
7.4.200.0050.00416.44
7.4.190.0060.00416.46
7.4.180.0070.00516.38
7.4.160.0060.00816.35
7.4.150.0080.00516.65
7.4.140.0120.00617.12
7.4.130.0080.00916.30
7.4.120.0070.00716.33
7.4.110.0090.00616.22
7.4.100.0120.00316.37
7.4.90.0110.00416.35
7.4.80.0110.00417.28
7.4.70.0040.01116.35
7.4.60.0070.00716.32
7.4.50.0090.00216.13
7.4.40.0100.00218.35
7.4.30.0100.00616.11
7.4.20.0020.01016.14
7.4.10.0040.01015.50
7.4.00.0070.00715.45
7.3.330.0100.00214.98
7.3.320.0030.00915.09
7.3.310.0100.00116.10
7.3.300.0100.00216.13
7.3.290.0100.00616.06
7.3.280.0100.00716.13
7.3.270.0160.00316.50
7.3.260.0120.00617.38
7.3.250.0120.00616.29
7.3.240.0050.01116.12
7.3.230.0140.00116.24
7.3.220.0120.00316.06
7.3.210.0090.00616.12
7.3.200.0080.00817.23
7.3.190.0130.00216.07
7.3.180.0110.00516.18
7.3.170.0110.00416.12
7.3.160.0100.00616.13
7.3.150.0060.00815.95
7.3.140.0130.00316.02
7.3.130.0060.00915.36
7.3.120.0080.00715.25
7.3.110.0110.00715.25
7.3.100.0100.00415.33
7.3.90.0070.00615.51
7.3.80.0080.00615.31
7.3.70.0080.00715.34
7.3.60.0070.00815.45
7.3.50.0080.00715.39
7.3.40.0080.00615.41
7.3.30.0090.00615.40
7.3.20.0130.00416.79
7.3.10.0080.00516.67
7.3.00.0110.00416.74
7.2.340.0110.00316.10
7.2.330.0090.00716.28
7.2.320.0090.00816.17
7.2.310.0090.00816.26
7.2.300.0100.00516.13
7.2.290.0100.00616.31
7.2.280.0080.00816.30
7.2.270.0070.00816.13
7.2.260.0070.00915.51
7.2.250.0050.01115.60
7.2.240.0090.00715.42
7.2.230.0070.00715.51
7.2.220.0060.01015.45
7.2.210.0080.00615.48
7.2.200.0120.00415.63
7.2.190.0070.00815.58
7.2.180.0060.00715.50
7.2.170.0060.00715.45
7.2.160.0050.01015.48
7.2.150.0080.00616.96
7.2.140.0050.00916.94
7.2.130.0070.00816.99
7.2.120.0050.00916.93
7.2.110.0060.00816.95
7.2.100.0080.00516.92
7.2.90.0090.00616.93
7.2.80.0100.00616.93
7.2.70.0080.00616.97
7.2.60.0070.00616.85
7.2.50.0070.00616.91
7.2.40.0100.00517.09
7.2.30.0060.00917.01
7.2.20.0110.00317.02
7.2.10.0090.00716.94
7.2.00.0090.00617.39
7.1.330.0120.00516.06
7.1.320.0090.00716.12
7.1.310.0110.00516.01
7.1.300.0130.00316.05
7.1.290.0120.00516.06
7.1.280.0090.00716.22
7.1.270.0090.00615.98
7.1.260.0130.00515.98
7.1.250.0110.00415.89
7.1.240.0120.00416.10
7.1.230.0080.00716.17
7.1.220.0100.00616.13
7.1.210.0140.00416.04
7.1.200.0130.00515.93
7.1.190.0110.00916.20
7.1.180.0100.00716.01
7.1.170.0080.00816.06
7.1.160.0110.00516.11
7.1.150.0110.00616.03
7.1.140.0090.00616.00
7.1.130.0100.00516.04
7.1.120.0110.00516.03
7.1.110.0070.00915.95
7.1.100.0080.00716.47
7.1.90.0080.00715.94
7.1.80.0360.00916.10
7.1.70.0070.00716.13
7.1.60.0100.00516.32
7.1.50.0100.00516.25
7.1.40.0120.00416.26
7.1.30.0070.00816.24
7.1.20.0100.00516.13
7.1.10.0110.00316.13
7.1.00.0110.00216.19
7.0.330.0120.00415.69
7.0.320.0130.00215.73
7.0.310.0130.00215.78
7.0.300.0120.00315.71
7.0.290.0090.00515.56
7.0.280.0110.00315.75
7.0.270.0130.00115.77
7.0.260.0120.00315.74
7.0.250.0120.00515.83
7.0.240.0110.00415.74
7.0.230.0100.00515.79
7.0.220.0120.00315.71
7.0.210.0120.00315.89
7.0.200.0040.00816.00
7.0.190.0080.00616.03
7.0.180.0080.00715.97
7.0.170.0080.00615.88
7.0.160.0070.00715.87
7.0.150.0090.00415.70
7.0.140.0090.00515.77
7.0.130.0080.00516.01
7.0.120.0090.00515.92
7.0.110.0070.00615.84
7.0.100.0090.00415.84
7.0.90.0090.00415.80
7.0.80.0090.00415.77
7.0.70.0070.00715.79
7.0.60.0070.00615.77
7.0.50.0080.00515.92
7.0.40.0100.00315.69
7.0.30.0090.00515.66
7.0.20.0090.00515.56
7.0.10.0080.00615.71
7.0.00.0090.00415.63
5.6.400.0130.00215.13
5.6.390.0080.00715.25
5.6.380.0060.00915.15
5.6.370.0160.00215.19
5.6.360.0120.00615.22
5.6.350.0110.00515.19
5.6.340.0100.00415.03
5.6.330.0110.00415.17
5.6.320.0110.00415.12
5.6.310.0110.00515.23
5.6.300.0050.01716.54
5.6.290.0110.01216.63
5.6.280.0080.01416.50
5.6.270.0080.01616.52
5.6.260.0100.01316.71
5.6.250.0110.01316.54
5.6.240.0090.01616.58
5.6.230.0090.01516.61
5.6.220.0070.01816.57
5.6.210.0080.01516.61
5.6.200.0120.01216.65
5.6.190.0070.01716.67
5.6.180.0100.01916.67
5.6.170.0090.01416.64
5.6.160.0090.01616.60
5.6.150.0060.01616.63
5.6.140.0080.01716.59
5.6.130.0080.01816.49
5.6.120.0090.01416.68
5.6.110.0100.01416.60
5.6.100.0060.02116.66
5.6.90.0060.01916.54
5.6.80.0100.01516.42
5.6.70.0100.01116.54
5.6.60.0090.01416.45
5.6.50.0070.01716.41
5.6.40.0090.01416.44
5.6.30.0080.01516.47
5.6.20.0080.01416.40
5.6.10.0110.01216.34
5.6.00.0090.01216.31
5.5.380.0060.01615.72
5.5.370.0070.01615.86
5.5.360.0140.01115.66
5.5.350.0120.02315.71
5.5.340.0070.01515.79
5.5.330.0090.02015.71
5.5.320.0080.01515.80
5.5.310.0080.01815.77
5.5.300.0140.01115.92
5.5.290.0090.01815.72
5.5.280.0090.01815.72
5.5.270.0110.01315.77
5.5.260.0090.01515.92
5.5.250.0090.01515.75
5.5.240.0130.01415.76
5.5.230.0110.02015.66
5.5.220.0090.01315.65
5.5.210.0090.01215.69
5.5.200.0110.01115.61
5.5.190.0050.02015.58
5.5.180.0030.01815.62
5.5.170.0130.00314.95
5.5.160.0060.01515.66
5.5.150.0080.01515.50
5.5.140.0100.01615.48
5.5.130.0080.01515.55
5.5.120.0070.01415.54
5.5.110.0110.01415.57
5.5.100.0100.01615.63
5.5.90.0090.01415.68
5.5.80.0070.01515.59
5.5.70.0090.01515.65
5.5.60.0080.01915.51
5.5.50.0100.01315.69
5.5.40.0060.01715.67
5.5.30.0070.01515.67
5.5.20.0060.01715.58
5.5.10.0110.01215.47
5.5.00.0080.01615.55
5.4.450.0070.01914.26
5.4.440.0090.01314.26
5.4.430.0070.01314.31
5.4.420.0080.01314.28
5.4.410.0050.01514.18
5.4.400.0090.01114.17
5.4.390.0060.01914.23
5.4.380.0080.01314.19
5.4.370.0060.01414.22
5.4.360.0100.01114.08
5.4.350.0110.01014.12
5.4.340.0070.01314.11
5.4.330.0060.00812.49
5.4.320.0110.01014.13
5.4.310.0080.01714.20
5.4.300.0080.01114.23
5.4.290.0080.01314.22
5.4.280.0080.01314.17
5.4.270.0070.01514.19
5.4.260.0090.01314.08
5.4.250.0090.01114.24
5.4.240.0100.01114.15
5.4.230.0060.01314.11
5.4.220.0070.01514.14
5.4.210.0110.01014.07
5.4.200.0100.01014.10
5.4.190.0080.01314.08
5.4.180.0080.01214.03
5.4.170.0060.01514.14
5.4.160.0100.01514.14
5.4.150.0060.01414.19
5.4.140.0100.01313.55
5.4.130.0060.01413.54
5.4.120.0090.01713.50
5.4.110.0070.01413.55
5.4.100.0060.01513.52
5.4.90.0060.01113.58
5.4.80.0060.01313.64
5.4.70.0080.01313.62
5.4.60.0040.01513.65
5.4.50.0060.01313.47
5.4.40.0100.00813.62
5.4.30.0070.02013.62
5.4.20.0060.01313.56
5.4.10.0060.01313.64
5.4.00.0080.01113.37
5.3.290.0080.01313.58
5.3.280.0080.02213.60
5.3.270.0080.01313.55
5.3.260.0060.01413.62
5.3.250.0070.01213.57
5.3.240.0060.01313.40
5.3.230.0060.01213.46
5.3.220.0100.01113.46
5.3.210.0050.01613.49
5.3.200.0070.01313.46
5.3.190.0080.01213.51
5.3.180.0090.01813.57
5.3.170.0070.01213.64
5.3.160.0070.01213.64
5.3.150.0060.01313.50
5.3.140.0090.01013.53
5.3.130.0080.01213.47
5.3.120.0060.01313.47
5.3.110.0050.01413.55
5.3.100.0040.01413.51
5.3.90.0090.01813.59
5.3.80.0070.01113.48
5.3.70.0070.01113.46
5.3.60.0070.01213.57
5.3.50.0070.01213.47
5.3.40.0040.01413.49
5.3.30.0050.01313.53
5.3.20.0070.01413.44
5.3.10.0060.01313.40
5.3.00.0050.01613.40

preferences:
47.6 ms | 401 KiB | 5 Q