3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Call 123-456-7800 between 16:00 and 4:00 for confidential support'; $f = new NumberFormatter('en', NumberFormatter::SPELLOUT); echo preg_replace_callback( '/\b(\d)(\d)(\d)-(\d)(\d)(\d)-(\d)(\d)(\d)(\d)\b/', fn($m) => implode(' ', array_map([$f, 'format'], array_slice($m, 1))), $text );

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.4.140.0140.00720.41
8.4.130.0080.01222.15
8.4.120.0140.00723.27
8.4.110.0120.01124.86
8.4.100.0130.00720.30
8.4.90.0140.00821.18
8.4.80.0160.00622.04
8.4.70.0120.01020.56
8.4.60.0110.01021.15
8.4.50.0280.01021.29
8.4.40.0230.00720.40
8.4.30.0200.00720.34
8.4.20.0250.00621.26
8.4.10.0200.00320.21
8.3.270.0110.01019.11
8.3.260.0060.00319.03
8.3.250.0130.00821.29
8.3.240.0120.00619.25
8.3.230.0120.00919.27
8.3.220.0060.00319.82
8.3.210.0140.00919.46
8.3.200.0160.00419.05
8.3.190.0190.00418.99
8.3.180.0130.00719.23
8.3.170.0180.00618.99
8.3.160.0170.00419.93
8.3.150.0170.00519.01
8.3.140.0150.00719.25
8.3.130.0150.00419.13
8.3.120.0160.00419.11
8.3.110.0160.00319.29
8.3.100.0170.00518.99
8.3.90.0190.00318.99
8.3.80.0160.00618.99
8.3.70.0180.00419.01
8.3.60.0170.00719.09
8.3.50.0160.00719.04
8.3.40.0230.00519.68
8.3.30.0150.00619.92
8.3.20.0160.00319.58
8.3.10.0130.00519.88
8.3.00.0130.00619.89
8.2.290.0080.01222.91
8.2.280.0130.00519.08
8.2.270.0130.00519.23
8.2.260.0120.00619.19
8.2.250.0140.00519.11
8.2.240.0160.00219.30
8.2.230.0140.00619.25
8.2.220.0140.00418.87
8.2.210.0170.00219.14
8.2.200.0170.00319.21
8.2.190.0140.00419.28
8.2.180.0120.00719.29
8.2.170.0150.00420.03
8.2.160.0170.00219.96
8.2.150.0140.00519.73
8.2.140.0150.00419.92
8.2.130.0170.00519.80
8.2.120.0150.00719.94
8.2.110.0170.00319.92
8.2.100.0170.00419.99
8.2.90.0150.00420.06
8.2.80.0190.00620.00
8.2.70.0170.00419.87
8.2.60.0240.00619.75
8.2.50.0220.00219.68
8.2.40.0170.00719.86
8.2.30.0170.01019.83
8.2.20.0130.00619.83
8.2.10.0120.00619.86
8.2.00.0140.00419.70

preferences:
29.09 ms | 403 KiB | 5 Q