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.2.20.0050.00518.76
8.1.130.0040.00417.43
8.1.120.0030.00517.49
8.1.110.0030.00617.37
8.1.100.0090.00017.40
8.1.90.0040.00417.44
8.1.80.0030.00517.55
8.1.70.0030.00617.44
8.1.60.0000.00817.57
8.1.50.0000.00817.56
8.1.40.0080.00017.45
8.1.30.0080.00017.54
8.1.20.0080.00017.53
8.1.10.0200.16949.39
8.1.00.0130.17349.21
8.0.260.0100.17748.63
8.0.250.0130.19048.77
8.0.240.0140.20048.67
8.0.230.0070.22048.60
8.0.220.0170.20648.60
8.0.210.0170.18348.57
8.0.200.0200.16748.57
8.0.190.0200.16848.71
8.0.180.0190.16748.71
8.0.170.0130.17548.67
8.0.160.0170.17048.57
8.0.150.0200.17848.69
8.0.140.0130.17548.56
8.0.130.0210.17548.65
8.0.120.0250.17748.60
8.0.110.0260.17749.40
8.0.100.0150.18149.42
8.0.90.0150.18048.61
8.0.80.0220.23349.48
8.0.70.0210.20649.43
8.0.60.0250.19148.66
8.0.50.0220.19449.38
8.0.30.0240.20549.48
8.0.20.0250.18748.67
8.0.10.0220.19049.68
8.0.00.0200.19749.59
7.4.330.0270.17446.54
7.4.320.0220.17348.21
7.4.300.0340.16150.00
7.4.290.0170.19548.32
7.4.280.0260.17750.06
7.4.270.0220.17449.96
7.4.260.0360.22049.13
7.4.250.0270.17748.27
7.4.240.0310.18148.25
7.4.230.0260.20148.24
7.4.220.0270.19048.31
7.4.210.0260.19148.30
7.4.200.0290.18648.31
7.4.190.0220.18848.33
7.4.180.0250.18148.40
7.4.160.0220.18448.38
7.4.150.0200.17848.31
7.4.140.0280.17048.27
7.4.130.0230.17748.19
7.4.120.0200.17748.21
7.4.110.0250.17548.15
7.4.100.0310.16648.29
7.4.90.0310.21548.17
7.4.80.0310.24748.16
7.4.70.0390.29048.26
7.4.60.0380.24148.18
7.4.50.0320.25248.19
7.4.40.0310.26148.29
7.4.30.0360.24448.25
7.4.20.0300.23548.23
7.4.10.0290.23648.28
7.4.00.0310.23448.26
7.3.330.0100.18048.91
7.3.320.0180.18147.95
7.3.310.0250.18648.89
7.3.300.0190.18748.86
7.3.290.0240.17648.94
7.3.280.0240.17648.89
7.3.270.0300.16848.84
7.3.260.0270.18147.90
7.3.250.0210.18648.01
7.3.240.0290.19048.98
7.3.230.0200.23548.79
7.3.220.0360.21747.96
7.3.210.0260.25447.84
7.3.200.0310.24947.91
7.3.190.0300.27548.48
7.3.180.0310.26848.47
7.3.170.0280.26747.93
7.3.160.0330.26648.31
7.3.150.0260.23948.47
7.3.140.0300.25348.38
7.3.130.0310.23448.50
7.3.120.0260.24248.41
7.3.110.0300.27047.94
7.3.100.0320.25548.10
7.3.90.0280.26148.22
7.3.80.0320.25847.78
7.3.70.0290.25948.08
7.3.60.0290.25448.18
7.3.50.0320.27948.06
7.3.40.0280.26048.12
7.3.30.0380.27148.08
7.3.20.0560.25948.47
7.3.10.0420.26248.52
7.3.00.0630.29048.50
7.2.340.0350.23647.93
7.2.330.0350.23448.18
7.2.320.0330.24148.19
7.2.310.0330.27048.23
7.2.300.0380.27248.11
7.2.290.0390.26148.26
7.2.280.0320.26748.26
7.2.270.0360.27348.27
7.2.260.0330.26548.14
7.2.250.0300.25148.16
7.2.240.0320.23748.23
7.2.230.0300.22848.24
7.2.220.0380.26347.86
7.2.210.0360.26447.87
7.2.200.0330.26248.00
7.2.190.0400.26147.91
7.2.180.0320.26547.96
7.2.170.0340.26447.92
7.2.160.0320.27948.01
7.2.150.0540.27448.72
7.2.140.0650.26648.67
7.2.130.0560.26748.88
7.2.120.0560.27148.76
7.2.110.0430.28748.67
7.2.100.0510.26748.87
7.2.90.0430.26048.71
7.2.80.0440.25648.78
7.2.70.0460.26048.80
7.2.60.0460.29448.78
7.2.50.0470.28148.76
7.2.40.0380.27248.81
7.2.30.0430.26748.78
7.2.20.0610.27448.75
7.2.10.0440.29048.80
7.2.00.0480.27148.83
7.1.330.0460.23748.23
7.1.320.0490.25647.71
7.1.310.0440.27447.73
7.1.300.0770.32247.78
7.1.290.0520.29047.75
7.1.280.0500.26747.73
7.1.270.0440.26347.74
7.1.260.0600.25147.76
7.1.250.0430.29747.76
7.1.240.0530.28547.73
7.1.230.0570.28047.74
7.1.220.0490.29847.66
7.1.210.0500.26147.75
7.1.200.0500.26447.71
7.1.190.0530.26447.64
7.1.180.0470.26947.68
7.1.170.0550.27747.81
7.1.160.0440.29647.64
7.1.150.0560.29447.64
7.1.140.0480.26847.68
7.1.130.0470.28247.63
7.1.120.0550.26647.59
7.1.110.0550.26647.62
7.1.100.0410.28647.73
7.1.90.0460.27047.63
7.1.80.0440.26047.73
7.1.70.0580.30447.70
7.1.60.0400.26447.70
7.1.50.0470.27547.71
7.1.40.0420.26647.74
7.1.30.0450.25847.63
7.1.20.0400.27447.61
7.1.10.0610.25747.66
7.1.00.0520.26447.67
7.0.330.0440.27947.48
7.0.320.0450.26247.44
7.0.310.0570.30647.38
7.0.300.0500.27947.48
7.0.290.0500.28847.41
7.0.280.0480.30547.50
7.0.270.0490.26847.44
7.0.260.0530.28547.42
7.0.250.0550.26947.50
7.0.240.0520.30647.45
7.0.230.0490.27647.44
7.0.220.0540.25747.42
7.0.210.0460.28247.51
7.0.200.0590.27247.58
7.0.190.0460.28447.56
7.0.180.0410.26347.42
7.0.170.0460.25647.52
7.0.160.0400.26147.45
7.0.150.0540.26847.46
7.0.140.0510.24947.48
7.0.130.0450.32347.50
7.0.120.0470.26847.44
7.0.110.0460.29547.40
7.0.100.0380.28247.30
7.0.90.0440.29347.38
7.0.80.0480.32347.44
7.0.70.0490.30147.49
7.0.60.0470.28147.44
7.0.50.0450.27847.35
7.0.40.0760.31147.51
7.0.30.0470.32447.43
7.0.20.0500.27147.41
7.0.10.3080.29847.10
7.0.00.3060.30847.12
5.6.400.0340.28647.37
5.6.390.0310.26247.43
5.6.380.0340.25847.45
5.6.370.0330.28647.38
5.6.360.0370.27547.32
5.6.350.0370.25847.42
5.6.340.0370.28147.43
5.6.330.0330.28347.40
5.6.320.0390.25947.39
5.6.310.0370.26147.31
5.6.300.0340.26647.36
5.6.290.0380.25847.37
5.6.280.0410.29147.39
5.6.270.0400.27847.48
5.6.260.0470.28447.40
5.6.250.0370.30247.44
5.6.240.0350.31347.36
5.6.230.0390.32347.28
5.6.220.0370.27347.42
5.6.210.0360.28347.39
5.6.200.0380.26147.48
5.6.190.0410.28147.45
5.6.180.0340.26847.41
5.6.170.0330.29347.38
5.6.160.0410.31847.14
5.6.150.0450.30047.15
5.6.140.0360.27847.13
5.6.130.0480.28147.14
5.6.120.0360.27347.13
5.6.110.0330.28147.07
5.6.100.0470.29347.03
5.6.90.0340.27347.18
5.6.80.0380.29347.05
5.6.70.0350.32047.11
5.6.60.0340.26647.12
5.6.50.0370.25447.12
5.6.40.0380.26647.16
5.6.30.0340.26947.07
5.6.20.0320.28147.12
5.6.10.0340.27247.17
5.6.00.0370.26847.08
5.5.380.0350.29447.32
5.5.370.0350.29647.31
5.5.360.0410.25047.29
5.5.350.0380.26347.25
5.5.340.0600.31347.36
5.5.330.0370.27447.32
5.5.320.0430.32447.31
5.5.310.0410.29347.31
5.5.300.0330.26846.41
5.5.290.0360.27546.52
5.5.280.0360.28846.63
5.5.270.0370.27146.52
5.5.260.0350.27246.53
5.5.250.0360.28446.61
5.5.240.0340.26646.44
5.5.230.0330.28746.48
5.5.220.0300.25846.53
5.5.210.0330.28246.51
5.5.200.0330.27146.38
5.5.190.0360.25946.50
5.5.180.0390.25746.54
5.5.170.0360.28747.05
5.5.160.0350.25646.47
5.5.150.0360.26146.39
5.5.140.0360.26746.47
5.5.130.0330.26546.49
5.5.120.0450.27746.42
5.5.110.0380.28146.45
5.5.100.0290.26946.52
5.5.90.0330.26746.41
5.5.80.0320.29146.53
5.5.70.0350.26846.49
5.5.60.0350.26346.42
5.5.50.0320.26846.54
5.5.40.0320.27346.61
5.5.30.0350.28746.42
5.5.20.0330.27946.45
5.5.10.0360.28346.49
5.5.00.0390.27346.39

preferences:
41.3 ms | 401 KiB | 5 Q