3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m1 = str_repeat("\x80", 32); $m2 = str_repeat("\x80", 33554432); $end1 = $end2 = $start = microtime(true); $hash1 = hash('sha256', $m1); $end1 = microtime(true); $hash2 = hash('sha256', $m2); $end2 = microtime(true); var_dump( number_format($end1 - $start, 5), number_format($end2 - $start, 5) );

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.10.0450.04448.44
8.5.00.0320.04249.27
8.4.160.0330.03553.16
8.4.150.0300.02852.32
8.4.140.0290.03150.41
8.4.130.0320.02949.40
8.4.120.0330.04450.52
8.4.110.0310.02950.39
8.4.100.0360.02850.39
8.4.90.0320.02650.52
8.4.80.0280.02650.50
8.4.70.0490.03150.41
8.4.60.0420.04650.41
8.4.50.0390.03750.49
8.4.40.0440.02950.50
8.4.30.0460.04050.25
8.4.20.0580.03149.37
8.4.10.0380.04450.44
8.3.290.0420.13951.03
8.3.280.0380.13851.87
8.3.270.0310.16750.42
8.3.260.0480.17050.38
8.3.250.0440.18350.26
8.3.240.0310.15848.53
8.3.230.0310.15849.61
8.3.220.0310.17149.45
8.3.210.0330.17150.24
8.3.200.0270.17050.34
8.3.190.0370.15649.42
8.3.180.0260.15750.32
8.3.170.0310.16749.37
8.3.160.0320.16749.41
8.3.150.0450.16649.38
8.3.140.0260.17149.54
8.3.130.0380.19449.41
8.3.120.0270.16050.44
8.3.110.0370.19950.53
8.3.100.0440.19549.44
8.3.90.0500.16350.38
8.3.80.0370.18850.37
8.3.70.0350.16250.32
8.3.60.0270.15849.39
8.3.50.0320.16549.52
8.3.40.0190.00518.77
8.3.30.0110.00418.71
8.3.20.0110.00518.74
8.3.10.0150.00417.72
8.3.00.0100.00518.79
8.2.300.0390.12649.72
8.2.290.0360.17850.05
8.2.280.0390.16349.41
8.2.270.0500.16748.48
8.2.260.0380.21548.46
8.2.250.0420.17948.58
8.2.240.0250.16048.50
8.2.230.0300.15649.13
8.2.220.0370.17449.12
8.2.210.0310.15449.20
8.2.200.0240.16150.29
8.2.190.0320.15850.13
8.2.180.0270.15250.19
8.2.170.0120.00519.69
8.2.160.0140.00719.64
8.2.150.0170.00618.58
8.2.140.0260.00517.74
8.2.130.0250.00617.68
8.2.120.0240.00717.80
8.2.110.0260.01118.58
8.2.100.0200.00717.85
8.2.90.0210.01117.74
8.2.80.0290.01117.51
8.2.70.0260.01217.64
8.2.60.0300.01117.63
8.2.50.0330.00917.58
8.2.40.0320.00817.60
8.2.30.0330.01117.54
8.2.20.0220.00718.18
8.2.10.0350.00917.42
8.2.00.0340.00917.64
8.1.340.0590.17453.49
8.1.330.0300.24648.81
8.1.320.0250.16748.98
8.1.310.0360.18548.88
8.1.300.0320.18048.92
8.1.290.0360.21748.96
8.1.280.0260.15648.94
8.1.270.0180.00418.43
8.1.260.0210.00518.43
8.1.250.0230.00818.31
8.1.240.0260.00618.31
8.1.230.0200.00417.51
8.1.220.0240.00917.43
8.1.210.0230.00617.35
8.1.200.0240.00917.39
8.1.190.0250.00917.20
8.1.180.0260.00717.15
8.1.170.0220.01017.42
8.1.160.0240.00617.49
8.1.150.0200.00717.54
8.1.140.0300.00818.33
8.1.130.0180.00617.35
8.1.120.0170.00717.46
8.1.110.0180.00717.47
8.1.100.0180.00517.44
8.1.90.0170.00617.46
8.1.80.0160.00717.49
8.1.70.0180.00617.60
8.1.60.0170.00917.64
8.1.50.0180.00917.50
8.1.40.0210.00518.21
8.1.30.0230.00517.60
8.1.20.0210.00517.66
8.1.10.0490.17749.45
8.1.00.0330.20750.00
8.0.300.0390.19349.49
8.0.290.0270.17549.55
8.0.280.0350.17749.53
8.0.270.0350.18949.51
8.0.260.0300.22149.34
8.0.250.0250.18049.39
8.0.240.0340.18549.36
8.0.230.0200.17749.32
8.0.220.0250.18149.25
8.0.210.0320.20749.15
8.0.200.0380.18949.28
8.0.190.0320.18149.41
8.0.180.0260.16449.40
8.0.170.0230.19049.28
8.0.160.0360.17249.39
8.0.150.0280.17149.36
8.0.140.0280.19149.17
8.0.130.0270.18049.12
8.0.120.0360.18249.03
8.0.110.0250.16649.51
8.0.100.0250.18449.52
8.0.90.0270.17949.15
8.0.80.0270.20949.52
8.0.70.0260.19649.59
8.0.60.0230.17849.18
8.0.50.0230.17449.52
8.0.30.0230.18249.57
8.0.20.0270.17449.24
8.0.10.0280.18849.74
8.0.00.0280.18249.74
7.4.330.0310.17348.45
7.4.320.0290.16748.99
7.4.300.0320.15749.54
7.4.290.0260.16749.06
7.4.280.0320.17349.47
7.4.270.0260.16649.63
7.4.260.0390.22749.63
7.4.250.0290.17349.22
7.4.240.0330.17548.76
7.4.230.0290.19648.80
7.4.220.0260.17448.83
7.4.210.0250.17648.83
7.4.200.0270.17348.87
7.4.190.0310.17948.87
7.4.180.0310.18948.95
7.4.160.0300.18648.82
7.4.150.0330.20548.77
7.4.140.0320.17148.72
7.4.130.0340.17148.68
7.4.120.0220.17148.72
7.4.110.0320.18448.59
7.4.100.0300.16148.78
7.4.90.0310.19448.62
7.4.80.0310.21748.51
7.4.70.0360.24748.52
7.4.60.0320.21548.49
7.4.50.0290.22048.52
7.4.40.0330.23548.54
7.4.30.0370.22248.53
7.4.20.0270.21048.54
7.4.10.0310.21248.53
7.4.00.0370.21548.63
7.3.330.0190.18048.95
7.3.320.0300.17648.56
7.3.310.0270.17849.05
7.3.300.0280.18948.98
7.3.290.0350.19449.04
7.3.280.0270.19448.99
7.3.270.0320.17349.31
7.3.260.0320.17948.00
7.3.250.0240.17248.55
7.3.240.0340.19149.02
7.3.230.0230.20049.00
7.3.220.0290.19348.51
7.3.210.0280.22448.36
7.3.200.0300.23348.41
7.3.190.0330.23848.64
7.3.180.0310.24348.61
7.3.170.0290.23248.26
7.3.160.0340.23948.58
7.3.150.0350.23248.66
7.3.140.0280.22548.59
7.3.130.0320.22048.72
7.3.120.0280.22848.62
7.3.110.0270.23648.59
7.3.100.0320.23148.65
7.3.90.0270.22948.57
7.3.80.0300.23248.13
7.3.70.0270.22948.43
7.3.60.0310.22948.73
7.3.50.0300.24448.67
7.3.40.0280.23548.73
7.3.30.0360.24548.62
7.3.20.0510.24448.95
7.3.10.0400.24148.97
7.3.00.0530.25648.93
7.2.340.0290.19549.01
7.2.330.0360.22548.58
7.2.320.0280.20948.62
7.2.310.0320.23648.55
7.2.300.0380.23848.50
7.2.290.0350.22748.90
7.2.280.0320.23448.86
7.2.270.0340.24948.59
7.2.260.0330.23648.53
7.2.250.0280.22048.82
7.2.240.0320.22048.89
7.2.230.0310.21248.59
7.2.220.0340.23248.29
7.2.210.0350.24348.46
7.2.200.0350.24048.38
7.2.190.0400.24848.35
7.2.180.0330.23748.34
7.2.170.0320.25348.38
7.2.160.0320.25948.44
7.2.150.0490.24249.16
7.2.140.0660.24049.17
7.2.130.0490.25249.36
7.2.120.0520.24749.24
7.2.110.0450.24949.21
7.2.100.0450.24249.29
7.2.90.0460.23449.21
7.2.80.0390.23349.21
7.2.70.0390.24549.24
7.2.60.0480.26349.22
7.2.50.0400.25149.20
7.2.40.0370.24049.25
7.2.30.0400.26249.27
7.2.20.0610.24549.21
7.2.10.0410.26049.28
7.2.00.0440.24849.30
7.1.330.0450.22148.59
7.1.320.0420.22748.17
7.1.310.0390.23948.22
7.1.300.0630.27348.18
7.1.290.0500.26148.19
7.1.280.0440.23548.20
7.1.270.0370.23148.24
7.1.260.0500.23548.21
7.1.250.0350.26748.21
7.1.240.0440.25348.14
7.1.230.0480.25748.18
7.1.220.0390.26248.16
7.1.210.0410.23048.23
7.1.200.0410.23848.17
7.1.190.0430.23848.13
7.1.180.0370.23748.14
7.1.170.0450.26048.20
7.1.160.0370.26048.10
7.1.150.0460.25848.12
7.1.140.0400.25448.14
7.1.130.0380.24448.08
7.1.120.0450.24548.08
7.1.110.0440.23248.10
7.1.100.0350.25048.19
7.1.90.0370.23748.12
7.1.80.0350.23648.20
7.1.70.0490.26848.17
7.1.60.0350.25348.17
7.1.50.0380.24648.20
7.1.40.0350.23448.19
7.1.30.0380.23548.13
7.1.20.0360.26648.11
7.1.10.0480.23148.15
7.1.00.0430.24248.15
7.0.330.0370.26447.92
7.0.320.0380.24447.87
7.0.310.0460.26747.83
7.0.300.0410.25347.92
7.0.290.0410.25847.91
7.0.280.0410.27247.91
7.0.270.0400.23747.91
7.0.260.0420.25347.90
7.0.250.0450.23748.01
7.0.240.0420.26147.95
7.0.230.0390.25047.95
7.0.220.0430.23747.96
7.0.210.0380.24748.01
7.0.200.0480.25848.00
7.0.190.0390.25848.04
7.0.180.0340.24247.90
7.0.170.0400.23648.03
7.0.160.0330.22947.93
7.0.150.0430.23547.88
7.0.140.0440.22847.99
7.0.130.0390.28648.00
7.0.120.0390.23547.92
7.0.110.0370.25347.85
7.0.100.0330.25147.84
7.0.90.0370.25847.81
7.0.80.0380.27247.94
7.0.70.0430.27347.93
7.0.60.0410.25347.96
7.0.50.0380.25647.85
7.0.40.0590.27547.98
7.0.30.0380.28147.93
7.0.20.0410.24747.86
7.0.10.2360.27247.63
7.0.00.2330.27247.62
5.6.400.0320.26047.61
5.6.390.0270.23347.64
5.6.380.0320.23247.70
5.6.370.0310.25647.59
5.6.360.0310.24047.52
5.6.350.0310.23547.66
5.6.340.0340.24747.63
5.6.330.0300.24947.64
5.6.320.0330.22847.66
5.6.310.0320.23147.54
5.6.300.0300.23647.55
5.6.290.0350.23347.61
5.6.280.0380.26247.57
5.6.270.0350.24847.70
5.6.260.0400.24847.65
5.6.250.0320.25947.67
5.6.240.0310.27347.56
5.6.230.0330.29247.58
5.6.220.0340.25847.66
5.6.210.0330.24947.68
5.6.200.0320.23147.72
5.6.190.0390.25547.71
5.6.180.0290.23747.64
5.6.170.0300.25347.66
5.6.160.0360.27747.41
5.6.150.0380.27147.45
5.6.140.0310.24847.39
5.6.130.0410.26247.43
5.6.120.0330.24547.42
5.6.110.0300.25847.35
5.6.100.0410.26847.31
5.6.90.0290.25647.43
5.6.80.0340.26347.29
5.6.70.0320.28247.41
5.6.60.0310.24547.44
5.6.50.0340.24047.43
5.6.40.0340.24447.44
5.6.30.0320.25047.39
5.6.20.0290.24947.38
5.6.10.0320.24347.43
5.6.00.0340.24947.37
5.5.380.0300.25447.64
5.5.370.0300.25647.57
5.5.360.0350.22347.52
5.5.350.0360.23847.52
5.5.340.0490.26947.57
5.5.330.0320.23947.53
5.5.320.0360.28147.54
5.5.310.0360.25547.53
5.5.300.0310.25346.80
5.5.290.0340.25246.86
5.5.280.0350.26346.98
5.5.270.0340.25146.85
5.5.260.0300.24746.95
5.5.250.0310.25347.01
5.5.240.0300.24446.86
5.5.230.0290.25846.87
5.5.220.0270.23346.93
5.5.210.0290.25146.94
5.5.200.0310.24446.77
5.5.190.0310.24146.90
5.5.180.0340.23746.90
5.5.170.0320.25747.28
5.5.160.0320.24346.85
5.5.150.0320.23546.76
5.5.140.0320.24746.82
5.5.130.0310.24246.87
5.5.120.0370.24846.79
5.5.110.0330.25346.82
5.5.100.0280.24646.91
5.5.90.0320.24846.87
5.5.80.0280.26046.95
5.5.70.0300.24446.89
5.5.60.0310.24246.86
5.5.50.0280.24346.95
5.5.40.0290.24347.01
5.5.30.0310.25646.88
5.5.20.0300.24946.91
5.5.10.0310.25346.92
5.5.00.0350.24646.79

preferences:
36.87 ms | 403 KiB | 5 Q