3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<_HTML 'single quotes' "double quotes" _HTML; echo 'no flags:', PHP_EOL, htmlspecialchars($str), PHP_EOL, PHP_EOL, 'with flags but nothing for quotes:', PHP_EOL, htmlspecialchars($str, ENT_HTML5);

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.5.00.0120.01021.55
8.4.150.0010.00114.05
8.4.140.0140.00717.85
8.4.130.0110.00819.06
8.4.120.0130.00624.12
8.4.110.0140.00618.50
8.4.100.0150.00618.70
8.4.90.0050.00422.25
8.4.80.0060.00318.79
8.4.70.0100.01017.95
8.4.60.0060.00418.78
8.4.50.0110.00818.44
8.4.40.0190.00017.79
8.4.30.0100.00718.94
8.4.20.0110.00019.74
8.4.10.0080.00019.27
8.3.280.0120.00818.31
8.3.270.0120.00916.31
8.3.260.0120.00716.45
8.3.250.0140.00418.69
8.3.240.0090.00817.10
8.3.230.0070.00316.74
8.3.220.0100.01018.95
8.3.210.0090.00916.64
8.3.200.0040.00416.48
8.3.190.0100.00816.76
8.3.180.0100.00718.95
8.3.170.0100.00718.83
8.3.160.0140.00416.87
8.3.150.0070.01017.00
8.3.140.0100.00016.93
8.3.130.0040.00418.48
8.3.120.0120.00318.87
8.3.110.0080.00020.94
8.3.100.0120.00220.25
8.3.90.0080.00521.59
8.3.80.0070.00817.17
8.3.70.0260.00817.44
8.3.60.0170.00717.63
8.3.50.0090.00817.75
8.3.40.0200.00817.90
8.3.30.0160.01217.76
8.3.20.0190.00517.85
8.3.10.0160.01017.84
8.3.00.0220.00617.81
8.2.290.0130.00520.26
8.2.280.0130.00818.02
8.2.270.0000.01017.36
8.2.260.0100.00718.18
8.2.250.0000.00816.58
8.2.240.0090.00916.86
8.2.230.0040.00422.58
8.2.220.0050.00726.99
8.2.210.0120.00221.58
8.2.200.0110.00216.56
8.2.190.0210.00817.40
8.2.180.0220.00917.52
8.2.170.0230.00617.94
8.2.160.0250.00217.77
8.2.150.0220.00717.90
8.2.140.0230.00317.85
8.2.130.0140.00817.77
8.2.120.0160.00617.85
8.2.110.0180.00717.85
8.2.100.0200.00717.90
8.2.90.0240.00717.90
8.2.80.0210.00417.81
8.2.70.0210.00817.81
8.2.60.0150.00418.18
8.2.50.0190.00417.81
8.2.40.0210.00417.85
8.2.30.0160.00317.81
8.2.20.0120.00617.85
8.2.10.0140.00417.81
8.2.00.0120.00718.34
8.1.330.0070.00421.73
8.1.320.0140.00717.86
8.1.310.0030.00616.80
8.1.300.0110.00718.18
8.1.290.0040.00523.42
8.1.280.0140.00817.40
8.1.270.0170.00517.76
8.1.260.0150.00517.68
8.1.250.0190.00317.81
8.1.240.0150.00517.76
8.1.230.0150.00417.80
8.1.220.0160.00117.77
8.1.210.0210.00117.68
8.1.200.0150.00717.73
8.1.190.0190.00417.72
8.1.180.0200.00417.72
8.1.170.0120.00517.76
8.1.160.0160.00317.72
8.1.150.0120.00817.72
8.1.140.0120.00517.72
8.1.130.0130.00517.72
8.1.120.0120.00917.76
8.1.110.0200.00317.76
8.1.100.0190.00317.76
8.1.90.0170.00417.72
8.1.80.0150.00817.76
8.1.70.0200.00517.72
8.1.60.0240.00317.76
8.1.50.0190.00517.76
8.1.40.0200.00117.73
8.1.30.0150.00617.80
8.1.20.0200.00617.80
8.1.10.0210.00517.80
8.1.00.0210.00417.76

preferences:
28.79 ms | 403 KiB | 5 Q