3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '12d310aa04dd3af49b005'; function isValidMd5($md5 ='') { return preg_match('/^[a-f0-9]{32}$/', $md5); } echo isValidMd5($s);

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.0080.00818.55
8.3.60.0410.01225.92
8.3.50.0190.00325.92
8.3.40.0350.01325.92
8.3.30.0330.01025.92
8.3.20.0370.00725.92
8.3.10.0320.01225.92
8.3.00.0360.00725.92
8.2.190.0000.01516.63
8.2.180.0430.00325.92
8.2.170.0400.01025.92
8.2.160.0470.00325.92
8.2.150.0480.01225.92
8.2.140.0490.00025.92
8.2.130.0490.00925.92
8.2.120.0410.00725.92
8.2.110.0390.00925.92
8.2.100.0430.00425.92
8.2.90.0430.00325.92
8.2.80.0400.00725.92
8.2.70.0350.01225.92
8.2.60.0450.00325.92
8.2.50.0410.00625.92
8.2.40.0350.01125.92
8.2.30.0350.01125.92
8.2.20.0370.00725.92
8.2.10.0280.01425.92
8.2.00.0350.00725.92
8.1.280.0370.01125.92
8.1.270.0340.01025.92
8.1.260.0480.00025.92
8.1.250.0320.01325.92
8.1.240.0330.01025.92
8.1.230.0230.01225.92
8.1.220.0330.01025.92
8.1.210.0370.00625.92
8.1.200.0330.00425.92
8.1.190.0390.00425.92
8.1.180.0300.00625.92
8.1.170.0320.01025.92
8.1.160.0470.00425.92
8.1.150.0230.00725.92
8.1.140.0290.00325.92
8.1.130.0260.01125.92
8.1.120.0240.01225.92
8.1.110.0320.00425.92
8.1.100.0430.00025.92
8.1.90.0300.01025.92
8.1.80.0260.00925.92
8.1.70.0240.01225.92
8.1.60.0330.00625.92
8.1.50.0280.00525.92
8.1.40.0300.00625.92
8.1.30.0330.00025.92
8.1.20.0230.01625.92
8.1.10.0250.01725.92
8.1.00.0400.00325.92

preferences:
22.43 ms | 401 KiB | 5 Q