3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1, "apples",2, "oranges",3, "plums"); $filtered = array_filter($array, 'ctype_alpha'); $callback = function($item) { return strtoupper($item); }; $nu = array_map( $callback, $filtered); var_dump($nu); ?>

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.0150.00018.39
8.3.50.0200.00621.25
8.3.40.0090.01218.53
8.3.30.0070.00718.48
8.3.20.0040.00420.25
8.3.10.0040.00421.90
8.3.00.0140.00420.20
8.2.180.0110.00718.29
8.2.170.0070.01122.96
8.2.160.0040.01121.98
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0060.00321.04
8.2.110.0070.00419.39
8.2.100.0040.00717.63
8.2.90.0040.00419.05
8.2.80.0090.00017.97
8.2.70.0040.00417.63
8.2.60.0000.01017.93
8.2.50.0060.00318.07
8.2.40.0060.00319.46
8.2.30.0040.00422.37
8.2.20.0090.00017.78
8.2.10.0000.00818.05
8.2.00.0000.00718.17
8.1.280.0110.00425.92
8.1.270.0060.00323.97
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0090.00019.12
8.1.230.0040.00817.64
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0050.00317.35
8.1.180.0030.00618.10
8.1.170.0050.00318.43
8.1.160.0040.00421.91
8.1.150.0040.00418.76
8.1.140.0040.00417.45
8.1.130.0000.00717.74
8.1.120.0040.00417.45
8.1.110.0030.00517.42
8.1.100.0070.00017.47
8.1.90.0000.00717.41
8.1.80.0020.00517.41
8.1.70.0000.00717.37
8.1.60.0000.00817.54
8.1.50.0000.00917.36
8.1.40.0110.00017.47
8.1.30.0040.00417.69
8.1.20.0050.00217.55
8.1.10.0030.00517.40
8.1.00.0030.00517.26
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.32
8.0.270.0020.00516.63
8.0.260.0060.00017.06
8.0.250.0050.00316.81
8.0.240.0030.00316.86
8.0.230.0040.00416.85
8.0.220.0030.00316.84
8.0.210.0000.00816.67
8.0.200.0020.00516.83
8.0.190.0030.00616.98
8.0.180.0040.00416.89
8.0.170.0030.00516.84
8.0.160.0050.00316.82
8.0.150.0000.00816.83
8.0.140.0000.00716.84
8.0.130.0000.00613.32
8.0.120.0030.00516.75
8.0.110.0040.00416.92
8.0.100.0000.00816.84
8.0.90.0030.00316.85
8.0.80.0070.01016.92
8.0.70.0000.00816.88
8.0.60.0000.00716.75
8.0.50.0000.00716.88
8.0.30.0080.01317.09
8.0.20.0090.01017.40
8.0.10.0000.00716.88
8.0.00.0100.00916.70
7.4.330.0000.00515.10
7.4.320.0050.00316.46
7.4.300.0030.00316.49
7.4.290.0000.00716.61
7.4.280.0040.00416.47
7.4.270.0040.00416.43
7.4.260.0070.00016.58
7.4.250.0040.00416.41
7.4.240.0030.00316.55
7.4.230.0070.00016.53
7.4.220.0080.00816.54
7.4.210.0060.00916.47
7.4.200.0070.00016.49
7.4.160.0000.01516.52
7.4.150.0030.01317.40
7.4.140.0130.00917.86
7.4.130.0160.00416.51
7.4.120.0060.01116.49
7.4.110.0100.00716.50
7.4.100.0110.01116.47
7.4.90.0060.01216.41
7.4.80.0150.00319.39
7.4.70.0090.01216.38
7.4.60.0070.01016.34
7.4.50.0000.00816.05
7.4.40.0070.01416.52
7.4.30.0030.01616.54
7.4.00.0090.00914.88
7.3.330.0000.00513.27
7.3.320.0000.00513.11
7.3.310.0040.00216.14
7.3.300.0050.00216.25
7.3.290.0100.00516.16
7.3.280.0110.00716.23
7.3.270.0030.01317.40
7.3.260.0120.00616.67
7.3.250.0110.00916.43
7.3.240.0070.01716.29
7.3.230.0030.01516.50
7.3.210.0130.00616.15
7.3.200.0060.00916.33
7.3.190.0150.00016.23
7.3.180.0110.00516.09
7.3.170.0100.00616.50
7.3.160.0120.00616.20
7.3.120.0110.00714.75
7.3.110.0100.00714.91
7.3.100.0120.00614.77
7.3.90.0040.01114.68
7.3.80.0060.00614.79
7.3.70.0060.00614.88
7.3.60.0060.00914.75
7.3.50.0000.01514.86
7.3.40.0040.01114.77
7.3.30.0040.00814.40
7.3.20.0080.00616.61
7.3.10.0030.00916.60
7.3.00.0040.01216.68
7.2.330.0120.00616.68
7.2.320.0000.01916.43
7.2.310.0100.00816.57
7.2.300.0060.00916.50
7.2.290.0090.00916.65
7.2.250.0120.00615.14
7.2.240.0070.01314.89
7.2.230.0140.00414.75
7.2.220.0030.01214.96
7.2.210.0070.00714.59
7.2.200.0100.00315.14
7.2.190.0040.01215.18
7.2.180.0080.00814.87
7.2.170.0100.00015.00
7.2.60.0060.00616.78
7.2.00.0030.01419.06
7.1.330.0070.00715.66
7.1.320.0070.00715.85
7.1.310.0080.00515.84
7.1.300.0070.00715.51
7.1.290.0000.01315.69
7.1.280.0070.00715.87
7.1.270.0040.00415.48
7.1.260.0060.00615.92
7.1.200.0070.00715.76
7.1.100.0090.00918.07
7.1.70.0120.00417.05
7.1.60.0120.00319.11
7.1.50.0130.01016.85
7.1.00.0000.08022.45
7.0.200.0070.00016.65
7.0.60.0030.08320.02
7.0.50.0070.04317.86
7.0.40.0000.09720.05
7.0.30.0170.04320.13
7.0.20.0270.05020.23
7.0.10.0000.09720.19
7.0.00.0070.08320.30
5.6.280.0000.05021.13
5.6.210.0030.07020.48
5.6.200.0030.07718.18
5.6.190.0100.08320.46
5.6.180.0170.04320.67
5.6.170.0270.07720.49
5.6.160.0100.07020.49
5.6.150.0100.06318.18
5.6.140.0100.06318.15
5.6.130.0000.06718.18
5.6.120.0070.04720.91
5.6.110.0100.04720.98
5.6.100.0070.05020.98
5.6.90.0070.08321.00
5.6.80.0000.04720.51
5.5.350.0000.05720.34
5.5.340.0070.07017.94
5.5.330.0100.04020.43
5.5.320.4070.03020.30
5.5.310.0230.08320.31
5.5.300.0030.03717.97
5.5.290.0030.06017.93
5.5.280.0170.07720.69
5.5.270.0170.07020.96
5.5.260.0030.04720.82
5.5.250.0030.08020.50
5.5.240.0170.07020.29
5.4.450.0800.05719.48
5.4.440.1000.05719.61
5.4.430.0730.05719.63
5.4.420.1170.05719.61
5.4.410.0730.06019.05
5.4.400.0770.05319.01
5.4.390.0830.05319.01
5.4.380.0800.05318.89
5.4.370.0770.05718.98
5.4.360.0830.05718.98
5.4.350.0900.04319.29
5.4.340.0770.07018.87
5.4.320.1070.05318.84
5.4.310.1000.05718.88
5.4.300.0970.04719.13
5.4.290.0730.05718.83
5.4.280.0730.04719.17
5.4.270.0130.04719.14
5.4.260.0100.05319.15
5.4.250.0030.05719.05
5.4.240.0830.05019.25
5.4.230.1000.05319.28
5.4.220.1200.06719.27
5.4.210.0770.05719.14
5.4.200.0730.05319.26
5.4.190.1030.05018.97
5.4.180.0830.04319.13
5.4.170.0700.05719.14
5.4.160.0800.05019.23
5.4.150.0970.07019.13
5.4.140.1030.07016.42
5.4.130.0830.05016.55
5.4.120.0800.04716.31
5.4.110.0800.04716.53
5.4.100.0900.04016.30
5.4.90.0770.05316.53
5.4.80.0930.03716.61
5.4.70.0330.03016.18
5.4.60.0030.06016.34
5.4.50.0070.07316.41
5.4.40.0100.07016.42
5.4.30.0200.07716.42
5.4.20.0330.05316.43

preferences:
32.18 ms | 401 KiB | 5 Q