3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "<script>alert('test');</script>"; echo htmlentities($test);

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.0120.00316.50
8.3.50.0100.01016.13
8.3.40.0100.00318.71
8.3.30.0110.00418.45
8.3.20.0040.00420.16
8.3.10.0040.00421.78
8.3.00.0080.00017.53
8.2.180.0000.01716.75
8.2.170.0070.00722.96
8.2.160.0070.01420.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.47
8.2.120.0040.00426.35
8.2.110.0040.00420.11
8.2.100.0110.00017.66
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0040.00422.31
8.2.30.0040.00420.94
8.2.20.0030.00618.10
8.2.10.0070.00017.86
8.2.00.0040.00418.03
8.1.280.0170.00325.92
8.1.270.0040.00423.92
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0000.00921.99
8.1.230.0070.00420.72
8.1.220.0060.00317.74
8.1.210.0030.00518.77
8.1.200.0060.00317.10
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0030.00618.46
8.1.160.0030.00319.00
8.1.150.0050.00318.82
8.1.140.0000.00719.41
8.1.130.0040.00418.81
8.1.120.0030.00417.42
8.1.110.0040.00417.31
8.1.100.0040.00417.41
8.1.90.0000.00717.40
8.1.80.0050.00517.23
8.1.70.0030.00317.41
8.1.60.0070.00017.50
8.1.50.0070.00017.33
8.1.40.0040.00417.37
8.1.30.0080.00017.46
8.1.20.0080.00017.47
8.1.10.0030.00517.48
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0030.00516.63
8.0.280.0000.00718.41
8.0.270.0000.00717.28
8.0.260.0030.00316.93
8.0.250.0030.00316.98
8.0.240.0000.00716.93
8.0.230.0000.00816.77
8.0.220.0000.00716.83
8.0.210.0040.00416.88
8.0.200.0030.00516.87
8.0.190.0060.00316.93
8.0.180.0040.00416.88
8.0.170.0030.00316.83
8.0.160.0070.00016.77
8.0.150.0000.00716.77
8.0.140.0000.00716.78
8.0.130.0050.00013.23
8.0.120.0080.00016.64
8.0.110.0030.00316.70
8.0.100.0040.00416.70
8.0.90.0000.00716.85
8.0.80.0140.00316.81
8.0.70.0050.00216.70
8.0.60.0050.00216.86
8.0.50.0000.00716.65
8.0.30.0120.00516.97
8.0.20.0110.00717.40
8.0.10.0030.00516.86
8.0.00.0100.01116.66
7.4.330.0000.00515.55
7.4.320.0070.00016.48
7.4.300.0000.00616.32
7.4.290.0030.00616.42
7.4.280.0050.00316.43
7.4.270.0030.00516.47
7.4.260.0030.00316.30
7.4.250.0000.00716.49
7.4.240.0080.00016.33
7.4.230.0030.00516.50
7.4.220.0040.01516.51
7.4.210.0070.00916.54
7.4.200.0030.00416.63
7.4.160.0100.00716.35
7.4.150.0040.01417.40
7.4.140.0080.01117.86
7.4.130.0070.01716.41
7.4.120.0080.00916.41
7.4.110.0100.00716.39
7.4.100.0100.00816.41
7.4.90.0030.01316.41
7.4.80.0050.01119.39
7.4.70.0080.00916.33
7.4.60.0070.01416.67
7.4.50.0100.00316.37
7.4.40.0190.00016.64
7.4.30.0060.01216.48
7.4.00.0070.01014.73
7.3.330.0000.00512.83
7.3.320.0000.00513.02
7.3.310.0040.00416.16
7.3.300.0030.00316.12
7.3.290.0070.00015.98
7.3.280.0080.00916.14
7.3.270.0100.00717.40
7.3.260.0050.01216.55
7.3.250.0070.01316.16
7.3.240.0090.00716.45
7.3.230.0150.00416.13
7.3.210.0090.00616.21
7.3.200.0070.01016.18
7.3.190.0090.00616.14
7.3.180.0120.00916.48
7.3.170.0030.01216.16
7.3.160.0130.00316.16
7.2.330.0170.02416.52
7.2.320.0120.01116.24
7.2.310.0100.00616.55
7.2.300.0100.01016.54
7.2.290.0130.00316.60
7.2.60.0000.01416.75
7.2.00.0040.00819.33
7.1.200.0040.00815.60
7.1.100.0000.01118.02
7.1.70.0080.00617.09
7.1.60.0180.01234.84
7.1.50.0270.00334.82
7.1.40.0210.01334.25
7.1.30.0200.01434.44
7.1.20.0100.01634.69
7.1.10.0040.01116.32
7.1.00.0050.01016.61
7.0.200.0140.00316.68
7.0.190.0090.00616.81
7.0.180.0030.01316.19
7.0.170.0060.00616.40
7.0.160.0030.01016.14
7.0.150.0030.01416.40
7.0.140.0090.00516.17
7.0.130.0040.01016.36
7.0.120.0100.00316.41
7.0.110.0070.01016.17
7.0.100.0060.01016.13
7.0.90.0040.00816.17
7.0.80.0000.01316.23
7.0.70.0060.01316.16
7.0.60.0030.01516.18
7.0.50.0100.00716.40
7.0.40.0060.00816.69
7.0.30.0070.01116.39
7.0.20.0090.00616.58
7.0.10.0070.00716.42
7.0.00.0000.01216.58

preferences:
50.15 ms | 401 KiB | 5 Q