3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/Zend_Validate::is\(([^,]+),\s*[\'"]([A-Za-z0-9]+)[\'"]\)/', '(new \Zend\Validator\' . '\2())->isValid(\1)', 'if (Zend_Validate::is($_nEmail, \'EmailAddress\')) {');

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)
7.0.00.0070.04020.07
5.6.160.0000.05720.54
5.6.150.0070.06718.25
5.6.140.0070.08018.28
5.6.130.0200.04718.16
5.6.120.0030.04020.99
5.6.110.0070.04021.13
5.6.100.0070.06020.98
5.6.90.0100.05720.97
5.6.80.0170.07320.41
5.5.300.0070.08717.96
5.5.290.0070.08018.02
5.5.280.0070.06020.73
5.5.270.0100.08020.66
5.5.260.0130.07720.79
5.5.250.0170.07720.49
5.5.240.0370.05720.35

preferences:
136.52 ms | 1386 KiB | 7 Q