3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 12.34; foreach (['en_US', 'nl_NL.utf8'] as $locale) { setlocale(LC_ALL, $locale); var_dump($locale, (string)$number); }

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.3.60.0110.00719.06
8.3.50.0160.00318.70
8.3.40.0090.00919.36
8.3.30.0090.00619.46
8.3.20.0080.00020.04
8.3.10.0080.00022.64
8.3.00.0040.00421.13
8.2.180.0050.01019.01
8.2.170.0140.01122.96
8.2.160.0030.01021.12
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00420.39
8.2.120.0050.00326.35
8.2.110.0090.00219.93
8.2.100.0000.01418.53
8.2.90.0100.00018.38
8.2.80.0060.00318.13
8.2.70.0040.00418.55
8.2.60.0080.00018.84
8.2.50.0050.00318.38
8.2.40.0030.00619.82
8.2.30.0040.00419.84
8.2.20.0090.00318.71
8.2.10.0040.00418.73
8.2.00.0030.00518.43
8.1.280.0110.00725.92
8.1.270.0030.00522.95
8.1.260.0110.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00722.99
8.1.230.0000.01518.29
8.1.220.0000.00818.30
8.1.210.0000.00918.77
8.1.200.0040.00418.11
8.1.190.0040.00917.60
8.1.180.0070.00418.28
8.1.170.0040.00419.34
8.1.160.0050.00319.61
8.1.150.0040.00419.55
8.1.140.0000.00722.88
8.1.130.0030.00320.93
8.1.120.0000.00718.05
8.1.110.0000.00718.01
8.1.100.0020.00518.04
8.1.90.0040.00418.10
8.1.80.0050.00317.98
8.1.70.0040.00418.10
8.1.60.0000.01218.11
8.1.50.0030.00518.22
8.1.40.0000.00818.09
8.1.30.0090.00418.39
8.1.20.0040.00418.38
8.1.10.0050.00318.09
8.1.00.0020.00518.09
8.0.300.0080.00418.77
8.0.290.0020.00517.50
8.0.280.0050.00319.06
8.0.270.0030.00517.99
8.0.260.0030.00319.06
8.0.250.0040.00417.60
8.0.240.0030.00317.50
8.0.230.0030.00317.46
8.0.220.0080.00517.54
8.0.210.0040.00417.36
8.0.200.0030.00317.69
8.0.190.0040.00417.52
8.0.180.0030.00517.41
8.0.170.0040.00417.50
8.0.160.0040.00417.39
8.0.150.0040.00717.46
8.0.140.0080.00017.62
8.0.130.0030.00313.99
8.0.120.0040.00417.34
8.0.110.0000.00917.36
8.0.100.0040.00417.34
8.0.90.0040.00417.52
8.0.80.0060.00917.51
8.0.70.0040.00417.30
8.0.60.0040.00417.41
8.0.50.0050.00317.54
8.0.30.0120.00717.52
8.0.20.0170.00717.63
8.0.10.0000.00717.53
8.0.00.0080.01217.55
7.4.330.0000.00515.55
7.4.320.0030.00317.13
7.4.300.0040.00417.14
7.4.290.0040.00416.95
7.4.280.0000.00817.02
7.4.270.0040.00417.15
7.4.260.0030.00317.12
7.4.250.0000.00717.28
7.4.240.0040.00417.19
7.4.230.0030.00316.82
7.4.220.0070.00017.18
7.4.210.0050.01217.27
7.4.200.0080.00017.22
7.4.160.0100.00917.20
7.4.140.0120.00817.86
7.4.130.0100.00717.17
7.4.120.0120.00917.19
7.4.110.0120.01217.03
7.4.100.0000.01617.35
7.4.90.0060.01217.21
7.4.80.0100.01319.39
7.4.70.0070.01017.30
7.4.60.0080.00817.09
7.4.50.0070.01017.00
7.4.40.0070.01117.02
7.3.330.0060.00013.82
7.3.320.0050.00013.69
7.3.310.0030.00316.98
7.3.300.0020.00516.84
7.3.290.0040.00416.62
7.3.280.0160.00816.88
7.3.260.0080.01017.17
7.3.240.0100.01117.00
7.3.230.0110.00717.00
7.3.210.0090.00916.98
7.3.200.0190.00716.88
7.3.190.0100.01416.76
7.3.180.0070.01117.24
7.3.170.0100.01316.91
7.3.160.0080.00817.23
7.2.330.0140.00317.25
7.2.320.0070.01617.21
7.2.310.0070.01017.11
7.2.300.0110.01216.90
7.2.290.0090.00917.17

preferences:
67.08 ms | 401 KiB | 5 Q