3v4l.org

run code in 300+ PHP versions simultaneously
<?php $range = range(2,20); # make an array for tokens using rnage foreach($range as $k){ $tokens["token{$k}h"] = substr(str_shuffle("0p23456789ABCDEFGHIJKLMNoPQRSZUVWXYZ"), 0, 20); } print_r($tokens); # make token variables using range foreach($range as $k){ ${"token{$k}h"} = substr(str_shuffle("0p23456789ABCDEFGHIJKLMNoPQRSZUVWXYZ"), 0, 20); } echo $token10h; ?>

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)
7.4.60.0130.00816.43
7.4.50.0040.01316.26
7.4.40.0070.01016.38
7.4.30.0130.00316.46
7.4.20.0140.00316.54
7.4.10.0130.00616.49
7.4.00.0150.00316.60
7.3.180.0050.01116.52
7.3.170.0030.01416.48
7.3.160.0100.00716.50
7.3.150.0050.01416.34
7.3.140.0060.00916.53
7.3.130.0090.01116.26
7.3.120.0120.00416.36
7.3.110.0120.00416.38
7.3.100.0120.00616.30
7.3.90.0040.01116.52
7.3.80.0050.01116.45
7.3.70.0080.00816.29
7.3.60.0070.01016.31
7.3.50.0080.00816.39
7.3.40.0140.00316.21
7.3.30.0090.00916.34
7.3.20.0110.00716.21
7.3.10.0170.00516.25
7.3.00.0120.00916.30
7.2.310.0150.00316.71
7.2.300.0060.01116.68
7.2.290.0030.01716.63
7.2.280.0100.01016.69
7.2.270.0090.00916.50
7.2.260.0040.01516.59
7.2.250.0130.00816.34
7.2.240.0100.01016.44
7.2.230.0050.01116.60
7.2.220.0150.00316.50
7.2.210.0090.00916.36
7.2.200.0070.01016.59
7.2.190.0100.00716.46
7.2.180.0120.00616.53
7.2.170.0080.01016.71
7.2.160.0030.01516.49
7.2.150.0110.01416.60
7.2.140.0120.00916.61
7.2.130.0090.01416.66
7.2.120.0160.00616.68
7.2.110.0130.01016.50
7.2.100.0180.00916.79
7.2.90.0190.01016.73
7.2.80.0140.01416.61
7.2.70.0160.01016.64
7.2.60.0270.01416.62
7.2.50.0060.02216.48
7.2.40.0110.01416.63
7.2.30.0200.00616.59
7.2.20.0140.00816.59
7.2.10.0110.01116.53
7.2.00.0170.00416.46

preferences:
47.97 ms | 403 KiB | 5 Q