3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $lines = [ '100', '200.00', '300.000', '400,000', '500,00', '0600,00', ]; foreach($lines as $l){ echo preg_match( //"/^[0-9]+(\.|,[0-9]{1,2})?$/" "^[+-]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?$" , $l)."\n"; }

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.20.0370.07020.13
7.0.10.0100.05720.15
7.0.00.0030.08020.16
5.6.170.0270.07020.43
5.6.160.0130.07320.47
5.6.150.0070.04018.12
5.6.140.0070.04718.14
5.6.130.0070.08318.17
5.6.120.0030.09720.98
5.6.110.0170.07020.97
5.6.100.0070.08321.00
5.6.90.0100.05721.09
5.6.80.0130.06320.32
5.5.310.0270.06720.37
5.5.300.0100.07018.07
5.5.290.0100.06717.98
5.5.280.0100.06020.80
5.5.270.0070.07720.78
5.5.260.0030.06320.75
5.5.250.0030.09020.64
5.5.240.0030.06720.18

preferences:
140.13 ms | 1394 KiB | 7 Q