3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1, "apples",2, "oranges",3, "plums"); // array_filter() $filtered = array_filter( $array, "ctype_alpha"); $nu = array_map( "strtoupper", $filtered); // array_walk $f = function(&$item,$key,$prefix) { $item = "$key: $prefix: $item"; }; array_walk($nu, $f,"fruit"); 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.70.0070.01016.75
8.3.60.0090.01218.65
8.3.50.0090.01216.54
8.3.40.0110.00418.75
8.3.30.0090.00618.84
8.3.20.0040.00418.94
8.3.10.0040.01121.85
8.3.00.0110.00719.41
8.2.180.0180.00416.50
8.2.170.0070.00722.96
8.2.160.0120.00619.21
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00020.69
8.2.110.0030.00622.29
8.2.100.0000.01217.78
8.2.90.0000.00817.91
8.2.80.0040.00418.22
8.2.70.0000.00817.63
8.2.60.0060.00317.50
8.2.50.0040.00417.63
8.2.40.0000.00818.16
8.2.30.0040.00418.08
8.2.20.0030.00518.05
8.2.10.0050.00318.12
8.2.00.0000.00718.03
8.1.280.0070.01025.92
8.1.270.0050.00223.79
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0100.00621.63
8.1.230.0090.00323.76
8.1.220.0000.00817.74
8.1.210.0050.00320.50
8.1.200.0060.00317.38
8.1.190.0000.00817.22
8.1.180.0060.00519.04
8.1.170.0070.00418.45
8.1.160.0020.00518.86
8.1.150.0070.00020.11
8.1.140.0030.00719.66
8.1.130.0040.00418.94
8.1.120.0000.00817.40
8.1.110.0000.00717.48
8.1.100.0040.00417.33
8.1.90.0000.00917.45
8.1.80.0080.00017.45
8.1.70.0000.00817.51
8.1.60.0000.00817.61
8.1.50.0040.00417.55
8.1.40.0050.00317.52
8.1.30.0040.00417.63
8.1.20.0040.00417.62
8.1.10.0050.00317.52
8.1.00.0050.00217.47
8.0.300.0040.00420.09
8.0.290.0030.00516.75
8.0.280.0040.00418.43
8.0.270.0030.00316.73
8.0.260.0070.00018.38
8.0.250.0000.00716.99
8.0.240.0080.00016.85
8.0.230.0030.00516.88
8.0.220.0070.00016.86
8.0.210.0040.00416.94
8.0.200.0000.01116.85
8.0.190.0030.00616.92
8.0.180.0000.00716.96
8.0.170.0030.00516.95
8.0.160.0140.00317.00
8.0.150.0060.00316.80
8.0.140.0100.00016.83
8.0.130.0030.00313.36
8.0.120.0040.00416.88
8.0.110.0010.00716.83
8.0.100.0040.00416.88
8.0.90.0000.00716.93
8.0.80.0090.01316.89
8.0.70.0040.01816.95
8.0.60.0110.01116.80
8.0.50.0060.00916.82
8.0.30.0090.00916.89
8.0.20.0090.01217.25
8.0.10.0100.01116.98
8.0.00.0090.01016.93
7.4.330.0030.00316.48
7.4.320.0030.00316.41
7.4.300.0060.00016.51
7.4.290.0070.00016.46
7.4.280.0030.00316.50
7.4.270.0040.00416.52
7.4.260.0000.00716.47
7.4.250.0000.00716.46
7.4.240.0030.00316.54
7.4.230.0000.00716.72
7.4.220.0110.00616.54
7.4.210.0070.00916.51
7.4.200.0110.00416.49
7.4.190.0060.00916.63
7.4.180.0120.00316.73
7.4.160.0080.01016.50
7.4.150.0110.00916.79
7.4.140.0110.00917.24
7.4.130.0100.00716.37
7.4.120.0110.01116.45
7.4.110.0090.00816.57
7.4.100.0050.01416.51
7.4.90.0060.01116.45
7.4.80.0120.00617.43
7.4.70.0110.00716.45
7.4.60.0060.01216.48
7.4.50.0090.00716.39
7.4.40.0090.00916.36
7.4.30.0130.00416.58
7.4.20.0040.01316.58
7.4.10.0130.00516.43
7.4.00.0090.00815.67
7.3.330.0000.00513.40
7.3.320.0060.00013.40
7.3.310.0050.00216.48
7.3.300.0000.00716.31
7.3.290.0090.00616.38
7.3.280.0060.01016.36
7.3.270.0080.00916.69
7.3.260.0100.00916.35
7.3.250.0100.00816.50
7.3.240.0120.00816.39
7.3.230.0100.00916.42
7.3.220.0100.00816.28
7.3.210.0120.00416.34
7.3.200.0110.00716.32
7.3.190.0100.00616.30
7.3.180.0100.00816.47
7.3.170.0120.00516.36
7.3.160.0100.00716.35
7.3.150.0090.00916.32
7.3.140.0120.00316.29
7.3.130.0100.00816.39
7.3.120.0120.00715.61
7.3.110.0080.01015.71
7.3.100.0090.01015.69
7.3.90.0110.00615.84
7.3.80.0080.00815.57
7.3.70.0080.00915.57
7.3.60.0070.00915.54
7.3.50.0100.00615.51
7.3.40.0090.00815.50
7.3.30.0080.00815.58
7.3.20.0320.00815.97
7.3.10.0220.00515.97
7.3.00.0220.00716.23
7.2.340.0280.01216.39
7.2.330.0190.00916.42
7.2.320.0220.00616.62
7.2.310.0170.00816.57
7.2.300.0110.01316.46
7.2.290.0180.00716.60
7.2.280.0130.01316.48
7.2.270.0150.01216.50
7.2.260.0190.00716.43
7.2.250.0150.00715.96
7.2.240.0180.00915.78
7.2.230.0200.00416.02
7.2.220.0130.00915.86
7.2.210.0140.00715.82
7.2.200.0150.00715.66
7.2.190.0130.01015.72
7.2.180.0140.00815.73
7.2.170.0130.00915.72
7.2.160.0180.01115.92
7.2.150.0300.00616.33
7.2.140.0110.01116.31
7.2.130.0370.00916.55
7.2.120.0370.00816.52
7.2.110.0290.00916.43
7.2.100.0310.00716.51
7.2.90.0260.00816.49
7.2.80.0300.00816.49
7.2.70.0320.00816.49
7.2.60.0410.00916.23
7.2.50.0390.00816.17
7.2.40.0370.00716.33
7.2.30.0450.00816.33
7.2.20.0350.00916.32
7.2.10.0560.00816.34
7.2.00.0480.00716.28
7.1.330.0150.00915.23
7.1.320.0190.01015.26
7.1.310.0140.01115.41
7.1.300.0140.01015.36
7.1.290.0180.00715.34
7.1.280.0230.00815.34
7.1.270.0140.01015.42
7.1.260.0170.01015.54
7.1.250.0500.00615.34
7.1.240.0400.00815.25
7.1.230.0340.00715.17
7.1.220.0300.01015.25
7.1.210.0320.00815.28
7.1.200.0260.01015.39
7.1.190.0330.00715.30
7.1.180.0340.00515.35
7.1.170.0540.00615.03
7.1.160.0430.00915.42
7.1.150.0410.00815.47
7.1.140.0560.00615.37
7.1.130.0510.00915.48
7.1.120.0490.01015.51
7.1.110.0500.01015.35
7.1.100.0490.01115.36
7.1.90.0440.01015.35
7.1.80.0350.00915.77
7.1.70.0460.00715.66
7.1.60.0380.00819.69
7.1.50.0330.01121.41
7.1.40.0340.01221.18
7.1.30.0370.00921.27
7.1.20.0380.00821.30
7.1.10.0650.00815.31
7.1.00.0340.00815.33
7.0.330.0590.01015.00
7.0.320.0400.00915.00
7.0.310.0320.00914.86
7.0.300.0500.00614.72
7.0.290.0500.00815.23
7.0.280.0290.00614.93
7.0.270.0510.00815.20
7.0.260.0490.01015.15
7.0.250.0560.00815.06
7.0.240.0490.00715.14
7.0.230.0410.01215.11
7.0.220.0510.01015.09
7.0.210.0430.00914.92
7.0.200.0330.00815.36
7.0.190.0330.00715.10
7.0.180.0290.00814.96
7.0.170.0340.01015.05
7.0.160.0270.00914.98
7.0.150.0330.00914.96
7.0.140.0320.01014.92
7.0.130.0340.00915.07
7.0.120.0280.00815.00
7.0.110.0260.00814.99
7.0.100.0220.00914.96
7.0.90.0270.01314.94
7.0.80.0270.00814.93
7.0.70.0260.00715.01
7.0.60.0280.00914.71
7.0.50.0350.00714.99
7.0.40.0320.01014.98
7.0.30.0170.00915.08
7.0.20.0290.00814.97
7.0.10.0310.01114.99
7.0.00.0290.00815.02
5.6.400.0140.01215.33
5.6.390.0150.01015.20
5.6.380.0170.00815.04
5.6.370.0210.00815.25
5.6.360.0190.00815.34
5.6.350.0170.00915.16
5.6.340.0170.00915.24
5.6.330.0170.01215.27
5.6.320.0200.01015.35
5.6.310.0200.00615.29
5.6.300.0150.03117.19
5.6.290.0150.02717.25
5.6.280.0120.02917.28
5.6.270.0110.03117.27
5.6.260.0170.02717.34
5.6.250.0130.03217.23
5.6.240.0160.03217.34
5.6.230.0160.03117.31
5.6.220.0120.03317.32
5.6.210.0160.02517.27
5.6.200.0140.03217.31
5.6.190.0160.02717.29
5.6.180.0170.02517.30
5.6.170.0170.02417.31
5.6.160.0140.02817.35
5.6.150.0150.02617.35
5.6.140.0160.02817.31
5.6.130.0190.02517.32
5.6.120.0160.02617.33
5.6.110.0190.02617.34
5.6.100.0140.03317.36
5.6.90.0180.02917.29
5.6.80.0160.02617.04
5.6.70.0150.02717.04
5.6.60.0160.02617.06
5.6.50.0160.02817.04
5.6.40.0220.02517.03
5.6.30.0140.03117.03
5.6.20.0180.02416.94
5.6.10.0170.02616.98
5.6.00.0150.02817.01

preferences:
62.1 ms | 401 KiB | 5 Q