3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function reverseString(string $text): string { throw new BadFunctionCallException("Please implement the reverseString method!"); } reverseString('123');

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.130.0420.00316.27
8.3.120.0450.00016.18
8.3.110.0300.01116.62
8.3.100.0400.00716.34
8.3.90.0330.01116.74
8.3.80.0390.00716.50
8.3.70.0450.00316.58
8.3.60.0400.00716.61
8.3.50.0470.00016.55
8.3.40.0380.00517.39
8.3.30.0180.00017.53
8.3.20.0080.01217.23
8.3.10.0100.00817.32
8.3.00.0030.00917.71
8.2.250.0140.00616.37
8.2.240.0090.00916.35
8.2.230.0120.00616.39
8.2.220.0160.00616.22
8.2.210.0190.00016.24
8.2.200.0140.01116.72
8.2.190.0240.00016.36
8.2.180.0180.00516.26
8.2.170.0210.00017.61
8.2.160.0330.00417.43
8.2.150.0150.00717.29
8.2.140.0380.00417.38
8.2.130.0300.01117.28
8.2.120.0360.00617.58
8.2.110.0330.01117.28
8.2.100.0410.01017.41
8.2.90.0330.00717.50
8.2.80.0300.01017.41
8.2.70.0360.00517.57
8.2.60.0290.01517.41
8.2.50.0340.01217.22
8.2.40.0270.00717.40
8.2.30.0170.01317.39
8.2.20.0270.01017.60
8.2.10.0280.00917.48
8.2.00.0250.01117.53
8.1.300.0360.00616.33
8.1.290.0150.02316.18
8.1.280.0340.01016.31
8.1.270.0350.00916.95
8.1.260.0280.01217.15
8.1.250.0270.00717.26
8.1.240.0310.00617.05
8.1.230.0320.00417.20
8.1.220.0260.01017.12
8.1.210.0300.00716.98
8.1.200.0330.00317.13
8.1.190.0290.00717.10
8.1.180.0290.00717.09
8.1.170.0300.00517.17
8.1.160.0260.00917.20
8.1.150.0360.00017.09
8.1.140.0270.00817.15
8.1.130.0260.00617.07
8.1.120.0300.01316.94
8.1.110.0240.00817.14
8.1.100.0270.00816.98
8.1.90.0290.00617.14
8.1.80.0130.00317.01
8.1.70.0120.00417.11
8.1.60.0250.00317.19
8.1.50.0290.00917.04
8.1.40.0350.00417.28
8.1.30.0330.00717.37
8.1.20.0320.01017.42
8.1.10.0400.00017.23
8.1.00.0330.00717.31

preferences:
27.25 ms | 403 KiB | 5 Q