3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('MYPLUGIN_VERSION', '%%VERSION%%'); function get_plugin_version(): string { static $ver; if (!isset($ver)) { // Allow development in non-built versions via env var. // This can also be used in CI or anyway in tests $tryVer = (defined('MYPLUGIN_VERSION') && !str_starts_with(\MYPLUGIN_VERSION, '%%')) ? (string) \MYPLUGIN_VERSION : getenv('MYPLUGIN_VERSION'); if ($tryVer === false) { throw new \Exception("Please use a built version or set MYPLUGIN_VERSION env var"); } $ver = $tryVer; } return $ver; } try { get_plugin_version(); } catch (\Throwable) { echo "Failed first time, try again:\n"; putenv('MYPLUGIN_VERSION=1.0.0'); echo 'Plugin version is: ' . get_plugin_version(); }

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.00.0130.00820.15
8.4.150.0010.00114.05
8.4.140.0110.01217.70
8.4.130.0060.00717.64
8.4.120.0140.00624.20
8.4.110.0120.00922.34
8.4.100.0070.00818.98
8.4.90.0110.00519.08
8.4.80.0060.00318.64
8.4.70.0110.00618.06
8.4.60.0100.00918.57
8.4.50.0160.00518.50
8.4.40.0170.00317.75
8.4.30.0070.01120.45
8.4.20.0060.01019.74
8.4.10.0100.01319.53
8.3.280.0070.01218.29
8.3.270.0150.00516.79
8.3.260.0120.00717.21
8.3.250.0060.00318.83
8.3.240.0120.00417.10
8.3.230.0120.00616.54
8.3.220.0070.00419.06
8.3.210.0100.00516.59
8.3.200.0080.01116.58
8.3.190.0090.00917.07
8.3.180.0050.00517.16
8.3.170.0070.01122.55
8.3.160.0110.00717.19
8.3.150.0040.01117.14
8.3.140.0150.00317.30
8.3.130.0000.00818.61
8.3.120.0050.00319.00
8.3.110.0060.01020.94
8.3.100.0030.00624.06
8.3.90.0090.00626.77
8.3.80.0040.00418.55
8.3.70.0120.00618.43
8.3.60.0110.00416.73
8.3.50.0110.01116.61
8.3.40.0110.00323.55
8.3.30.0150.00522.96
8.3.20.0120.00622.96
8.3.10.0130.00622.96
8.3.00.0100.01022.96
8.2.290.0120.00720.61
8.2.280.0080.00618.72
8.2.270.0130.00317.15
8.2.260.0110.00718.21
8.2.250.0030.00617.37
8.2.240.0050.00518.35
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0080.01126.77
8.2.200.0060.00318.41
8.2.190.0120.00318.42
8.2.180.0150.00316.63
8.2.170.0100.01022.96
8.2.160.0160.00322.96
8.2.150.0090.00922.96
8.2.140.0130.00722.96
8.2.130.0170.00322.96
8.2.120.0060.01022.96
8.2.110.0070.00722.96
8.2.100.0040.01122.96
8.2.90.0120.00322.96
8.2.80.0070.00722.96
8.2.70.0120.00322.96
8.2.60.0040.01122.96
8.2.50.0070.00722.96
8.2.40.0140.00722.96
8.2.30.0120.00922.96
8.2.20.0140.00722.96
8.2.10.0100.01022.96
8.2.00.0120.00622.96
8.1.330.0080.01321.95
8.1.320.0080.01116.13
8.1.310.0040.00418.40
8.1.300.0030.00619.89
8.1.290.0000.01630.84
8.1.280.0070.01125.92
8.1.270.0040.01222.96
8.1.260.0140.00022.96
8.1.250.0030.01022.96
8.1.240.0070.00722.96
8.1.230.0110.00422.96
8.1.220.0120.00322.96
8.1.210.0120.00322.96
8.1.200.0140.00422.96
8.1.190.0100.00622.96
8.1.180.0070.00722.96
8.1.170.0120.00822.96
8.1.160.0100.00722.96
8.1.150.0120.00622.96
8.1.140.0110.00422.96
8.1.130.0140.00322.96
8.1.120.0110.00422.96
8.1.110.0140.00022.96
8.1.100.0070.00722.96
8.1.90.0110.00422.96
8.1.80.0120.00322.96
8.1.70.0000.01522.96
8.1.60.0040.01122.96
8.1.50.0070.00722.96
8.1.40.0110.00422.96
8.1.30.0150.00322.96
8.1.20.0070.00722.96
8.1.10.0070.00722.96
8.1.00.0110.00422.96

preferences:
35.58 ms | 403 KiB | 5 Q