3v4l.org

run code in 300+ PHP versions simultaneously
<?php $category = new stdClass(); $category->category_name = 'T-Shirts'; $product = new stdClass(); $product->product_name = 'PTB Keep Calm'; $product->product_desc = 'PTB Keep Calm This creative design is printed&nbsp;&nbsp;on a&nbsp;Premium Fitted CVC Crew Tee&nbsp; Features:60% combed rin...'; $decoded = strip_tags(html_entity_decode("Buy " . $category->category_name." | ".$product->product_name." | ".$product->product_desc)); echo $decoded; echo "\n---\n"; echo preg_replace('~\s+~u', ' ', $decoded);

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.0000.01518.68
8.3.60.0060.00918.56
8.3.50.0110.00418.44
8.3.40.0120.00619.08
8.3.30.0070.00719.01
8.3.20.0030.00619.29
8.3.10.0080.00021.94
8.3.00.0080.00023.61
8.2.180.0170.00018.54
8.2.170.0060.00922.96
8.2.160.0110.00420.21
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00722.39
8.2.120.0100.00026.35
8.2.110.0030.00721.07
8.2.100.0070.00417.97
8.2.90.0040.00419.83
8.2.80.0040.00418.03
8.2.70.0060.00317.89
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0040.00419.43
8.2.30.0000.00720.53
8.2.20.0040.00418.15
8.2.10.0000.00718.10
8.2.00.0040.00419.43
8.1.280.0120.00325.92
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0030.00623.93
8.1.230.0040.00721.04
8.1.220.0000.00817.74
8.1.210.0040.00418.83
8.1.200.0050.00517.48
8.1.190.0000.00817.36
8.1.180.0060.00318.10
8.1.170.0000.00818.82
8.1.160.0040.00418.88
8.1.150.0020.00518.98
8.1.140.0000.00719.08
8.1.130.0000.00719.05
8.1.120.0080.00017.66
8.1.110.0030.00717.58
8.1.100.0070.00017.59
8.1.90.0000.00717.64
8.1.80.0050.00317.66
8.1.70.0040.00417.60
8.1.60.0030.00617.63
8.1.50.0040.00417.58
8.1.40.0040.00417.64
8.1.30.0030.00517.90
8.1.20.0030.00817.70
8.1.10.0040.00417.78
8.1.00.0040.00417.64
8.0.300.0060.00319.84
8.0.290.0030.00616.75
8.0.280.0040.00418.48
8.0.270.0000.00717.14
8.0.260.0040.00417.33
8.0.250.0000.00717.05
8.0.240.0070.00017.13
8.0.230.0050.00517.13
8.0.220.0030.00317.02
8.0.210.0070.00017.20
8.0.200.0070.00017.09
8.0.190.0050.00317.20
8.0.180.0050.00317.11
8.0.170.0090.00017.16
8.0.160.0040.00417.07
8.0.150.0060.00317.02
8.0.140.0030.00517.06
8.0.130.0030.00313.54
8.0.120.0080.00017.13
8.0.110.0000.00817.15
8.0.100.0040.00417.15
8.0.90.0080.00017.18
8.0.80.0080.01017.18
8.0.70.0000.00717.02
8.0.60.0000.00817.20
8.0.50.0050.00217.03
8.0.30.0080.00917.36
8.0.20.0040.01517.46
8.0.10.0050.00317.12
8.0.00.0080.01216.88
7.4.330.0050.00015.55
7.4.320.0030.00316.79
7.4.300.0060.00016.89
7.4.290.0070.00016.92
7.4.280.0000.00816.86
7.4.270.0000.00716.79
7.4.260.0030.00316.87
7.4.250.0070.00016.84
7.4.240.0030.00316.80
7.4.230.0000.00716.73
7.4.220.0040.00416.89
7.4.210.0100.00716.77
7.4.200.0050.00316.61
7.4.160.0110.01016.80
7.4.140.0100.01017.86
7.4.130.0180.00716.83
7.4.120.0070.01116.81
7.4.110.0070.01016.60
7.4.100.0060.01216.79
7.4.90.0120.00916.82
7.4.80.0140.00419.39
7.4.70.0070.01416.57
7.4.60.0030.01216.70
7.4.50.0060.00816.50
7.4.40.0070.01016.61
7.4.10.0060.01316.04
7.4.00.0090.00915.58
7.3.330.0030.00313.38
7.3.320.0020.00213.29
7.3.310.0040.00416.35
7.3.300.0000.00716.41
7.3.290.0030.00316.51
7.3.280.0060.01116.44
7.3.260.0160.00916.56
7.3.240.0080.01216.75
7.3.230.0170.00016.75
7.3.210.0060.01516.69
7.3.200.0050.01016.77
7.3.190.0070.01016.56
7.3.180.0070.01016.71
7.3.170.0060.00916.75
7.3.160.0080.00816.72
7.3.130.0070.00815.71
7.3.120.0080.01115.90
7.3.110.0090.00515.80
7.3.100.0080.00915.78
7.3.90.0080.00815.82
7.3.80.0030.00715.87
7.3.70.0090.00415.61
7.3.60.0050.00915.77
7.3.50.0100.00415.81
7.3.40.0020.01015.86
7.3.30.0110.00015.85
7.3.20.0060.00817.65
7.3.10.0090.00817.04
7.3.00.0090.00816.80
7.2.330.0140.00416.73
7.2.320.0140.00316.91
7.2.310.0040.01816.82
7.2.300.0030.01216.85
7.2.290.0100.00716.68
7.2.260.0080.01015.99
7.2.250.0030.01616.03
7.2.240.0070.00715.85
7.2.230.0050.01215.80
7.2.220.0060.00915.93
7.2.210.0050.00715.90
7.2.200.0050.01016.03
7.2.190.0050.01115.90
7.2.180.0100.00716.00
7.2.170.0050.01116.00
7.2.160.0080.00615.94
7.2.150.0060.01017.91
7.2.140.0030.01317.83
7.2.130.0080.00717.18
7.2.120.0090.00817.27
7.2.110.0110.00817.09
7.2.100.0070.00917.18
7.2.90.0110.00917.23
7.2.80.0330.00716.54
7.2.70.0480.00716.60
7.2.60.0340.00916.56
7.2.50.0130.00916.57
7.2.40.0500.00716.59
7.2.30.0700.00816.64
7.2.20.0320.01016.64
7.2.10.0790.01016.58
7.2.00.0700.00716.80
7.1.330.0060.00916.61
7.1.320.0080.00516.68
7.1.310.0040.01016.72
7.1.300.0080.00616.78
7.1.290.0090.00316.62
7.1.280.0030.01016.81
7.1.270.0030.00816.68
7.1.260.0050.00916.86
7.1.250.0080.00916.12
7.1.240.0050.00716.74
7.1.230.0100.00516.60
7.1.220.0070.00916.73
7.1.210.0030.00616.63
7.1.200.0540.00715.35
7.1.190.0580.00415.37
7.1.180.0520.00815.35
7.1.170.0110.00715.26
7.1.160.0410.00715.24
7.1.150.0950.00915.24
7.1.140.1230.00615.35
7.1.130.0990.00615.31
7.1.120.0440.01115.22
7.1.110.0200.00415.40
7.1.100.0520.00715.36
7.1.90.0590.00615.17
7.1.80.0620.00515.21
7.1.70.0850.00615.35
7.1.60.1290.00824.41
7.1.50.1230.01124.37
7.1.40.1450.00924.37
7.1.30.1410.00924.19
7.1.20.1310.01224.29
7.1.10.1880.00715.31
7.1.00.1670.00815.24
7.0.330.0030.01016.32
7.0.320.0020.00916.55
7.0.310.0080.00616.35
7.0.300.0040.01116.37
7.0.290.0050.00716.39
7.0.280.0060.00616.38
7.0.270.0030.01016.17
7.0.260.0050.00716.28
7.0.250.0050.00416.50
7.0.240.0050.01016.37
7.0.230.0000.00916.50
7.0.220.0070.00616.33
7.0.210.0090.00116.34
7.0.200.0070.00416.34
7.0.190.0020.01116.56
7.0.180.0100.00516.43
7.0.170.0050.01016.44
7.0.160.0080.00316.47
7.0.150.0080.00616.38
7.0.140.0110.00316.38
7.0.130.0060.00516.51
7.0.120.0030.01016.44
7.0.110.0020.00816.28
7.0.100.0020.01016.38
7.0.90.0090.00716.49
7.0.80.0080.00516.44
7.0.70.0050.00816.44
7.0.60.0080.00516.29
7.0.50.0070.00516.43
7.0.40.0120.00014.46
7.0.30.0050.01114.38
7.0.20.0030.00814.38
7.0.10.0030.01014.37
7.0.00.0080.00414.36
5.6.400.0010.01215.41
5.6.390.0110.00515.34
5.6.380.0060.00815.15
5.6.370.0030.01015.36
5.6.360.0020.01115.30
5.6.350.0070.00515.06
5.6.340.0110.00215.26
5.6.330.0080.00515.04
5.6.320.0090.00615.23
5.6.310.0020.01115.27
5.6.300.0060.00915.22
5.6.290.0030.01015.17
5.6.280.0060.00715.12
5.6.270.0030.01015.07
5.6.260.0040.00915.02
5.6.250.0080.00815.29
5.6.240.0070.00715.18
5.6.230.0090.00615.38
5.6.220.0100.00515.07
5.6.210.0070.00815.15
5.6.200.0050.00915.26
5.6.190.0040.00815.15
5.6.180.0070.00515.21
5.6.170.0070.00815.13
5.6.160.0030.00715.22
5.6.150.0070.00415.16
5.6.140.0090.00815.11
5.6.130.0050.00915.30
5.6.120.0070.00715.13
5.6.110.0080.00815.21
5.6.100.0100.00515.38
5.6.90.0050.00615.01
5.6.80.0050.00515.32
5.6.70.0040.00915.06
5.6.60.0110.00015.16
5.6.50.0070.00515.01
5.6.40.0090.00715.18
5.6.30.0060.00615.12
5.6.20.0100.00214.99
5.6.10.0060.00815.02
5.6.00.0040.00715.06

preferences:
57.77 ms | 400 KiB | 5 Q