3v4l.org

run code in 300+ PHP versions simultaneously
<?php function revStr(string $str): string { $str = str_split($str); krsort($str); return implode($str); } echo revStr('SnackOverflow');

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.0100.00816.70
8.5.00.0110.01020.08
8.4.150.0010.00214.05
8.4.140.0130.00717.62
8.4.130.0080.01317.94
8.4.120.0140.00620.49
8.4.110.0110.00620.70
8.4.100.0120.00817.59
8.4.90.0100.00917.83
8.4.80.0120.00817.56
8.4.70.0100.00917.55
8.4.60.0070.00319.55
8.4.50.0120.00920.62
8.4.40.0160.00317.68
8.4.30.0040.01518.57
8.4.20.0030.01617.58
8.4.10.0000.00819.46
8.3.280.0140.00818.18
8.3.270.0130.00716.79
8.3.260.0110.00816.26
8.3.250.0110.00718.53
8.3.240.0050.00616.50
8.3.230.0060.01016.54
8.3.220.0040.00518.38
8.3.210.0100.00916.51
8.3.200.0130.00816.36
8.3.190.0140.00617.12
8.3.180.0070.01116.86
8.3.170.0070.01118.95
8.3.160.0040.01117.11
8.3.150.0160.00317.29
8.3.140.0080.00016.60
8.3.130.0060.00318.53
8.3.120.0030.00620.63
8.3.110.0040.00416.61
8.3.100.0050.00524.06
8.3.90.0070.00726.77
8.3.80.0030.00618.30
8.3.70.0130.01018.16
8.3.60.0110.00316.55
8.3.50.0170.00016.68
8.3.40.0070.00721.87
8.3.30.0070.01120.04
8.3.20.0110.00825.66
8.3.10.0140.00425.66
8.3.00.0100.01025.66
8.2.290.0120.00720.52
8.2.280.0130.00716.49
8.2.270.0000.00817.36
8.2.260.0000.00816.49
8.2.250.0040.00418.43
8.2.240.0150.00417.00
8.2.230.0090.00020.94
8.2.220.0060.00337.54
8.2.210.0120.00626.77
8.2.200.0060.00316.63
8.2.190.0140.00716.88
8.2.180.0070.00718.14
8.2.170.0040.01119.04
8.2.160.0040.01122.96
8.2.150.0070.01325.66
8.2.140.0090.00625.66
8.2.130.0110.00325.66
8.2.120.0100.01025.66
8.2.110.0090.00925.66
8.2.100.0160.00325.66
8.2.90.0150.00425.66
8.2.80.0110.00725.66
8.2.70.0100.01025.66
8.2.60.0120.00925.66
8.2.50.0110.00425.66
8.2.40.0030.01725.66
8.2.30.0070.01425.66
8.2.20.0070.01425.66
8.2.10.0100.00725.66
8.2.00.0100.01025.66
8.1.330.0020.00621.90
8.1.320.0110.00916.25
8.1.310.0100.00316.52
8.1.300.0090.00020.14
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0120.00325.66
8.1.260.0000.01625.66
8.1.250.0120.00325.66
8.1.240.0040.01525.66
8.1.230.0070.01025.66
8.1.220.0080.00025.66
8.1.210.0030.00625.66
8.1.200.0060.00325.66
8.1.190.0040.01525.66
8.1.180.0130.00625.66
8.1.170.0110.00825.66
8.1.160.0030.00725.66
8.1.150.0040.00425.66
8.1.140.0040.00425.66
8.1.130.0150.00325.66
8.1.120.0090.00025.66
8.1.110.0130.00725.66
8.1.100.0040.00425.66
8.1.90.0110.00725.66
8.1.80.0000.01525.66
8.1.70.0100.00725.66
8.1.60.0090.00025.66
8.1.50.0060.00325.66
8.1.40.0110.00425.66
8.1.30.0060.00325.66
8.1.20.0060.00325.66
8.1.10.0060.00325.66
8.1.00.0000.00825.66

preferences:
42.78 ms | 403 KiB | 5 Q