3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['str1'] = ["a"]; $_GET['str2'] = ["b"]; $salt = "aaabdnelnFnekknfn"; if($_GET['str1'] !== $_GET['str2'] and $_GET['str1'] and $_GET['str2']) { $hash1 = hash('sha256', $salt . $_GET['str1']); $hash2 = hash('sha256', $salt . $_GET['str2']); if($hash1 === $hash2) { var_dump($_GET['str1'],$_GET['str2']); } }

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.10.0040.01217.86
8.3.140.0110.00716.75
8.3.130.0030.00516.69
8.3.120.0110.00718.87
8.3.110.0030.01320.94
8.3.100.0120.00316.79
8.3.90.0110.00426.77
8.3.80.0040.00718.81
8.3.70.0180.00416.98
8.3.60.0090.01218.43
8.3.50.0070.01118.45
8.3.40.0160.00718.80
8.3.30.0080.00818.96
8.3.20.0000.00719.41
8.3.10.0040.00421.77
8.3.00.0040.00420.52
8.2.250.0040.00416.44
8.2.240.0070.00317.26
8.2.230.0030.00622.58
8.2.220.0050.00324.06
8.2.210.0000.00926.77
8.2.200.0040.00418.29
8.2.190.0120.00616.75
8.2.180.0120.00916.50
8.2.170.0100.00522.96
8.2.160.0030.01420.52
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.01121.13
8.2.110.0090.00020.95
8.2.100.0080.00619.07
8.2.90.0150.00618.45
8.2.80.0130.00517.61
8.2.70.0170.00217.71
8.2.60.0160.00317.73
8.2.50.0130.00817.74
8.2.40.0130.00718.44
8.2.30.0200.00018.43
8.2.20.0050.00517.87
8.2.10.0150.00217.76
8.2.00.0140.00417.43
8.1.300.0040.00418.53
8.1.290.0040.00430.84
8.1.280.0100.01025.92
8.1.270.0080.00021.93
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.94
8.1.230.0080.00322.75
8.1.220.0160.00517.43
8.1.210.0150.00518.13
8.1.200.0130.00617.30
8.1.190.0140.00717.22
8.1.180.0140.00617.55
8.1.170.0110.00717.91
8.1.160.0150.00218.02
8.1.150.0120.00518.03
8.1.140.0120.00619.62
8.1.130.0130.00518.18
8.1.120.0110.00617.32
8.1.110.0100.00817.41
8.1.100.0110.00617.34
8.1.90.0100.00917.29
8.1.80.0140.00417.35
8.1.70.0110.00717.29
8.1.60.0110.00717.41
8.1.50.0120.00517.30
8.1.40.0150.00317.38
8.1.30.0160.00617.56
8.1.20.0120.00717.55
8.1.10.0140.00517.46
8.1.00.0140.00417.37
8.0.300.0130.00518.17
8.0.290.0130.00616.63
8.0.280.0160.00317.39
8.0.270.0150.00516.74
8.0.260.0120.00617.59
8.0.250.0140.00516.89
8.0.240.0130.00516.85
8.0.230.0140.00316.78
8.0.220.0130.00516.76
8.0.210.0140.00416.81
8.0.200.0110.00616.90
8.0.190.0130.00416.89
8.0.180.0130.00416.79
8.0.170.0090.00616.84
8.0.160.0130.00516.88
8.0.150.0110.00616.82
8.0.140.0150.00216.81
8.0.130.0150.00215.94
8.0.120.0120.00616.78
8.0.110.0140.00416.79
8.0.100.0130.00716.77
8.0.90.0120.00616.82
8.0.80.0130.00716.86
8.0.70.0140.00516.79
8.0.60.0130.00516.76
8.0.50.0140.00316.84
8.0.30.0140.00716.86
8.0.20.0120.01016.95
8.0.10.0180.00817.02
8.0.00.0140.01017.04
7.4.330.0080.00415.82
7.4.320.0120.00416.27
7.4.300.0080.00416.44
7.4.290.0110.00516.35
7.4.280.0130.00316.46
7.4.270.0170.00316.41
7.4.260.0180.00216.37
7.4.250.0140.00716.41
7.4.240.0160.00516.45
7.4.230.0150.00416.38
7.4.220.0150.00416.33
7.4.210.0110.00716.49
7.4.200.0150.00316.28
7.4.190.0170.00516.42
7.4.180.0210.00316.45
7.4.160.0130.00916.49
7.4.150.0130.00916.41
7.4.140.0140.00817.03
7.4.130.0160.00716.42
7.4.120.0140.00716.46
7.4.110.0150.00616.42
7.4.100.0130.00916.52
7.4.90.0150.00716.44
7.4.80.0130.00716.62
7.4.70.0130.00916.43
7.4.60.0120.01016.43
7.4.50.0140.00816.41
7.4.40.0150.00716.38
7.4.30.0130.00716.77
7.4.20.0130.01016.49
7.4.10.0160.00716.38
7.4.00.0130.00716.31
7.3.330.0160.00415.47
7.3.320.0120.00615.50
7.3.310.0120.00616.30
7.3.300.0170.00116.22
7.3.290.0110.00816.32
7.3.280.0130.00816.33
7.3.270.0130.00816.28
7.3.260.0140.00816.38
7.3.250.0180.00516.37
7.3.240.0150.00716.41
7.3.230.0180.00516.34
7.3.220.0170.00716.34
7.3.210.0170.00716.29
7.3.200.0150.00716.28
7.3.190.0160.00716.33
7.3.180.0160.00716.35
7.3.170.0140.00916.38
7.3.160.0140.00916.39
7.3.150.0170.00616.33
7.3.140.0160.00816.38
7.3.130.0160.00616.35
7.3.120.0130.00916.36
7.3.110.0140.00816.36
7.3.100.0140.00716.22
7.3.90.0150.00716.34
7.3.80.0120.00916.22
7.3.70.0110.01016.18
7.3.60.0150.00616.25
7.3.50.0140.00816.24
7.3.40.0130.00816.19
7.3.30.0130.00716.23
7.3.20.0130.00916.77
7.3.10.0170.00816.67
7.3.00.0160.00716.65
7.2.340.0180.00816.47
7.2.330.0180.00716.43
7.2.320.0190.00716.51
7.2.310.0180.00816.49
7.2.300.0160.00816.47
7.2.290.0180.00816.46
7.2.280.0190.00916.47
7.2.270.0160.00916.52
7.2.260.0170.00816.54
7.2.250.0170.00916.52
7.2.240.0140.01116.50
7.2.230.0170.00816.37
7.2.220.0170.00916.34
7.2.210.0170.00716.31
7.2.200.0180.00816.39
7.2.190.0170.00716.43
7.2.180.0180.00916.42
7.2.170.0170.00816.39
7.2.160.0180.00716.44
7.2.150.0170.01016.95
7.2.140.0230.00916.93
7.2.130.0190.00916.92
7.2.120.0180.00816.97
7.2.110.0160.00816.77
7.2.100.0170.00916.79
7.2.90.0180.00716.71
7.2.80.0180.00916.79
7.2.70.0160.00916.74
7.2.60.0190.00816.76
7.2.50.0200.00716.83
7.2.40.0190.00916.80
7.2.30.0200.01016.79
7.2.20.0180.00716.74
7.2.10.0210.00716.80
7.2.00.0180.00616.79
7.1.330.0200.01016.10
7.1.320.0180.00915.88
7.1.310.0220.00715.94
7.1.300.0190.00815.86
7.1.290.0200.00815.91
7.1.280.0190.00715.90
7.1.270.0190.00815.86
7.1.260.0210.00515.82
7.1.250.0190.01015.82
7.1.240.0170.00815.79
7.1.230.0220.00715.71
7.1.220.0160.01115.66
7.1.210.0210.00715.62
7.1.200.0240.00715.67
7.1.190.0190.00815.65
7.1.180.0200.00615.66
7.1.170.0170.01115.63
7.1.160.0190.00815.68
7.1.150.0170.00815.65
7.1.140.0200.00715.63
7.1.130.0190.00715.64
7.1.120.0190.00715.66
7.1.110.0210.00715.71
7.1.100.0190.00715.66
7.1.90.0310.00615.67
7.1.80.0170.00715.69
7.1.70.0170.00915.61
7.1.60.0200.00817.03
7.1.50.0220.00716.93
7.1.40.0190.00716.98
7.1.30.0200.00716.93
7.1.20.0180.00817.00
7.1.10.0190.00615.70
7.1.00.0160.00815.63
7.0.330.0190.00515.49
7.0.320.0210.00815.50
7.0.310.0200.00815.50
7.0.300.0240.00615.46
7.0.290.0170.00915.49
7.0.280.0200.00815.31
7.0.270.0210.00615.51
7.0.260.0180.00715.49
7.0.250.0180.00815.57
7.0.240.0180.00815.57
7.0.230.0170.00915.56
7.0.220.0160.00915.54
7.0.210.0190.00815.58
7.0.200.0180.00815.50
7.0.190.0190.00715.53
7.0.180.0210.00915.55
7.0.170.0190.00615.53
7.0.160.0190.00615.46
7.0.150.0200.00515.49
7.0.140.0190.00815.46
7.0.130.0170.00815.56
7.0.120.0230.00915.59
7.0.110.0190.00615.54
7.0.100.0200.00415.46
7.0.90.0170.00915.46
7.0.80.0180.00615.47
7.0.70.0180.00715.50
7.0.60.0210.00715.49
7.0.50.0180.00715.48
7.0.40.0190.00615.53
7.0.30.0170.00715.43
7.0.20.0190.00715.52
7.0.10.0210.00715.47
7.0.00.0270.00715.43
5.6.400.0170.00815.82
5.6.390.0160.00915.75
5.6.380.0150.00915.58
5.6.370.0210.00915.81
5.6.360.0200.00915.78
5.6.350.0190.00715.81
5.6.340.0170.01015.84
5.6.330.0160.00915.79
5.6.320.0200.00815.84
5.6.310.0160.01115.82
5.6.300.0170.00915.82
5.6.290.0150.01115.79
5.6.280.0160.00915.80
5.6.270.0170.00815.81
5.6.260.0170.00915.81
5.6.250.0170.00815.78
5.6.240.0190.00615.81
5.6.230.0170.00815.84
5.6.220.0160.01015.85
5.6.210.0190.00815.82
5.6.200.0160.01215.89
5.6.190.0180.00815.89
5.6.180.0180.00915.81
5.6.170.0180.00815.82
5.6.160.0190.00715.92
5.6.150.0190.00715.84
5.6.140.0180.00815.88
5.6.130.0180.00715.83
5.6.120.0160.00915.88
5.6.110.0170.00815.81
5.6.100.0170.00915.81
5.6.90.0150.01015.83
5.6.80.0160.00915.76
5.6.70.0170.00915.79
5.6.60.0170.00815.80
5.6.50.0170.00915.70
5.6.40.0180.00615.74
5.6.30.0160.01115.76
5.6.20.0180.00715.67
5.6.10.0160.00915.73
5.6.00.0180.00915.75
5.4.390.0150.00428.09
5.4.00.0120.00528.09
5.2.160.0080.00528.09
4.4.20.0040.00128.09
4.3.00.0020.00328.09

preferences:
29.5 ms | 403 KiB | 5 Q