3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = array(" Heureka.cz "," Heureka.cz "," Kosmetika a zdravĂ­ "," Kosmetika"); $bez_mezer = array_map('trim', array_filter($text)); var_dump($bez_mezer);

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.1.130.0000.00720.06
8.1.120.0100.00017.41
8.1.110.0040.00417.42
8.1.100.0080.00017.23
8.1.90.0070.00017.31
8.1.80.0040.00417.43
8.1.70.0030.00317.27
8.1.60.0000.00817.44
8.1.50.0060.00317.34
8.1.40.0030.00517.47
8.1.30.0040.00417.54
8.1.20.0060.00317.55
8.1.10.0000.00817.39
8.1.00.0030.00517.26
8.0.260.0000.00619.90
8.0.250.0040.00416.81
8.0.240.0080.00316.83
8.0.230.0040.00416.91
8.0.220.0000.00716.71
8.0.210.0030.00316.68
8.0.200.0000.00716.89
8.0.190.0030.00516.77
8.0.180.0080.00316.87
8.0.170.0060.00316.80
8.0.160.0030.00516.80
8.0.150.0000.00716.83
8.0.140.0030.00616.80
8.0.130.0000.00613.29
8.0.120.0080.00016.74
8.0.110.0060.00316.80
8.0.100.0040.00416.88
8.0.90.0060.00316.68
8.0.80.0070.00716.73
8.0.70.0000.00716.64
8.0.60.0000.00716.64
8.0.50.0040.00416.84
8.0.30.0030.01516.91
8.0.20.0100.00916.97
8.0.10.0000.00816.73
8.0.00.0210.00616.77
7.4.330.0000.00616.67
7.4.320.0000.00716.53
7.4.300.0060.00016.61
7.4.290.0080.00016.49
7.4.280.0000.01016.53
7.4.270.0030.00316.34
7.4.260.0040.00413.16
7.4.250.0040.00416.46
7.4.240.0060.00216.40
7.4.230.0040.00416.36
7.4.220.0020.00516.55
7.4.210.0050.01016.43
7.4.200.0040.00416.27
7.4.130.0150.00616.38
7.4.120.0100.00716.58
7.4.110.0100.00716.40
7.4.100.0090.00916.45
7.4.90.0120.00916.32
7.4.80.0160.00619.39
7.4.70.0120.00316.43
7.4.60.0160.00716.28
7.4.50.0040.01116.42
7.4.40.0110.01116.32
7.4.00.0000.01314.71
7.3.330.0030.00316.21
7.3.320.0060.00012.96
7.3.310.0040.00416.14
7.3.300.0030.00316.12
7.3.290.0040.01016.14
7.3.280.0110.00416.09
7.3.260.0100.00916.22
7.3.240.0140.00516.31
7.3.230.0060.01016.29
7.3.210.0000.01616.25
7.3.200.0120.00616.31
7.3.190.0070.00716.10
7.3.180.0060.01016.18
7.3.170.0080.01316.45
7.3.160.0030.01216.46
7.3.100.0060.00914.63
7.3.90.0080.01014.61
7.3.80.0080.00814.55
7.3.70.0090.00414.66
7.3.60.0090.00714.33
7.3.50.0070.01014.73
7.3.40.0050.00914.47
7.3.30.0080.00614.59
7.3.20.0020.01314.67
7.3.10.0100.00714.81
7.3.00.0070.00914.50
7.2.330.0040.01916.50
7.2.320.0370.02616.41
7.2.310.0090.01016.33
7.2.300.0140.00716.43
7.2.290.0000.01816.59
7.2.230.0100.00514.94
7.2.220.0110.00415.03
7.2.210.0080.00614.71
7.2.200.0070.00714.73
7.2.190.0050.01014.86
7.2.180.0080.00914.58
7.2.170.0070.01114.83
7.2.160.0050.01314.87
7.2.150.0070.00814.90
7.2.140.0120.00514.91
7.2.130.0060.01314.90
7.2.120.0070.00914.89
7.2.110.0080.01214.88
7.2.100.0030.01614.86
7.2.90.0140.00514.88
7.2.80.0100.01214.97
7.2.70.0090.01214.88
7.2.60.0080.01314.89
7.2.50.0090.00914.85
7.2.40.0110.00714.82
7.2.30.0110.01014.99
7.2.20.0070.01114.91
7.2.10.0200.00815.04
7.2.00.0070.01414.87
7.1.320.0100.00713.92
7.1.310.0050.00913.77
7.1.300.0140.00713.89
7.1.290.0110.00513.88
7.1.280.0060.00813.72
7.1.270.0080.00613.87
7.1.260.0090.00613.83
7.1.250.0030.01313.86

preferences:
75.24 ms | 406 KiB | 5 Q