3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contextA = ['browser_type' => 'chrome', 'browser_version' => null]; $contextB = ['browser_type' => 'chrome', 'browser_version' => '2.0']; $condition = function(array $context) { return !($context['browser_type'] == 'chrome' && $context['browser_version'] == '1.0'); }; echo 'Context A condition result: '.($condition($contextA) ? 'true' : 'false').PHP_EOL; echo 'Context B condition result: '.($condition($contextA) ? 'true' : 'false').PHP_EOL;

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.0070.01116.61
8.5.00.0110.01023.15
8.4.160.0110.01222.00
8.4.150.0090.00517.82
8.4.140.0120.01417.79
8.4.130.0120.00917.69
8.4.120.0050.00519.69
8.4.110.0100.01117.81
8.4.90.0110.01019.61
8.3.290.0200.00720.80
8.3.280.0020.00014.05
8.3.270.0100.00916.75
8.3.260.0110.00916.71
8.3.250.0090.00916.79
8.3.240.0100.00916.56
8.3.180.0140.00516.40
8.3.50.0120.00716.46
8.2.300.0120.00920.42
8.1.340.0090.01221.91
7.4.330.0300.00916.35

preferences:
29.87 ms | 403 KiB | 5 Q