3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo solve("123-123-123-123-213-123-123-123"); 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.3.120.0060.00320.62
8.3.110.0040.00720.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0090.00019.36
8.3.70.0100.00718.56
8.3.60.0080.00818.30
8.3.50.0060.00724.48
8.3.40.0160.00018.77
8.3.30.0120.00318.80
8.3.20.0080.00020.85
8.3.10.0030.00621.96
8.3.00.0040.00421.69
8.2.240.0030.00617.28
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0090.00018.88
8.2.190.0040.01116.59
8.2.180.0090.00918.54
8.2.170.0070.00722.96
8.2.160.0080.00520.39
8.2.150.0100.00024.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0000.00726.16
8.2.110.0060.00319.25
8.2.100.0120.00017.84
8.2.90.0080.00018.19
8.2.80.0090.00018.05
8.2.70.0050.00517.93
8.2.60.0050.00318.16
8.2.50.0030.00518.10
8.2.40.0040.00419.16
8.2.30.0040.00419.30
8.2.20.0000.00718.07
8.2.10.0000.00719.21
8.2.00.0040.00419.45
8.1.300.0120.00818.65
8.1.290.0060.00330.84
8.1.280.0030.01725.92
8.1.270.0040.00420.58
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0000.01417.64
8.1.230.0000.01120.91
8.1.220.0040.00417.77
8.1.210.0040.00418.83
8.1.200.0030.00617.36
8.1.190.0090.00017.35
8.1.180.0060.00318.10
8.1.170.0030.00518.59
8.1.160.0000.00718.96
8.1.150.0000.00818.64
8.1.140.0030.00520.79
8.1.130.0000.00720.28
8.1.120.0000.00717.43
8.1.110.0000.00817.46
8.1.100.0040.00417.48
8.1.90.0030.00517.34
8.1.80.0030.00517.45
8.1.70.0050.00317.49
8.1.60.0030.00917.54
8.1.50.0030.00617.56
8.1.40.0060.00317.43
8.1.30.0050.00317.59
8.1.20.0030.00617.61
8.1.10.0080.00017.53
8.1.00.0050.00317.50
8.0.300.0070.00019.65
8.0.290.0040.00416.75
8.0.280.0080.00018.55
8.0.270.0000.00818.01
8.0.260.0030.00320.01
8.0.250.0000.00817.04
8.0.240.0030.00617.12
8.0.230.0030.00317.09
8.0.220.0030.00316.92
8.0.210.0000.00716.96
8.0.200.0030.00316.93
8.0.190.0000.00716.94
8.0.180.0060.00317.02
8.0.170.0060.00316.97
8.0.160.0040.00417.04
8.0.150.0000.00716.93
8.0.140.0040.00416.98
8.0.130.0000.00513.41
8.0.120.0080.00016.93
8.0.110.0000.00816.87
8.0.100.0000.00716.85
8.0.90.0030.00616.79
8.0.80.0050.01016.90
8.0.70.0070.00017.04
8.0.60.0050.00316.80
8.0.50.0080.00016.97
8.0.30.0080.00816.85
8.0.20.0000.01917.11
8.0.10.0000.00816.91
8.0.00.0110.00716.86
7.4.330.0000.00516.77
7.4.320.0030.00316.62
7.4.300.0060.00016.62
7.4.290.0030.00516.47
7.4.280.0070.00416.55
7.4.270.0000.00716.53
7.4.260.0030.00313.30
7.4.250.0030.00316.57
7.4.240.0030.00516.43
7.4.230.0000.00716.73
7.4.220.0030.00316.54
7.4.210.0070.00916.60
7.4.200.0000.00616.34
7.4.130.0140.00316.57
7.4.120.0130.01016.66
7.4.110.0060.01216.58
7.4.100.0110.00716.68
7.4.90.0080.00816.72
7.4.80.0110.00519.39
7.4.70.0140.00316.57
7.4.60.0140.00716.53
7.4.50.0120.00316.40
7.4.40.0000.01716.59
7.4.10.0050.00914.78
7.4.00.0140.00014.92
7.3.330.0070.00016.28
7.3.320.0030.00313.38
7.3.310.0000.00716.42
7.3.300.0030.00316.23
7.3.290.0130.00416.36
7.3.280.0100.01016.25
7.3.260.0070.01716.48
7.3.240.0090.00916.45
7.3.230.0100.00716.51
7.3.210.0100.00716.34
7.3.200.0060.01016.52
7.3.190.0030.01316.30
7.3.180.0120.01216.38
7.3.170.0070.01316.57
7.3.160.0070.01416.59
7.3.130.0050.01114.66
7.3.120.0040.00914.36
7.3.110.0080.01014.50
7.3.100.0090.00614.62
7.3.90.0050.01014.88
7.3.80.0080.00814.64
7.3.70.0070.01014.60
7.3.60.0030.01314.68
7.3.50.0030.01114.58
7.3.40.0030.00914.44
7.3.30.0080.00514.80
7.3.20.0140.00014.73
7.3.10.0070.00714.78
7.3.00.0040.01114.96
7.2.330.0120.00616.51
7.2.320.0090.00916.77
7.2.310.0110.00616.61
7.2.300.0170.00616.76
7.2.290.0040.01516.80
7.2.260.0080.00514.94
7.2.250.0040.01414.93
7.2.240.0150.00614.91
7.2.230.0100.01015.12
7.2.220.0060.00914.98
7.2.210.0090.00715.09
7.2.200.0070.00715.05
7.2.190.0030.01214.95
7.2.180.0090.00614.87
7.2.170.0030.01014.73
7.2.160.0140.00614.60
7.2.150.0090.00615.25
7.2.140.0090.00614.98
7.2.130.0080.00815.04
7.2.120.0000.01515.20
7.2.110.0060.01215.19
7.2.100.0120.00615.11
7.2.90.0040.01815.11
7.2.80.0100.01015.04
7.2.70.0140.00614.85
7.2.60.0070.00715.09
7.2.50.0120.00415.24
7.2.40.0030.01414.81
7.2.30.0030.01315.04
7.2.20.0070.00715.02
7.2.10.0100.00615.12
7.2.00.0270.00614.72

preferences:
28.11 ms | 403 KiB | 5 Q