3v4l.org

run code in 300+ PHP versions simultaneously
<?php // @see https://git.drupalcode.org/project/canvas/-/blob/6b2c5a7dbee665d8de5dce7a462f0616f178d62a/src/PathProcessor/ExperienceBuilderPathProcessor.php function processInbound($path) { if (preg_match('@^/xb/(?!api/)[^/]+/[^/]+@', $path, $matches)) { return $matches[0]; } return $path; } $cases = [ '/xb', '/xb/foo', '/xb/api/something', '/xb/node/42', ]; foreach ($cases as $c) { print sprintf("%s -> %s\n", $c, processInbound($c)); }

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.30.0090.01119.48
8.5.20.0080.01019.99
8.5.10.0260.00616.62
8.5.00.0170.01316.63
8.4.180.0140.00819.80
8.4.170.0300.01319.77
8.4.160.0240.01320.07
8.4.150.0350.00719.75
8.4.140.0370.00917.75
8.4.130.0360.01217.88
8.4.120.0490.00817.95
8.4.110.0460.00818.00
8.4.100.0170.00318.18
8.4.90.0230.00918.01
8.4.80.0300.01317.76
8.4.70.0410.00817.80
8.4.60.0420.00717.76
8.4.50.0370.01017.92
8.4.40.0410.01017.67
8.4.30.0370.01217.56
8.4.20.0440.00718.06
8.4.10.0410.00917.69
8.3.300.0340.01018.27
8.3.290.0330.01018.43
8.3.280.0370.00718.57
8.3.270.0340.01316.48
8.3.260.0350.00916.43
8.3.250.0410.00816.42
8.3.240.0420.00616.68
8.3.230.0410.00716.77
8.3.220.0420.00716.60
8.3.210.0370.00916.68
8.3.200.0380.01116.69
8.3.190.0430.00616.49
8.3.180.0370.01016.67
8.3.170.0410.00916.84
8.3.160.0410.01116.87
8.3.150.0380.00916.69
8.3.140.0430.01116.74
8.3.130.0340.01316.48
8.3.120.0370.00916.50
8.3.110.0360.01016.77
8.3.100.0350.01116.56
8.3.90.0410.00716.68
8.3.80.0350.01216.66
8.3.70.0450.00516.71
8.3.60.0410.00916.72
8.3.50.0420.00716.76
8.3.40.0430.00818.05
8.3.30.0280.01217.99
8.3.20.0320.00817.98
8.3.10.0270.01118.02
8.3.00.0260.01018.04

preferences:
58.06 ms | 711 KiB | 5 Q