3v4l.org

run code in 300+ PHP versions simultaneously
<?php for( $K = 'Key', $_ = range($i = $j = 0, $n = 255); $i <= $n; $j += $_[$i] + ord($K{$i % strlen($K)}), _($_[ $j &= $n ], $_[ $i++ ]) ); for($j = 0, $i = 1;; $j += $_[ $i &= $n ], _($_[ $j &= $n ], $_[$i]), printf('%x', $_[ ( $_[ $i++ ] + $_[$j] ) & $n ]) ); function _(&$i, &$j){ $x = $i; $i = $j; $j = $x; }

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.60.0100.00518.02
8.3.50.0100.01021.09
8.3.40.0120.01218.90
8.3.30.0150.00619.06
8.3.20.0070.00020.39
8.3.10.0000.00821.73
8.3.00.0090.00317.50
8.2.180.0000.01416.63
8.2.170.0100.00322.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00022.18
8.2.110.0000.00921.99
8.2.100.0040.00817.63
8.2.90.0040.00419.13
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0000.00917.80
8.2.50.0030.00618.07
8.2.40.0040.00419.70
8.2.30.0040.00418.00
8.2.20.0000.00717.56
8.2.10.0040.00417.94
8.2.00.0000.00917.53
8.1.280.0120.00625.92
8.1.270.0050.00323.82
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00623.98
8.1.230.0090.00319.01
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0050.00516.88
8.1.190.0050.00316.98
8.1.180.0000.00718.10
8.1.170.0080.00018.59
8.1.160.0040.00421.95
8.1.150.0040.00418.75
8.1.140.0080.00017.19
8.1.130.0040.00417.76
8.1.120.0040.00417.22
8.1.110.0040.00417.32
8.1.100.0030.00317.37
8.1.90.0040.00417.23
8.1.80.0000.00717.17
8.1.70.0000.00717.30
8.1.60.0080.00017.43
8.1.50.0080.00017.34
8.1.40.0070.00017.39
8.1.30.0040.00417.51
8.1.20.0050.00317.39
8.1.10.0000.00717.33
8.1.00.0050.00317.30
8.0.300.0050.00218.77
8.0.290.0000.00816.63
8.0.280.0030.00318.34
8.0.270.0030.00317.02
8.0.260.0080.00017.12
8.0.250.0030.00316.77
8.0.240.0040.00416.84
8.0.230.0040.00416.85
8.0.220.0090.00016.66
8.0.210.0070.00016.73
8.0.200.0030.00316.83
8.0.190.0040.00416.71
8.0.180.0040.00416.74
8.0.170.0050.00316.71
8.0.160.0070.00016.66
8.0.150.0000.00716.73
8.0.140.0040.00416.67
8.0.130.0030.00313.25
8.0.120.0040.00416.77
8.0.110.0070.00016.79
8.0.100.0070.00016.79
8.0.90.0030.00516.88
8.0.80.0060.01016.74
8.0.70.0030.00516.66
8.0.60.0040.00416.89
8.0.50.0040.00416.81
8.0.30.0120.01016.96
8.0.20.0110.00917.40
8.0.10.0000.00816.80
8.0.00.0090.00816.52
7.4.330.0100.01715.00
7.4.320.0130.01316.40
7.4.300.0150.00616.38
7.4.290.0100.01316.30
7.4.280.0190.01916.49
7.4.270.0110.01116.49
7.4.260.0040.02116.36
7.4.250.0150.01116.45
7.4.240.0070.02016.38
7.4.230.0100.01016.59
7.4.220.0350.08316.47
7.4.210.0290.05216.54
7.4.200.0140.00716.41
7.4.160.0560.05916.39
7.4.150.0880.06817.40
7.4.140.0880.05517.86
7.4.130.0740.06416.39
7.4.120.0760.05716.51
7.4.110.0830.07716.48
7.4.100.0700.07616.43
7.4.90.0680.05416.57
7.4.80.0520.06519.39
7.4.70.0250.05416.51
7.4.60.0440.05116.46
7.4.50.0140.00416.49
7.4.40.0610.04416.61
7.4.30.0450.07016.53
7.3.330.0110.01413.26
7.3.320.0140.01013.28
7.3.310.0170.00716.18
7.3.300.0190.00916.18
7.3.290.0430.03316.38
7.3.280.0340.06716.34
7.3.270.0680.04917.40
7.3.260.0780.05316.33
7.3.250.0670.06716.40
7.3.240.0880.08616.32
7.3.230.1000.08016.39
7.3.210.0850.05316.27
7.3.200.0490.06819.39
7.3.190.0520.04816.42
7.3.180.0420.05316.12
7.3.170.0320.06816.27
7.3.160.0470.07616.58
7.2.330.0730.05716.39
7.2.320.0550.05216.69
7.2.310.0630.06616.73
7.2.300.0490.05616.76
7.2.290.0570.06316.40
5.6.20.0530.05020.46
5.6.10.0400.05320.46
5.6.00.0400.05320.36
5.5.180.0300.06320.13
5.5.160.0370.05720.19
5.5.150.0330.04720.29
5.5.140.0470.06020.21
5.5.130.0430.05720.21
5.5.120.0470.05320.13
5.5.110.0430.06320.29
5.5.100.0470.05720.20
5.5.90.0270.05720.07
5.5.80.0430.05320.17
5.5.70.0400.05719.97
5.5.60.0470.04720.00
5.5.50.0500.04320.16
5.5.40.0400.05720.15
5.5.30.0530.05020.21
5.5.20.0600.04320.15
5.5.10.0500.05020.09
5.5.00.0600.06020.17
5.4.340.0330.06019.19
5.4.320.0230.06019.20
5.4.310.0070.06019.11
5.4.300.0400.05019.04
5.4.290.0400.06018.87
5.4.280.0470.05719.20
5.4.270.0470.05319.11
5.4.260.0400.05019.11
5.4.250.0300.06719.26
5.4.240.0400.05719.23
5.4.230.0370.05319.23
5.4.220.0270.06319.24
5.4.210.0330.05019.03
5.4.200.0370.05318.96
5.4.190.0430.05319.04
5.4.180.0330.06318.99
5.4.170.0400.05319.08
5.4.160.0430.06319.22
5.4.150.0400.04719.19
5.4.140.0330.05016.31
5.4.130.0430.04016.51
5.4.120.0500.05016.49
5.4.110.0670.04316.50
5.4.100.0270.06716.53
5.4.90.0370.04316.57
5.4.80.0470.04316.48
5.4.70.0430.04016.48
5.4.60.0470.05016.54
5.4.50.0370.05316.47
5.4.40.0400.05716.55
5.4.30.0430.05016.41
5.4.20.0270.06316.36
5.4.10.0300.05316.50
5.4.00.0500.04015.83

preferences:
35.8 ms | 401 KiB | 5 Q