3v4l.org

run code in 200+ PHP versions simultaneously
<?php function createTempDir(): ?string { $separator = DIRECTORY_SEPARATOR; $path = rtrim(sys_get_temp_dir(), $separator) . $separator . mt_rand() . microtime(true); $createdTempDir = mkdir($path); if ($createdTempDir) { return $path; } return null; } var_dump(createTempDir());
based on g5Klm

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.00.0070.01115.07
7.3.120.0090.00914.92
7.3.110.0110.00715.05
7.3.100.0070.01214.53
7.3.90.0080.00914.87
7.3.80.0100.00814.99
7.3.70.0060.01014.68
7.3.60.0020.01514.72
7.3.50.0080.00814.64
7.3.40.0040.01314.68
7.3.30.0030.01014.58
7.3.20.0140.00715.56
7.3.10.0120.00615.79
7.3.00.0130.00615.78
7.2.250.0070.01314.95
7.2.240.0070.01414.80
7.2.230.0080.00414.77
7.2.220.0100.00714.81
7.2.210.0090.00815.00
7.2.200.0080.01014.87
7.2.190.0040.01015.01
7.2.180.0050.01014.98
7.2.170.0060.01114.92
7.2.160.0060.01014.52
7.2.150.0120.01214.94
7.2.140.0100.01014.96
7.2.130.0180.01214.67
7.2.120.0160.01214.83
7.2.110.0100.01915.01
7.2.100.0260.00914.91
7.2.90.0200.01014.93
7.2.80.0140.01114.86
7.2.70.0250.00814.79
7.2.60.0260.00614.77
7.2.50.0190.01314.52
7.2.40.0160.01114.96
7.2.30.0210.00314.94
7.2.20.0190.00514.77
7.2.10.0200.00714.70
7.2.00.0190.00414.96
7.1.330.0090.00615.58
7.1.320.0100.00914.74
7.1.310.0090.00914.92
7.1.300.0120.00814.91
7.1.290.0120.00814.79
7.1.280.0170.00514.84
7.1.270.0090.00714.87
7.1.260.0080.00914.88
7.1.250.0250.00414.14