3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function example($foo) { print trim($foo); } // Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, bool given. example(false);

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.4.10.0090.00023.83
8.3.140.0040.01516.79
8.3.130.0040.00418.63
8.3.120.0100.00620.66
8.3.110.0060.00318.61
8.3.100.0130.00616.68
8.3.90.0080.00026.77
8.3.80.0100.00829.88
8.3.70.0190.00917.20
8.3.60.0120.00318.43
8.3.50.0160.00916.92
8.3.40.0130.00022.06
8.3.30.0070.00720.21
8.3.20.0070.00325.17
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.250.0080.00018.34
8.2.240.0130.00618.71
8.2.230.0080.00022.58
8.2.220.0000.00924.06
8.2.210.0070.01326.77
8.2.200.0060.00318.41
8.2.190.0070.00716.76
8.2.180.0040.01116.63
8.2.170.0150.00018.84
8.2.160.0100.00322.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00420.97
8.2.110.0090.00020.39
8.2.100.0090.00020.49
8.2.90.0110.00118.80
8.1.300.0110.01119.95
8.1.290.0030.00630.84
8.1.280.0070.01025.92
8.1.270.0080.00024.66
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0040.00423.96
8.1.230.0150.00219.84
8.1.220.0070.00618.77

preferences:
47.5 ms | 403 KiB | 5 Q