3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ '1,000.00', '1,000.000', '1.000,00', '1.000,000', '1.00', '1.000', '1,00', '1,000', ]; var_export( preg_replace( ['/[.,](?=\d*[.,])/', '/,/'], ['', '.'], $tests ) );

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.120.0050.00620.57
8.4.110.0140.00720.51
8.4.100.0060.00318.88
8.4.90.0050.00320.38
8.4.80.0070.00718.67
8.4.70.0130.00718.06
8.4.60.0110.01018.90
8.4.50.0110.00918.37
8.4.40.0140.00717.61
8.4.30.0060.01320.36
8.4.20.0110.00418.00
8.4.10.0040.01519.56
8.3.250.0100.00818.71
8.3.240.0130.00616.73
8.3.230.0060.00616.71
8.3.220.0020.00618.97
8.3.210.0120.00718.74
8.3.200.0040.00416.78
8.3.190.0060.00516.84
8.3.180.0070.01217.04
8.3.170.0130.00718.61
8.3.160.0120.00617.24
8.3.150.0070.01118.88
8.3.140.0000.01916.76
8.3.130.0000.00818.52
8.3.120.0000.00818.95
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0000.00918.43
8.3.70.0120.00318.43
8.3.60.0130.00618.69
8.3.50.0090.00918.43
8.3.40.0100.00322.03
8.3.30.0070.01020.34
8.3.20.0120.00825.66
8.3.10.0110.00725.66
8.3.00.0070.01025.66
8.2.290.0100.00720.55
8.2.280.0120.00520.77
8.2.270.0110.00717.18
8.2.260.0000.00818.63
8.2.250.0130.00316.93
8.2.240.0000.01016.72
8.2.230.0060.00322.58
8.2.220.0090.00037.54
8.2.210.0040.01426.77
8.2.200.0080.00516.88
8.2.190.0090.01217.00
8.2.180.0120.00916.63
8.2.170.0140.00418.73
8.2.160.0100.00322.96
8.2.150.0090.00625.66
8.2.140.0110.00325.66
8.2.130.0030.01025.66
8.2.120.0070.00725.66
8.2.110.0130.00325.66
8.2.100.0070.00725.66
8.2.90.0100.00625.66
8.2.80.0090.00625.66
8.2.70.0130.00325.66
8.2.60.0110.00425.66
8.2.50.0130.00325.66
8.2.40.0120.00325.66
8.2.30.0110.00425.66
8.2.20.0090.00625.66
8.2.10.0160.00025.66
8.2.00.0100.00725.66
8.1.330.0130.00622.11
8.1.320.0120.00718.33
8.1.310.0040.01118.58
8.1.300.0100.00616.33
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0070.00725.66
8.1.260.0120.00325.66
8.1.250.0110.00425.66
8.1.240.0070.01025.66
8.1.230.0140.00325.66
8.1.220.0130.00325.66
8.1.210.0120.00325.66
8.1.200.0090.00625.66
8.1.190.0040.01125.66
8.1.180.0130.00325.66
8.1.170.0070.00725.66
8.1.160.0090.00625.66
8.1.150.0060.01025.66
8.1.140.0100.00725.66
8.1.130.0110.00425.66
8.1.120.0160.00025.66
8.1.110.0110.00425.66
8.1.100.0060.00925.66
8.1.90.0120.00325.66
8.1.80.0090.00625.66
8.1.70.0060.00925.66
8.1.60.0040.01225.66
8.1.50.0040.01525.66
8.1.40.0100.01025.66
8.1.30.0090.00925.66
8.1.20.0080.00825.66
8.1.10.0100.00725.66
8.1.00.0100.00725.66

preferences:
25.88 ms | 403 KiB | 5 Q