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_callback( '/\.(?=.*,)|,(?=\d*$)/', fn($m) => ['.' => ',', ',' => '.'][$m[0]], $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.0140.00524.05
8.4.110.0110.00418.98
8.4.100.0120.00818.89
8.4.90.0100.01020.23
8.4.80.0060.00318.72
8.4.70.0130.00418.78
8.4.60.0160.00518.84
8.4.50.0090.00218.68
8.4.40.0090.00617.84
8.4.30.0130.00620.58
8.4.20.0110.00417.88
8.4.10.0040.00419.68
8.3.250.0100.00818.68
8.3.240.0110.00817.15
8.3.230.0120.00716.66
8.3.220.0040.00318.85
8.3.210.0130.00716.70
8.3.200.0080.00116.93
8.3.190.0090.00918.68
8.3.180.0120.00718.96
8.3.170.0070.01116.88
8.3.160.0120.00618.98
8.3.150.0080.00816.91
8.3.140.0110.00720.64
8.3.130.0000.00818.51
8.3.120.0040.00419.05
8.3.110.0060.00320.94
8.3.100.0000.00824.06
8.3.90.0140.00426.77
8.3.80.0030.00618.56
8.3.70.0130.00618.68
8.3.60.0090.00618.52
8.3.50.0070.01118.48
8.3.40.0100.00721.89
8.3.30.0070.00720.33
8.3.20.0130.00725.66
8.3.10.0100.01025.66
8.3.00.0090.00925.66
8.2.290.0030.00520.57
8.2.280.0070.00918.49
8.2.270.0130.00716.66
8.2.260.0090.00916.78
8.2.250.0160.00316.81
8.2.240.0000.00819.01
8.2.230.0040.01222.58
8.2.220.0090.00037.54
8.2.210.0160.00326.77
8.2.200.0100.01016.63
8.2.190.0070.00718.79
8.2.180.0110.01116.75
8.2.170.0140.00019.21
8.2.160.0070.01022.96
8.2.150.0130.00625.66
8.2.140.0150.00325.66
8.2.130.0070.01125.66
8.2.120.0090.00925.66
8.2.110.0140.00425.66
8.2.100.0090.00925.66
8.2.90.0100.00725.66
8.2.80.0100.01025.66
8.2.70.0070.01425.66
8.2.60.0090.00925.66
8.2.50.0130.00725.66
8.2.40.0070.01325.66
8.2.30.0110.00825.66
8.2.20.0030.01225.66
8.2.10.0070.01425.66
8.2.00.0070.01025.66
8.1.330.0120.00721.90
8.1.320.0090.01018.38
8.1.310.0060.01216.40
8.1.300.0070.01018.59
8.1.290.0060.00630.84
8.1.280.0180.00325.92
8.1.270.0100.01025.66
8.1.260.0160.00625.66
8.1.250.0140.00025.66
8.1.240.0120.00325.66
8.1.230.0080.00825.66
8.1.220.0150.00025.66
8.1.210.0040.01125.66
8.1.200.0090.00625.66
8.1.190.0070.01025.66
8.1.180.0040.01125.66
8.1.170.0150.00025.66
8.1.160.0120.00325.66
8.1.150.0090.00925.66
8.1.140.0140.00025.66
8.1.130.0040.01625.66
8.1.120.0110.00725.66
8.1.110.0120.00325.66
8.1.100.0100.00625.66
8.1.90.0070.01025.66
8.1.80.0070.01025.66
8.1.70.0070.00725.66
8.1.60.0150.00025.66
8.1.50.0070.00725.66
8.1.40.0130.00325.66
8.1.30.0170.00325.66
8.1.20.0100.01025.66
8.1.10.0090.00925.66
8.1.00.0090.00925.66

preferences:
29.4 ms | 403 KiB | 5 Q