3v4l.org

run code in 300+ PHP versions simultaneously
<?php function reducea($a1,$b1){ return $b1; } $arr =array("dog","cat","milk"); print_r(array_reduce($arr,"reducea"));

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.0140.00418.43
8.3.50.0170.00522.80
8.3.40.0110.00418.71
8.3.30.0130.00318.96
8.3.20.0050.00220.13
8.3.10.0080.00023.66
8.3.00.0030.00619.13
8.2.180.0070.00718.16
8.2.170.0170.00322.96
8.2.160.0070.00720.43
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00820.93
8.2.110.0030.00620.56
8.2.100.0040.00819.51
8.2.90.0030.00619.28
8.2.80.0000.00817.97
8.2.70.0050.00517.63
8.2.60.0050.00317.43
8.2.50.0080.00018.07
8.2.40.0040.00818.05
8.2.30.0040.00418.00
8.2.20.0000.00817.68
8.2.10.0000.00717.98
8.2.00.0040.00417.59
8.1.280.0100.01025.92
8.1.270.0050.00323.92
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00623.87
8.1.230.0070.00419.06
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0030.00618.48
8.1.160.0070.00021.92
8.1.150.0070.00018.71
8.1.140.0000.00717.32
8.1.130.0000.00817.74
8.1.120.0040.00417.30
8.1.110.0030.00617.41
8.1.100.0000.00717.39
8.1.90.0040.00417.31
8.1.80.0000.00817.40
8.1.70.0030.00317.28
8.1.60.0040.00417.52
8.1.50.0000.00817.43
8.1.40.0040.00417.32
8.1.30.0000.00817.57
8.1.20.0000.00717.57
8.1.10.0000.00717.49
8.1.00.0070.00017.35
8.0.300.0040.00418.77
8.0.290.0060.00316.58
8.0.280.0030.00518.23
8.0.270.0000.00717.18
8.0.260.0030.00317.07
8.0.250.0000.00716.79
8.0.240.0000.00716.86
8.0.230.0070.00016.88
8.0.220.0030.00316.73
8.0.210.0040.00416.85
8.0.200.0030.00316.82
8.0.190.0030.00616.96
8.0.180.0030.00316.78
8.0.170.0080.00016.79
8.0.160.0000.00716.81
8.0.150.0050.00316.81
8.0.140.0070.00016.81
8.0.130.0000.00613.35
8.0.120.0040.00416.64
8.0.110.0000.00716.80
8.0.100.0000.00716.70
8.0.90.0070.00016.71
8.0.80.0090.00616.89
8.0.70.0040.00416.89
8.0.60.0000.00816.68
8.0.50.0000.00816.83
8.0.30.0150.00317.13
8.0.20.0160.00717.40
8.0.10.0040.00416.79
8.0.00.0100.00816.63
7.4.330.0020.00215.00
7.4.320.0000.00716.55
7.4.300.0030.00316.55
7.4.290.0040.00416.44
7.4.280.0040.00416.48
7.4.270.0030.00316.53
7.4.260.0030.00316.45
7.4.250.0000.00816.42
7.4.240.0030.00416.55
7.4.230.0030.00316.26
7.4.220.0060.01216.52
7.4.210.0060.00916.55
7.4.200.0000.00716.28
7.4.160.0060.01016.31
7.4.150.0030.01417.40
7.4.140.0080.01017.86
7.4.130.0110.00516.62
7.4.120.0090.00816.39
7.4.110.0140.00316.37
7.4.100.0100.00716.30
7.4.90.0130.00316.46
7.4.80.0140.00519.39
7.4.70.0080.00816.36
7.4.60.0130.00316.53
7.4.50.0050.00316.42
7.4.40.0190.00316.43
7.4.30.0030.01416.36
7.4.00.0100.00314.66
7.3.330.0020.00213.00
7.3.320.0020.00213.10
7.3.310.0000.00716.20
7.3.300.0050.00216.08
7.3.290.0130.00916.18
7.3.280.0060.01016.18
7.3.270.0060.01217.40
7.3.260.0130.00916.29
7.3.250.0100.00616.35
7.3.240.0130.00316.15
7.3.230.0030.01316.39
7.3.210.0070.01016.59
7.3.200.0150.00319.39
7.3.190.0090.01216.45
7.3.180.0030.01316.11
7.3.170.0100.00716.32
7.3.160.0080.00816.39
7.3.10.0100.00616.22
7.3.00.0030.01316.16
7.2.330.0130.00316.27
7.2.320.0090.00616.53
7.2.310.0100.00716.45
7.2.300.0110.00616.39
7.2.290.0160.00616.61
7.2.130.0150.00616.25
7.2.120.0000.01516.04
7.2.110.0060.00916.19
7.2.100.0140.00016.36
7.2.90.0160.00816.41
7.2.80.0100.00616.05
7.2.70.0040.01116.34
7.2.60.0090.00916.48
7.2.50.0040.00916.62
7.2.40.0000.01016.09
7.2.30.0030.01216.09
7.2.20.0060.00616.36
7.2.10.0110.00716.44
7.2.00.0110.00617.78
7.1.250.0200.00715.50
7.1.200.0060.00315.53
7.1.100.0060.00317.97
7.1.70.0000.00717.25
7.1.60.0180.00719.40
7.1.50.0100.01416.52
7.1.00.0030.07722.40
7.0.200.0000.00716.77
7.0.140.0100.07022.09
7.0.60.0130.05019.90
7.0.50.0100.04317.72
7.0.40.0130.05320.26
7.0.30.0430.06720.09
7.0.20.0100.06020.33
7.0.10.0130.08720.08
7.0.00.0030.04320.23
5.6.280.0100.06721.02
5.6.210.0070.05720.50
5.6.200.0200.07018.16
5.6.190.0030.04720.46
5.6.180.0300.04320.63
5.6.170.0200.05720.55
5.6.160.0100.08020.55
5.6.150.0070.08318.29
5.6.140.0070.08318.17
5.6.130.0200.07018.28
5.6.120.0030.08321.00
5.6.110.0070.08320.99
5.6.100.0230.05320.89
5.6.90.0130.08021.08
5.6.80.0130.06720.36
5.5.350.0230.07320.41
5.5.340.0070.08717.98
5.5.330.0030.04020.40
5.5.320.0470.03720.32
5.5.310.0270.06720.34
5.5.300.0070.07017.95
5.5.290.0070.07318.06
5.5.280.0100.06020.88
5.5.270.0070.08320.78
5.5.260.0030.07720.76
5.5.250.0030.05020.69
5.5.240.0200.05320.23
5.4.450.1500.03719.39
5.4.440.1800.04019.48
5.4.430.1630.04019.21
5.4.420.1500.03719.43
5.4.410.1730.04719.40
5.4.400.1830.03718.76
5.4.390.1470.04019.06
5.4.380.1700.05019.18
5.4.370.1800.04319.07
5.4.360.1700.04018.99
5.4.350.0030.03719.05
5.4.340.0070.07719.16
5.4.320.0900.03719.22
5.4.310.1630.03719.06
5.4.300.1470.04318.88
5.4.290.1970.03719.00
5.4.280.2130.04719.13
5.4.270.1870.03719.20
5.4.260.1630.03018.78
5.4.250.1570.03719.31
5.4.240.1870.04019.00
5.4.230.1570.03719.16
5.4.220.1670.04318.85
5.4.210.1130.05019.20
5.4.200.0000.05319.11
5.4.190.0100.03719.31
5.4.180.0900.03719.15
5.4.170.1600.03018.88
5.4.160.1530.04019.21
5.4.150.1570.03718.89
5.4.140.1630.03016.31
5.4.130.1470.04316.32
5.4.120.1630.03016.29
5.4.110.1530.03716.56
5.4.100.1530.03316.45
5.4.90.1570.03316.41
5.4.80.1570.03316.36
5.4.70.1600.03016.50
5.4.60.1170.03716.54
5.4.50.0070.04016.51
5.4.40.0030.05316.14
5.4.30.0700.04316.50
5.4.20.1630.02716.22
5.4.10.1570.03316.51
5.4.00.1630.03315.95
5.3.290.1670.03714.77
5.3.280.1670.03714.50
5.3.270.1600.04014.61
5.3.260.1470.04014.53
5.3.250.1430.04314.61
5.3.240.1570.03314.57
5.3.230.1700.05014.65
5.3.220.1470.03714.68
5.3.210.1430.03714.57
5.3.200.0070.05014.58
5.3.190.0100.04014.55
5.3.180.0930.03714.62
5.3.170.1630.04314.57
5.3.160.1770.04714.61
5.3.150.1730.03714.53
5.3.140.1470.04014.63
5.3.130.1430.04314.63
5.3.120.1500.03314.46
5.3.110.1530.04314.56
5.3.100.1400.04314.01
5.3.90.1600.03714.25
5.3.80.1630.04713.93
5.3.70.1730.04013.91
5.3.60.0600.04714.00
5.3.50.0070.03314.03
5.3.40.0130.03713.87
5.3.30.1700.05013.91
5.3.20.1600.03713.61
5.3.10.1700.03313.57
5.3.00.1570.03713.75
5.2.170.1500.03311.00
5.2.160.1530.03311.07
5.2.150.1030.04011.29
5.2.140.1470.03311.19
5.2.130.1270.02311.02
5.2.120.1300.03711.19
5.2.110.1200.03011.25
5.2.100.1070.03311.05
5.2.90.1270.03011.22
5.2.80.0330.02711.16
5.2.70.0030.02711.00
5.2.60.0030.02710.97
5.2.50.0630.03011.02
5.2.40.1000.03010.92
5.2.30.1000.03010.89
5.2.20.1000.03010.89
5.2.10.0800.03310.87
5.2.00.1030.02310.64
5.1.60.1030.02710.08
5.1.50.1100.0209.92
5.1.40.0870.03010.05
5.1.30.1070.02310.34
5.1.20.0670.02310.27
5.1.10.0670.02710.04
5.1.00.0900.02710.21
5.0.50.0530.0178.55
5.0.40.0430.0208.56
5.0.30.0570.0278.22
5.0.20.0670.0238.22
5.0.10.0500.0178.22
5.0.00.0400.0338.22
4.4.90.0030.0138.22
4.4.80.0000.0178.22
4.4.70.0000.0208.22
4.4.60.0000.0178.22
4.4.50.0030.0178.22
4.4.40.0000.0278.22
4.4.30.0000.0178.22
4.4.20.0170.0138.22
4.4.10.0530.0178.22
4.4.00.0530.0238.22
4.3.110.0530.0178.22
4.3.100.0030.0178.22
4.3.90.0000.0178.22
4.3.80.0000.0238.22
4.3.70.0030.0108.22
4.3.60.0030.0138.22
4.3.50.0000.0138.22
4.3.40.0030.0208.22
4.3.30.0000.0178.22
4.3.20.0000.0138.22
4.3.10.0030.0138.22
4.3.00.0000.0138.22

preferences:
41.37 ms | 401 KiB | 5 Q