3v4l.org

run code in 500+ PHP versions simultaneously
<?php $modules = ['redirect_404', 'redirect']; $modules_by_length = $modules; usort($modules_by_length, static fn ($a, $b) => strlen($b) - strlen($a)); $known_modules_pattern = implode('|', array_map( static fn ($x) => preg_quote($x, '/'), $modules_by_length, )); $module_preg = '/^(?<function>(?<module>' . $known_modules_pattern . ')_(?<hook>[a-zA-Z0-9_\x80-\xff]+$))(?<!update_\d)(?<!update_\d\d)(?<!update_\d\d\d)(?<!update_\d\d\d\d)/'; print $module_preg; preg_match($module_preg, 'redirect_404_update_8101', $matches); preg_match($module_preg, 'redirect_404_cron', $matches); var_dump($matches);

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.90.0090.00916.98
8.5.80.0100.00816.77
8.5.70.0110.00318.93
8.5.60.0060.00817.03
8.5.50.0020.00516.71
8.5.30.0120.00718.09
8.5.20.0110.01019.83
8.5.10.0120.00616.84
8.5.00.0170.00420.20
8.4.240.0080.00919.79
8.4.230.0080.00419.64
8.4.220.0030.01019.72
8.4.210.0090.01219.74
8.4.180.0100.01219.79
8.4.170.0130.00923.82
8.4.160.0120.00922.00
8.4.150.0070.00616.88
8.4.140.0130.01017.95
8.4.130.0110.01018.76
8.4.120.0060.00322.50
8.4.110.0140.00718.55
8.4.100.0110.01017.85
8.4.90.0080.01318.09
8.4.80.0040.00517.97
8.4.70.0120.00919.61
8.4.60.0380.00817.94
8.4.50.0400.00617.63
8.4.40.0380.01117.39
8.4.30.0350.01317.33
8.4.20.0410.00717.59
8.4.10.0370.01217.47
8.3.320.0100.01118.57
8.3.310.0140.00718.77
8.3.300.0080.01220.72
8.3.290.0120.01020.85
8.3.280.0140.00718.43
8.3.270.0110.00816.65
8.3.260.0160.00416.88
8.3.250.0110.00818.78
8.3.240.0050.00316.97
8.3.230.0100.01016.50
8.3.220.0110.00818.46
8.3.210.0100.00916.54
8.3.200.0350.01016.23
8.3.190.0300.00916.73
8.3.180.0400.00816.26
8.3.170.0440.00516.43
8.3.160.0320.01116.35
8.3.150.0340.01516.56
8.3.140.0370.01216.91
8.3.130.0360.00716.70
8.3.120.0270.01516.71
8.3.110.0320.01016.69
8.3.100.0400.00716.61
8.3.90.0400.00716.62
8.3.80.0370.00916.49
8.3.70.0540.00716.51
8.3.60.0250.00516.77
8.3.50.0210.00216.38
8.3.40.0250.00517.80
8.3.30.0250.01117.45
8.3.20.0330.00817.55
8.3.10.0270.01017.64
8.3.00.0200.00917.66
8.2.320.0080.01218.19
8.2.310.0150.00718.36
8.2.300.0120.00820.38
8.2.290.0050.00618.96
8.2.280.0290.01016.81
8.2.270.0320.00616.52
8.2.260.0330.00816.46
8.2.250.0280.01116.60
8.2.240.0330.00916.79
8.2.230.0380.00816.33
8.2.220.0260.00916.54
8.2.210.0210.00216.50
8.2.200.0330.00816.54
8.2.190.0300.00516.65
8.2.180.0270.00616.77
8.2.170.0250.01117.82
8.2.160.0370.00617.64
8.2.150.0320.00917.84
8.2.140.0320.00917.74
8.2.130.0350.00817.81
8.2.120.0330.01017.82
8.2.110.0300.01317.49
8.2.100.0350.00617.75
8.2.90.0320.01117.88
8.2.80.0340.00817.83
8.2.70.0340.01017.55
8.2.60.0290.00917.68
8.2.50.0340.00817.49
8.2.40.0330.00817.73
8.2.30.0390.00917.41
8.2.20.0290.01017.61
8.2.10.0290.00817.79
8.2.00.0280.00917.67
8.1.340.0110.01321.91

preferences:
38.01 ms | 931 KiB | 5 Q