3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo solve("360e54168a1a32a40018329abcd98abf5af5"); function solve(string $quest):string{ $randTab=explode("-",$quest); if(count($randTab)!==8){ throw new \LogicException("not 8 randTab's (".count($randTab).")"); } foreach($randTab as $i=>$wut){ if(!is_numeric($wut)){ throw new \LogicException("randTab {$i} is not numeric! wtf?"); } } $goodSum=$randTab[0]*$randTab[0]*11+$randTab[1]*121+$randTab[2]*$randTab[1]*27+$randTab[3]*23+$randTab[4]*15+$randTab[5]*$randTab[6]*$randTab[7]*11-$randTab[3]*($randTab[5]+$randTab[4]); $goodSum%=100000000; $buf2=hash("md5",(string)$goodSum,false); return $buf2; }

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.00.0100.01022.95
8.4.150.0090.00416.92
8.4.140.0140.00617.72
8.4.130.0380.00517.30
8.4.120.0350.01018.03
8.4.110.0380.01017.91
8.4.100.0380.00818.11
8.4.90.0380.00717.92
8.4.80.0410.00717.93
8.4.70.0380.01117.77
8.4.60.0430.00717.66
8.4.50.0360.01217.97
8.4.40.0400.00717.97
8.4.30.0370.00917.81
8.4.20.0360.01117.47
8.4.10.0360.01117.81
8.3.280.0080.00416.28
8.3.270.0350.00816.64
8.3.260.0340.00916.87
8.3.250.0330.01216.88
8.3.240.0340.01016.43
8.3.230.0350.00816.61
8.3.220.0420.00516.59
8.3.210.0370.00616.55
8.3.200.0330.01116.58
8.3.190.0400.00516.75
8.3.180.0410.00216.60
8.3.170.0360.01116.52
8.3.160.0380.00716.79
8.3.150.0360.01016.56
8.3.140.0360.01016.54
8.3.130.0330.00916.48
8.3.120.0300.01216.70
8.3.110.0290.01016.59
8.3.100.0380.01116.71
8.3.90.0400.01416.48
8.3.80.0380.00816.41
8.3.70.0400.00816.32
8.3.60.0370.01016.83
8.3.50.0370.00816.64
8.3.40.0360.00817.49
8.3.30.0310.00517.61
8.3.20.0280.00917.36
8.3.10.0300.00717.45
8.3.00.0250.00517.56
8.2.290.0330.00616.70
8.2.280.0290.00816.74
8.2.270.0330.00916.91
8.2.260.0310.00716.52
8.2.250.0320.00716.52
8.2.240.0310.00816.34
8.2.230.0330.00816.82
8.2.220.0310.00716.38
8.2.210.0380.00516.52
8.2.200.0300.01016.50
8.2.190.0310.00816.42
8.2.180.0390.00516.71
8.2.170.0310.00917.52
8.2.160.0290.00917.53
8.2.150.0300.00817.54
8.2.140.0310.00717.57
8.2.130.0310.00917.37
8.2.120.0320.00717.55
8.2.110.0310.01117.45
8.2.100.0310.00717.43
8.2.90.0310.00717.32
8.2.80.0280.01017.67
8.2.70.0290.00917.45
8.2.60.0320.00617.46
8.2.50.0350.00917.35
8.2.40.0310.01317.42
8.2.30.0300.00817.11
8.2.20.0310.00717.08
8.2.10.0300.00717.21
8.2.00.0380.00617.27

preferences:
28.45 ms | 403 KiB | 5 Q