3v4l.org

run code in 300+ PHP versions simultaneously
<?php //require_once __DIR__ . '/autoload.php'; set_exception_handler(function (\Throwable $e) { new Aaalaksjas(); }); function foo(string $key): ?string { throw new \Exception('asdas'); } $validKeys = array_keys( array_filter( [ 'a' => 'b', ], fn (string $signature, string $key) => true, ARRAY_FILTER_USE_BOTH, ), ); $result = array_filter( array_combine( $validKeys, array_map(foo(...), $validKeys), ), );

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.0110.00716.74
8.5.00.0160.00620.04
8.4.150.0020.00114.05
8.4.140.0160.00617.84
8.4.130.0100.01017.92
8.4.120.0110.00820.46
8.4.110.0140.00522.25
8.4.100.0110.01017.98
8.4.90.0070.00217.99
8.4.80.0140.00617.96
8.4.70.0050.00419.87
8.4.60.0140.00918.87
8.4.50.0140.00619.67
8.4.40.0070.01418.92
8.4.30.0080.01118.72
8.4.20.0200.00019.82
8.4.10.0040.00419.64
8.3.280.0140.00618.51
8.3.270.0080.00716.37
8.3.260.0080.00816.50
8.3.250.0100.00818.82
8.3.240.0160.00316.46
8.3.230.0050.00316.42
8.3.220.0050.00317.10
8.3.210.0070.00816.57
8.3.200.0100.00916.76
8.3.190.0100.00717.12
8.3.180.0100.00816.61
8.3.170.0080.00620.62
8.3.160.0140.00316.84
8.3.150.0040.01116.88
8.3.140.0090.00016.65
8.3.130.0040.00418.73
8.3.120.0060.00318.82
8.3.110.0030.00622.58
8.3.100.0030.00622.58
8.3.60.0370.00825.92
8.3.50.0130.00925.92
8.3.40.0420.00325.92
8.3.30.0450.00925.92
8.3.20.0400.00725.92
8.3.10.0330.01025.92
8.3.00.0470.00025.92
8.2.290.0110.00920.50
8.2.280.0060.00418.62
8.2.270.0070.01116.91
8.2.260.0150.00418.35
8.2.250.0130.00716.96
8.2.240.0040.00417.00
8.2.230.0110.00022.58
8.2.220.0060.00322.58
8.2.180.0460.00725.92
8.2.170.0370.00425.92
8.2.160.0340.00625.92
8.2.150.0320.00625.92
8.2.140.0300.00425.92
8.2.130.0310.00425.92
8.2.120.0250.00925.92
8.2.110.0330.00525.92
8.2.100.0310.00925.92
8.2.90.0190.01325.92
8.2.80.0270.01025.92
8.2.70.0330.00725.92
8.2.60.0370.00325.92
8.2.50.0300.00325.92
8.2.40.0210.01425.92
8.2.30.0250.00625.92
8.2.20.0300.00625.92
8.2.10.0290.00825.92
8.2.00.0320.02125.92
8.1.330.0130.00421.82
8.1.320.0110.00716.21
8.1.310.0050.00216.56
8.1.300.0050.00518.50
8.1.280.0320.01725.92
8.1.270.0500.00425.92
8.1.260.0390.00725.92
8.1.250.0480.00725.92
8.1.240.0340.00325.92
8.1.230.0200.01625.92
8.1.220.0330.00325.92
8.1.210.0370.00325.92
8.1.200.0350.00625.92
8.1.190.0380.00325.92
8.1.180.0290.00925.92
8.1.170.0330.00325.92
8.1.160.0320.01025.92
8.1.150.0300.00925.92
8.1.140.0380.00325.92
8.1.130.0320.00625.92
8.1.120.0420.00325.92
8.1.110.0330.01125.92
8.1.100.0420.00025.92
8.1.90.0340.01025.92
8.1.80.0320.00925.92
8.1.70.0210.01425.92
8.1.60.0380.00425.92
8.1.50.0290.01025.92
8.1.40.0370.00825.92
8.1.30.0410.00925.92
8.1.20.0290.01225.92
8.1.10.0280.01425.92
8.1.00.0310.01425.92
8.0.10.0220.00925.92
7.4.160.0250.01425.92

preferences:
37.03 ms | 403 KiB | 5 Q