3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Fill in all five below and click blue 'eval();' button below textarea. * * ------------------ */ $hash = ''; #Hash SHA256 $secret = ''; #Secret $minefield = ''; #Mminefield /* ------------------ */ if ($hash == '' || $secret == '' || $minefield == '') exit("Fill in details"); $sha256 = hash('sha256', $minefield.'|'.$secret); echo "Hash matches: ".($hash == $sha256 ? 'Yes': 'No')."\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)
8.4.130.0110.00917.88
8.4.120.0110.00820.46
8.4.110.0100.01122.68
8.4.100.0110.01017.74
8.4.90.0110.00720.33
8.4.80.0100.00922.33
8.4.70.0080.00918.71
8.4.60.0230.00618.81
8.4.50.0210.00617.58
8.4.40.0280.00818.53
8.4.30.0250.01018.88
8.4.20.0290.00517.94
8.4.10.0250.00917.66
8.3.260.0110.00916.72
8.3.250.0090.00819.13
8.3.240.0060.00216.98
8.3.230.0100.00916.86
8.3.220.0100.00919.05
8.3.210.0130.00716.80
8.3.200.0180.00916.47
8.3.190.0210.01016.53
8.3.180.0210.00516.53
8.3.170.0250.00816.51
8.3.160.0200.00717.43
8.3.150.0240.01216.80
8.3.140.0160.00616.70
8.3.130.0140.01216.57
8.3.120.0220.00517.71
8.3.110.0180.00918.76
8.3.100.0250.00720.17
8.3.90.0200.00421.59
8.3.80.0210.00418.08
8.3.70.0170.00516.48
8.3.60.0170.00517.55
8.3.50.0190.00616.49
8.3.40.0260.01017.97
8.3.30.0200.00817.94
8.3.20.0160.00720.71
8.3.10.0170.00321.09
8.3.00.0080.00921.77
8.2.290.0110.00817.32
8.2.280.0180.00617.42
8.2.270.0170.01116.93
8.2.260.0220.00717.68
8.2.250.0180.00617.70
8.2.240.0200.00316.82
8.2.230.0200.01019.48
8.2.220.0180.00627.12
8.2.210.0210.00721.68
8.2.200.0170.00717.78
8.2.190.0200.00517.10
8.2.180.0220.00821.09
8.2.170.0220.01018.28
8.2.160.0150.00920.42
8.2.150.0240.00321.57
8.2.140.0180.00921.07
8.2.130.0220.00421.84
8.2.120.0200.00519.11
8.2.110.0200.00318.86
8.2.100.0180.00617.58
8.2.90.0140.00618.35
8.2.80.0210.00317.80
8.2.70.0180.00717.48
8.2.60.0160.00817.60
8.2.50.0200.00517.77
8.2.40.0150.00819.27
8.2.30.0200.00718.34
8.2.20.0180.00517.75
8.2.10.0160.00918.31
8.2.00.0180.00718.33
8.1.330.0030.00522.09
8.1.320.0200.00916.01
8.1.310.0200.00916.33
8.1.300.0200.00818.17
8.1.290.0170.00723.49
8.1.280.0220.00721.04
8.1.270.0150.00920.63
8.1.260.0150.00721.85
8.1.250.0150.00822.70
8.1.240.0190.00519.72
8.1.230.0150.00819.77
8.1.220.0120.00817.57
8.1.210.0150.00817.98
8.1.200.0110.00917.21
8.1.190.0120.00617.12
8.1.180.0210.00517.63
8.1.170.0190.00417.67
8.1.160.0170.00717.94
8.1.150.0150.00718.02
8.1.140.0150.00418.02
8.1.130.0170.00517.23
8.1.120.0160.00817.35
8.1.110.0140.00517.28
8.1.100.0160.00717.39
8.1.90.0160.00517.42
8.1.80.0170.00517.40
8.1.70.0110.00517.26
8.1.60.0160.00517.49
8.1.50.0180.00417.32
8.1.40.0200.00417.33
8.1.30.0080.00717.52
8.1.20.0160.00817.56
8.1.10.0160.00717.42
8.1.00.0140.00917.42
8.0.300.0130.01117.71
8.0.290.0160.00616.65
8.0.280.0140.00817.46
8.0.270.0170.00516.75
8.0.260.0160.00516.82
8.0.250.0140.00716.80
8.0.240.0160.00616.88
8.0.230.0160.00516.88
8.0.220.0130.00916.86
8.0.210.0150.00816.74
8.0.200.0200.00516.66
8.0.190.0180.00616.95
8.0.180.0160.00616.96
8.0.170.0220.00616.77
8.0.160.0150.00516.88
8.0.150.0120.00316.81
8.0.140.0120.00416.85
8.0.130.0170.00615.68
8.0.120.0160.00516.75
8.0.110.0160.00616.65
8.0.100.0170.00516.82
8.0.90.0180.00516.84
8.0.80.0140.00816.79
8.0.70.0140.00816.77
8.0.60.0150.00716.76
8.0.50.0160.00616.70
8.0.30.0190.01016.78
8.0.20.0190.00616.91
8.0.10.0180.00816.95
8.0.00.0170.00616.97
7.4.330.0140.00515.90
7.4.320.0190.00416.48
7.4.300.0140.00816.49
7.4.290.0140.00716.28
7.4.280.0090.00816.34
7.4.270.0180.00516.43
7.4.260.0180.00415.27
7.4.250.0180.00416.41
7.4.240.0170.00616.37
7.4.230.0160.00516.37
7.4.220.0120.00516.40
7.4.210.0150.00616.50
7.4.200.0130.00816.44
7.4.190.0200.00616.51
7.4.180.0180.01016.42
7.4.160.0200.00616.39
7.4.150.0170.00816.36
7.4.140.0130.00916.27
7.4.130.0170.00616.37
7.4.120.0120.00816.29
7.4.110.0150.00516.37
7.4.100.0150.00716.39
7.4.90.0150.00816.30
7.4.80.0160.00616.30
7.4.70.0160.00716.33
7.4.60.0170.00616.37
7.4.50.0140.00816.27
7.4.40.0140.00916.36
7.4.30.0140.00816.31
7.4.20.0150.00916.40
7.4.10.0210.00516.35
7.4.00.0130.01016.34
7.3.330.0150.00616.13
7.3.320.0170.00315.14
7.3.310.0150.00516.09
7.3.300.0140.00616.19
7.3.290.0130.00916.23
7.3.280.0180.00816.23
7.3.270.0180.00816.11
7.3.260.0160.00716.18
7.3.250.0170.00816.13
7.3.240.0160.00816.21
7.3.230.0170.00616.17
7.3.220.0160.00616.17
7.3.210.0130.01016.19
7.3.200.0160.00516.14
7.3.190.0140.00416.13
7.3.180.0140.00416.07
7.3.170.0140.00516.19
7.3.160.0180.00516.17
7.3.150.0170.00616.12
7.3.140.0160.00716.08
7.3.130.0130.00816.11
7.3.120.0120.00616.15
7.3.110.0120.00916.14
7.3.100.0150.00816.05
7.3.90.0140.00616.31
7.3.80.0160.00516.11
7.3.70.0160.00816.22
7.3.60.0170.00516.31
7.3.50.0120.01016.33
7.3.40.0150.00816.28
7.3.30.0160.00616.30
7.3.20.0170.00718.08
7.3.10.0190.00418.02
7.3.00.0200.00618.06

preferences:
59.17 ms | 403 KiB | 5 Q