3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 0 => '124,95', 1 => '139,95', 2 => '149,95', 3 => '1.200', 4 => '150', 5 => '154,95', 6 => '130', 7 => '189,95', 8 => '199,95', 9 => '30', 10 => '150', 11 => '1.234.567,89' ); $new_array = array_map(function ($v) { return (float)strtr($v, array(',' => '.', '.' => '')); }, $array); echo number_format(min($new_array), 2, ',', '.') . "\n"; echo number_format(max($new_array), 2, ',', '.') . "\n";;

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.130.0000.00818.29
8.3.120.0080.00018.80
8.3.110.0060.00320.94
8.3.100.0000.01516.46
8.3.90.0040.00418.27
8.3.80.0060.00317.97
8.3.70.0180.00016.38
8.3.60.0000.01518.31
8.3.50.0070.00717.29
8.3.40.0120.00618.54
8.3.30.0040.01218.88
8.3.20.0040.00421.88
8.3.10.0060.00318.69
8.3.00.0030.00519.38
8.2.250.0040.01216.63
8.2.240.0100.00017.14
8.2.230.0100.01022.58
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0060.00316.63
8.2.190.0070.00716.58
8.2.180.0110.00718.29
8.2.170.0070.00718.97
8.2.160.0130.00619.13
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00518.88
8.2.110.0040.00419.37
8.2.100.0060.00617.91
8.2.90.0060.00317.84
8.2.80.0000.00819.29
8.2.70.0060.00317.93
8.2.60.0000.00818.22
8.2.50.0060.00318.10
8.2.40.0040.00419.29
8.2.30.0070.00019.20
8.2.20.0040.00418.08
8.2.10.0040.00419.50
8.2.00.0040.00418.28
8.1.300.0070.00720.01
8.1.290.0090.00018.88
8.1.280.0110.00325.92
8.1.270.0040.00420.34
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.27
8.1.230.0090.00321.02
8.1.220.0040.00417.78
8.1.210.0080.00018.88
8.1.200.0090.00017.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00618.39
8.1.160.0040.00418.98
8.1.150.0000.00818.93
8.1.140.0000.00720.38
8.1.130.0030.00320.29
8.1.120.0030.00517.50
8.1.110.0000.00717.51
8.1.100.0040.00417.43
8.1.90.0000.00817.51
8.1.80.0030.00517.41
8.1.70.0040.00417.41
8.1.60.0000.00817.62
8.1.50.0050.00317.60
8.1.40.0040.00417.58
8.1.30.0040.00417.66
8.1.20.0050.00317.55
8.1.10.0050.00317.55
8.1.00.0040.00417.41
8.0.300.0040.00420.12
8.0.290.0000.00816.88
8.0.280.0030.00318.50
8.0.270.0020.00517.31
8.0.260.0030.00318.37
8.0.250.0000.00716.99
8.0.240.0030.00316.92
8.0.230.0040.00417.02
8.0.220.0000.00716.76
8.0.210.0000.00616.86
8.0.200.0030.00316.87
8.0.190.0040.00417.01
8.0.180.0040.00416.99
8.0.170.0030.00616.95
8.0.160.0070.00016.92
8.0.150.0050.00316.84
8.0.140.0050.00216.89
8.0.130.0060.00013.36
8.0.120.0000.00716.89
8.0.110.0000.00816.90
8.0.100.0070.00016.84
8.0.90.0030.00316.75
8.0.80.0160.00616.87
8.0.70.0040.00416.82
8.0.60.0040.00316.81
8.0.50.0000.00716.93
8.0.30.0080.01017.15
8.0.20.0150.00317.05
8.0.10.0040.00416.94
8.0.00.0070.01116.77
7.4.330.0000.00515.55
7.4.320.0040.00416.54
7.4.300.0030.00316.49
7.4.290.0070.00016.54
7.4.280.0000.00816.46
7.4.270.0040.00416.56
7.4.260.0030.00616.52
7.4.250.0000.00716.53
7.4.240.0030.00316.70
7.4.230.0000.00716.56
7.4.220.0000.00816.66
7.4.210.0110.00516.58
7.4.200.0030.00316.75
7.4.160.0080.01116.52
7.4.140.0100.01117.86
7.4.130.0110.00516.43
7.4.120.0100.00716.69
7.4.110.0130.00716.54
7.4.100.0170.02416.43
7.4.90.0030.01516.74
7.4.80.0060.00919.39
7.4.70.0100.00716.46
7.4.60.0110.00616.46
7.4.50.0030.01416.57
7.4.40.0140.00316.44
7.4.00.0130.00314.79
7.3.330.0050.00013.28
7.3.320.0030.00313.15
7.3.310.0000.00716.18
7.3.300.0070.00016.34
7.3.290.0080.00916.30
7.3.280.0090.00916.28
7.3.260.0110.00916.33
7.3.240.0060.01116.50
7.3.230.0070.01016.65
7.3.210.0130.00316.64
7.3.200.0120.00416.55
7.3.190.0090.01316.21
7.3.180.0040.01816.40
7.3.170.0120.00616.30
7.3.160.0150.01116.50
7.3.20.1400.00314.55
7.3.10.2110.01014.48
7.3.00.2040.00714.68
7.2.330.0130.00416.84
7.2.320.0100.00716.93
7.2.310.0060.01216.57
7.2.300.0110.00516.76
7.2.290.0080.00816.82
7.2.150.1690.00715.27
7.2.140.1740.00315.01
7.2.130.1790.00715.06
7.2.120.2510.00715.04
7.2.110.1730.00314.95
7.2.100.1840.01015.12
7.2.90.1360.01414.85
7.2.80.1290.00315.02
7.2.70.1930.01015.16
7.2.60.1540.00715.04
7.2.50.1950.00715.21
7.2.40.1770.01014.98
7.2.30.3340.00715.09
7.2.20.1960.01015.06
7.2.10.2430.01014.96
7.2.00.2530.01015.18
7.1.250.2120.00713.88

preferences:
74.89 ms | 403 KiB | 5 Q