3v4l.org

run code in 300+ PHP versions simultaneously
<?php $handle = 0; $message = 'nothing in here except plain text'; // Check message doesn't contain odd characters $checkChars = 'href,http,#,¥,²,æ,é,Hello. And Bye.,£,$,ˆ,ª,³,¦,½,å,œ,…,§,¾,‡,»,ç,º,³,ä,¿,Â,¶,¸,µ,Ž,°,Œ,Å,’,€,â,¢,¬,ƒ,Æ,†,±,š,¡,Ñ,‘,Ë,‹,¹,·,Þ,`'; $checkArray = explode(",", $checkChars); foreach ($checkArray as $char) { if (strpos($message, $char) !== false) { $handle = 1; break; } } echo $handle;

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.10.0180.00616.33
8.5.00.0120.00920.02
8.4.160.0130.00923.92
8.4.150.0020.00014.05
8.4.140.0130.00817.60
8.4.130.0090.01117.55
8.4.120.0090.00722.46
8.4.110.0140.00618.63
8.4.100.0050.00517.88
8.4.90.0110.00920.70
8.4.80.0090.01020.37
8.4.70.0130.00718.71
8.4.60.0120.00518.64
8.4.50.0120.00620.36
8.4.40.0080.01119.27
8.4.30.0070.01120.54
8.4.20.0100.01021.30
8.4.10.0060.00319.48
8.3.280.0140.00618.39
8.3.270.0120.00816.59
8.3.260.0110.00816.33
8.3.250.0060.00618.80
8.3.240.0120.00816.33
8.3.230.0150.00816.73
8.3.220.0120.00519.04
8.3.210.0130.00516.43
8.3.200.0060.00316.66
8.3.190.0120.00917.30
8.3.180.0090.00918.85
8.3.170.0130.00719.01
8.3.160.0180.00018.66
8.3.150.0050.00319.21
8.3.140.0030.00516.54
8.3.130.0300.01116.71
8.3.120.0350.00616.26
8.3.110.0300.01216.26
8.3.100.0360.01016.72
8.3.90.0350.01416.55
8.3.80.0430.00716.20
8.3.70.0310.02116.36
8.3.60.0400.00716.45
8.3.50.0310.01616.34
8.3.40.0300.01517.24
8.3.30.0230.01917.16
8.3.20.0300.00817.27
8.3.10.0260.01117.21
8.3.00.0120.01219.16
8.2.290.0130.00617.17
8.2.280.0110.00918.39
8.2.270.0150.00316.81
8.2.260.0130.00616.90
8.2.250.0320.00716.39
8.2.240.0220.01816.42
8.2.230.0360.00616.47
8.2.220.0400.00316.22
8.2.210.0360.00316.39
8.2.200.0300.01016.27
8.2.190.0320.00716.18
8.2.180.0340.01116.32
8.2.170.0310.01217.70
8.2.160.0300.00317.60
8.2.150.0280.01217.39
8.2.140.0310.00917.49
8.2.130.0300.00717.53
8.2.120.0370.00717.46
8.2.110.0350.00617.41
8.2.100.0410.00017.50
8.2.90.0320.00817.60
8.2.80.0250.01617.45
8.2.70.0410.00717.26
8.2.60.0280.01117.22
8.2.50.0250.02117.54
8.2.40.0320.00617.35
8.2.30.0310.00817.57
8.2.20.0260.01117.18
8.2.10.0250.00517.31
8.2.00.0370.00417.29
8.1.330.0120.00717.96
8.1.320.0120.00616.00
8.1.310.0040.00416.60
8.1.300.0390.00316.18
8.1.290.0300.00916.18
8.1.280.0330.00616.18
8.1.270.0360.00717.39
8.1.260.0250.00417.52
8.1.250.0350.01017.19
8.1.240.0340.00517.36
8.1.230.0260.00717.00
8.1.220.0160.01617.29
8.1.210.0240.01217.18
8.1.200.0320.00017.05
8.1.190.0270.01016.91
8.1.180.0240.01217.20
8.1.170.0360.00017.25
8.1.160.0310.00817.30
8.1.150.0290.01016.98
8.1.140.0220.01417.19
8.1.130.0390.00917.01
8.1.120.0320.00717.29
8.1.110.0280.00817.19
8.1.100.0300.00717.23
8.1.90.0290.00717.46
8.1.80.0220.01517.22
8.1.70.0270.01816.98
8.1.60.0330.00717.21
8.1.50.0260.01317.25
8.1.40.0220.01017.18
8.1.30.0240.00817.47
8.1.20.0230.01017.45
8.1.10.0210.00317.24
8.1.00.0230.00717.17

preferences:
35.76 ms | 403 KiB | 5 Q