3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [1, 2, 3, 4, 5]; $sum = array_reduce($arr, function ($carry, $item) { var_dump($item, $carry); }); echo $sum;

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.0060.00916.38
8.3.60.0070.00716.48
8.3.50.0070.00716.29
8.3.40.0160.00618.89
8.3.30.0070.00718.77
8.3.20.0030.00621.89
8.3.10.0080.00021.79
8.3.00.0080.00019.79
8.2.180.0100.01018.41
8.2.170.0210.00022.96
8.2.160.0190.00020.39
8.2.150.0070.00024.18
8.2.140.0030.00724.66
8.2.130.0040.00420.57
8.2.120.0060.00326.35
8.2.110.0060.00621.00
8.2.100.0040.00717.84
8.2.90.0000.00817.75
8.2.80.0060.00319.65
8.2.70.0000.00818.03
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0030.00620.61
8.2.30.0000.00719.23
8.2.20.0070.00018.11
8.2.10.0000.00818.12
8.2.00.0030.00518.16
8.1.280.0080.00825.92
8.1.270.0060.00320.61
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0050.00323.89
8.1.230.0110.00022.67
8.1.220.0000.00817.79
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0090.00017.35
8.1.180.0080.00018.10
8.1.170.0040.00420.08
8.1.160.0070.00018.92
8.1.150.0030.00520.27
8.1.140.0040.00419.48
8.1.130.0030.00718.87
8.1.120.0040.00417.54
8.1.110.0080.00017.29
8.1.100.0050.00217.51
8.1.90.0040.00417.36
8.1.80.0040.00417.34
8.1.70.0030.00317.49
8.1.60.0040.00417.58
8.1.50.0030.00617.41
8.1.40.0080.00017.42
8.1.30.0000.00817.48
8.1.20.0000.00717.64
8.1.10.0040.00417.49
8.1.00.0030.00617.45
8.0.300.0000.00719.71
8.0.290.0040.00416.63
8.0.280.0030.00318.35
8.0.270.0000.00717.25
8.0.260.0000.00618.81
8.0.250.0030.00316.91
8.0.240.0110.00016.92
8.0.230.0000.00716.89
8.0.220.0000.00716.81
8.0.210.0030.00516.66
8.0.200.0000.00616.99
8.0.190.0000.00916.88
8.0.180.0030.00516.93
8.0.170.0040.00416.94
8.0.160.0050.00316.98
8.0.150.0080.00016.78
8.0.140.0000.00716.78
8.0.130.0020.00613.26
8.0.120.0070.00016.86
8.0.110.0000.00716.77
8.0.100.0040.00416.81
8.0.90.0040.00416.89
8.0.80.0130.00316.87
8.0.70.0070.00016.89
8.0.60.0030.00516.74
8.0.50.0070.00016.83
8.0.30.0090.00916.98
8.0.20.0110.00717.40
8.0.10.0000.00716.81
8.0.00.0070.01016.57
7.4.330.0030.00315.55
7.4.320.0060.00016.40
7.4.300.0030.00316.39
7.4.290.0000.00616.64
7.4.280.0070.00016.59
7.4.270.0030.00316.47
7.4.260.0030.00516.46
7.4.250.0030.00616.49
7.4.240.0070.00016.62
7.4.230.0050.00316.50
7.4.220.0110.00616.46
7.4.210.0030.01016.70
7.4.200.0000.00716.59
7.4.160.0140.00316.57
7.4.150.0070.01017.40
7.4.140.0170.00817.86
7.4.130.0090.01216.41
7.4.120.0140.00516.47
7.4.110.0150.00316.64
7.4.100.0150.00416.44
7.4.90.0090.00916.55
7.4.80.0120.00619.39
7.4.70.0090.00916.44
7.4.60.0090.00616.55
7.4.50.0070.01116.45
7.4.40.0080.00816.53
7.4.30.0140.00316.43
7.4.00.0040.01214.89
7.3.330.0030.00313.13
7.3.320.0000.00513.37
7.3.310.0080.00016.34
7.3.300.0040.00416.35
7.3.290.0080.00916.31
7.3.280.0090.01016.27
7.3.270.0120.01217.40
7.3.260.0060.01216.38
7.3.250.0090.01216.58
7.3.240.0120.00616.38
7.3.230.0040.01316.23
7.3.210.0070.01416.33
7.3.200.0100.00716.34
7.3.190.0130.00316.37
7.3.180.0130.00316.48
7.3.170.0150.00716.56
7.3.160.0160.00016.24
7.3.120.0110.00514.85
7.3.110.0060.00914.77
7.3.100.0070.00714.93
7.3.90.0090.00514.62
7.3.80.0080.00514.80
7.3.70.0050.01214.77
7.3.60.0030.01014.88
7.3.50.0090.00614.81
7.3.40.0050.00514.80
7.3.30.0010.01114.94
7.3.20.0020.01116.66
7.3.10.0090.00516.74
7.3.00.0050.00816.58
7.2.330.0060.01216.53
7.2.320.0110.01016.50
7.2.310.0060.01616.68
7.2.300.0170.00016.77
7.2.290.0090.01416.45
7.2.250.0070.01115.26
7.2.240.0060.01114.98
7.2.230.0030.01214.99
7.2.220.0080.00615.05
7.2.210.0050.01114.93
7.2.200.0080.01015.00
7.2.190.0050.00914.92
7.2.180.0090.00514.72
7.2.170.0050.00914.95
7.2.60.0070.00716.76
7.1.330.0070.00715.84
7.1.320.0070.00715.65
7.1.310.0030.01015.85
7.1.300.0060.00815.75
7.1.290.0030.00715.61
7.1.280.0050.00715.67
7.1.270.0070.00415.83
7.1.260.0060.00615.72
7.1.200.0060.00015.66
7.1.70.0100.00317.13
7.1.60.0700.01333.32
7.1.50.0730.00732.65
7.1.40.1070.01032.46
7.1.30.0830.01032.70
7.1.20.0700.01332.82
7.1.10.0570.00314.81
7.1.00.0530.00714.90
7.0.200.0870.00714.94
7.0.190.0470.01314.63
7.0.180.0800.01714.45
7.0.170.0870.01314.41
7.0.160.0630.00714.33
7.0.150.0730.00314.18
7.0.140.0030.01014.38
7.0.130.0470.01014.67
7.0.120.0530.01014.57
7.0.110.0570.01014.43
7.0.100.0500.00714.51
7.0.90.0770.01014.49
7.0.80.0600.01014.56
7.0.70.0470.00714.18
7.0.60.0730.01014.39
7.0.50.0430.01714.43
7.0.40.0470.01314.54
7.0.30.0470.01714.57
7.0.20.0770.00714.77
7.0.10.0700.00714.63
7.0.00.0470.01014.48

preferences:
53.84 ms | 400 KiB | 5 Q