3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'hey good day'; $text = htmlspecialchars($text); echo "<script>alert('". json_encode($text) ."');</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.70.0150.00616.38
8.3.60.0040.01118.31
8.3.50.0100.00316.21
8.3.40.0130.00819.22
8.3.30.0100.01018.71
8.3.20.0100.00521.20
8.3.10.0050.00920.82
8.3.00.0100.00825.23
8.2.190.0140.00016.58
8.2.180.0040.01116.50
8.2.170.0110.00720.87
8.2.160.0120.00520.31
8.2.150.0080.00721.58
8.2.140.0090.00522.51
8.2.130.0070.00723.25
8.2.120.0120.00219.96
8.2.110.0070.00620.52
8.2.100.0110.00418.56
8.2.90.0110.00419.10
8.2.80.0100.00418.62
8.2.70.0110.00318.09
8.2.60.0070.00618.17
8.2.50.0090.00418.71
8.2.40.0100.00519.07
8.2.30.0060.00919.04
8.2.20.0090.00518.29
8.2.10.0110.00418.96
8.2.00.0090.00518.91
8.1.280.0140.00425.92
8.1.270.0080.00521.27
8.1.260.0080.00524.25
8.1.250.0070.00525.12
8.1.240.0110.00319.67
8.1.230.0080.00820.66
8.1.220.0060.00818.37
8.1.210.0060.00818.68
8.1.200.0070.00818.01
8.1.190.0090.00317.92
8.1.180.0050.00718.61
8.1.170.0100.00218.55
8.1.160.0060.00518.76
8.1.150.0040.00718.82
8.1.140.0060.00518.82
8.1.130.0050.00619.56
8.1.120.0040.00718.00
8.1.110.0070.00517.97
8.1.100.0070.00518.62
8.1.90.0070.00518.07
8.1.80.0050.00718.54
8.1.70.0040.00818.17
8.1.60.0060.00518.13
8.1.50.0060.00617.99
8.1.40.0070.00418.03
8.1.30.0040.00818.23
8.1.20.0060.00618.76
8.1.10.0110.00417.67
8.1.00.0020.01017.92
8.0.300.0090.00419.00
8.0.290.0080.00817.21
8.0.280.0120.00518.04
8.0.270.0090.00417.36
8.0.260.0070.00918.89
8.0.250.0080.00617.30
8.0.240.0090.00717.27
8.0.230.0100.00517.32
8.0.220.0160.00517.28
8.0.210.0140.00417.18
8.0.200.0130.00317.38
8.0.190.0160.00217.39
8.0.180.0090.00517.33
8.0.170.0080.00917.27
8.0.160.0160.00417.34
8.0.150.0140.00917.25
8.0.140.0120.00517.20
8.0.130.0120.00815.54
8.0.120.0130.00717.34
8.0.110.0130.00417.25
8.0.100.0110.00417.31
8.0.90.0150.00317.31
8.0.80.0120.01117.18
8.0.70.0080.00517.27
8.0.60.0160.00917.32
8.0.50.0170.00317.18
8.0.30.0080.00817.28
8.0.20.0150.00517.34
8.0.10.0150.00417.35
8.0.00.0120.00818.99
7.4.330.0090.00416.51
7.4.320.0130.00516.76
7.4.300.0140.00616.88
7.4.290.0140.00516.88
7.4.280.0170.00116.93
7.4.270.0110.00816.91
7.4.260.0140.00415.24
7.4.250.0110.00816.88
7.4.240.0150.00516.87
7.4.230.0170.00417.00
7.4.220.0100.00716.75
7.4.210.0110.01016.70
7.4.200.0190.00216.94
7.4.190.0310.00017.04
7.4.180.0240.01017.52
7.4.160.0280.00717.32
7.4.150.0270.01017.17
7.4.140.0250.00317.30
7.4.130.0150.00716.67
7.4.120.0220.00416.82
7.4.110.0170.00616.83
7.4.100.0140.01116.93
7.4.90.0130.01016.89
7.4.80.0140.01118.22
7.4.70.0130.01016.98
7.4.60.0150.01016.79
7.4.50.0160.00716.91
7.4.40.0130.01216.72
7.4.30.0230.00317.55
7.4.20.0110.01116.93
7.4.10.0160.00916.66
7.4.00.0170.00516.96
7.3.330.0120.00516.61
7.3.320.0130.00515.04
7.3.310.0170.00716.66
7.3.300.0100.01016.84
7.3.290.0110.00716.45
7.3.280.0150.00916.65
7.3.270.0410.00616.65
7.3.260.0280.00316.75
7.3.250.0280.00917.02
7.3.240.0120.01016.35
7.3.230.0190.00616.68
7.3.220.0300.00017.18
7.3.210.0150.00816.72
7.3.200.0160.00716.65
7.3.190.0180.00516.59
7.3.180.0170.00516.66
7.3.170.0140.00717.01
7.3.160.0170.00516.70
7.3.150.0190.01017.03
7.3.140.0160.01116.67
7.3.130.0170.00716.68
7.3.120.0160.00816.63
7.3.110.0160.00516.95
7.3.100.0160.01316.71
7.3.90.0190.00816.74
7.3.80.0210.00616.69
7.3.70.0160.00717.10
7.3.60.0200.00716.65
7.3.50.0190.01016.79
7.3.40.0200.00916.74
7.3.30.0150.00916.80
7.3.20.0240.00917.59
7.3.10.0170.01017.40
7.3.00.0180.01017.55
7.2.340.0270.01117.12
7.2.330.0190.01216.92
7.2.320.0160.01217.08
7.2.310.0220.00716.82
7.2.300.0190.01116.88
7.2.290.0190.01216.98
7.2.280.0270.01217.12
7.2.270.0170.01517.00
7.2.260.0210.00917.03
7.2.250.0190.00916.93
7.2.240.0140.01417.04
7.2.230.0250.00517.03
7.2.220.0170.01117.06
7.2.210.0220.00716.96
7.2.200.0210.00716.98
7.2.190.0250.00217.06
7.2.180.0230.00517.08
7.2.170.0180.00917.02
7.2.160.0190.00716.97
7.2.150.0190.00917.90
7.2.140.0220.00517.89
7.2.130.0150.01018.06
7.2.120.0190.00617.91
7.2.110.0210.00718.06
7.2.100.0140.01217.98
7.2.90.0170.01217.94
7.2.80.0240.00418.03
7.2.70.0190.00818.05
7.2.60.0230.00717.84
7.2.50.0180.00917.84
7.2.40.0140.01417.93
7.2.30.0190.00718.10
7.2.20.0160.01217.96
7.2.10.0240.00417.77
7.2.00.0100.01018.07

preferences:
18.41 ms | 401 KiB | 5 Q