3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(strlen($name) < 2 || strlen($email) < 6 || strlen($subject) < 5 || strlen($message) < 15){ $alert = "There are some problems: \n"; if(strlen($name) < 2){ $alert .= "Name is too short \n"; } if(strlen($email) < 6){ $alert .= "email is too short \n"; } if(strlen($subject) < 5){ $alert .= "The subject is too short \n"; } if(strlen($message) < 15){ $alert .= "Your message is too short \n"; } $alert .= "Please fill in te fields correctly"; echo $alert; ?> <script> alert("<?= $alert ?>"); </script> <?php } else { ... } ?>

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)
5.4.40.0150.03911.97
5.4.30.0140.04211.97
5.4.20.0150.04011.97
5.4.10.0150.03911.97
5.4.00.0120.04311.46
5.3.140.0210.06012.66
5.3.130.0200.05112.66
5.3.120.0170.04812.66
5.3.110.0180.06112.66
5.3.100.0150.05012.12
5.3.90.0180.05612.08
5.3.80.0170.04812.08
5.3.70.0150.04712.08
5.3.60.0170.04712.06
5.3.50.0190.04412.00
5.3.40.0150.04912.00
5.3.30.0150.05011.95
5.3.20.0270.06611.72
5.3.10.0190.06311.68
5.3.00.0200.05211.67

preferences:
140.42 ms | 1394 KiB | 7 Q