3v4l.org

run code in 300+ PHP versions simultaneously
<?php $usPhone = '123-456-7800'; $digits = sscanf($usPhone, '%1s%1s%1s-%1s%1s%1s-%2s%2s'); $f = new NumberFormatter('en', NumberFormatter::SPELLOUT); echo implode( ' ', array_map( fn($d) => ($d !== (string)(int)$d ? 'oh ' : '') . (!(int)$d ? 'oh' : $f->format((int)$d)), $digits ) );

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.0110.00617.80
8.5.20.0110.00820.09
8.5.10.0100.00818.71
8.5.00.0150.00823.81
8.4.180.0160.01023.60
8.4.170.0150.00826.11
8.4.160.0120.01226.04
8.4.150.0080.00718.87
8.4.140.0140.01019.96
8.4.130.0120.01020.01
8.4.120.0130.00822.96
8.4.110.0070.00521.36
8.4.100.0160.00620.23
8.4.90.0080.01020.22
8.4.80.0140.00725.16
8.4.70.0140.00920.32
8.4.60.0130.01021.92
8.4.50.0440.00920.23
8.4.40.0500.00919.78
8.4.30.0340.00920.00
8.4.20.0400.00520.19
8.4.10.0390.01119.80
8.3.300.0140.00924.83
8.3.290.0130.00926.50
8.3.280.0080.00419.10
8.3.270.0100.01019.22
8.3.260.0110.00918.99
8.3.250.0120.00921.44
8.3.240.0140.00618.95
8.3.230.0150.00519.21
8.3.220.0090.01021.53
8.3.210.0080.00919.13
8.3.200.0090.01121.63
8.3.190.0360.00719.13
8.3.180.0360.01119.08
8.3.170.0400.00718.71
8.3.160.0400.00918.81
8.3.150.0380.00819.05
8.3.140.0430.00618.83
8.3.130.0370.01218.96
8.3.120.0520.00718.75
8.3.110.0350.00719.01
8.3.100.0350.01218.95
8.3.90.0350.00718.90
8.3.80.0210.00618.89
8.3.70.0260.00918.66
8.3.60.0360.00918.97
8.3.50.0350.00919.10
8.3.40.0460.00719.64
8.3.30.0340.01019.40
8.3.20.0350.01019.48
8.3.10.0310.01219.28
8.3.00.0160.00919.83
8.2.300.0180.00724.32
8.2.290.0110.01021.66
8.2.280.0240.01019.09
8.2.270.0320.00518.88
8.2.260.0340.00919.07
8.2.250.0390.00818.65
8.2.240.0310.01118.60
8.2.230.0280.01319.29
8.2.220.0280.01319.02
8.2.210.0270.01418.99
8.2.200.0330.00819.10
8.2.190.0320.00919.23
8.2.180.0350.00918.91
8.2.170.0360.00820.08
8.2.160.0320.00219.61
8.2.150.0340.00719.79
8.2.140.0290.00319.90
8.2.130.0230.00719.86
8.2.120.0250.00719.52
8.2.110.0370.00919.75
8.2.100.0380.00919.80
8.2.90.0410.01419.83
8.2.80.0300.00519.69
8.2.70.0310.00319.56
8.2.60.0250.00619.69
8.2.50.0060.00419.77
8.2.40.0050.00420.00
8.2.30.0070.01219.71
8.2.20.0150.00719.74
8.2.10.0150.00619.80
8.2.00.0170.00419.88
8.1.340.0160.00724.17

preferences:
53.38 ms | 849 KiB | 5 Q