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); }); 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.60.0070.01116.50
8.3.50.0060.00816.35
8.3.40.0150.00618.75
8.3.30.0000.01418.58
8.3.20.0000.00721.89
8.3.10.0030.00521.95
8.3.00.0040.00419.68
8.2.180.0120.00618.29
8.2.170.0170.00322.96
8.2.160.0100.00620.36
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00020.39
8.2.120.0040.00426.35
8.2.110.0060.00320.96
8.2.100.0120.00017.78
8.2.90.0040.00417.50
8.2.80.0030.00717.97
8.2.70.0000.00817.92
8.2.60.0030.00518.02
8.2.50.0050.00318.10
8.2.40.0000.00720.42
8.2.30.0070.00019.17
8.2.20.0070.00018.11
8.2.10.0000.00718.06
8.2.00.0070.00018.16
8.1.280.0060.00925.92
8.1.270.0050.00320.72
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0030.00623.87
8.1.230.0070.00422.75
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0020.00519.95
8.1.160.0070.00018.80
8.1.150.0070.00020.12
8.1.140.0070.00019.57
8.1.130.0040.00718.76
8.1.120.0070.00017.48
8.1.110.0000.00817.38
8.1.100.0000.00817.44
8.1.90.0040.00417.49
8.1.80.0000.00717.52
8.1.70.0000.00717.38
8.1.60.0000.00817.63
8.1.50.0050.00317.53
8.1.40.0040.00417.57
8.1.30.0020.00517.55
8.1.20.0000.00817.68
8.1.10.0040.00417.54
8.1.00.0000.00717.47
8.0.300.0000.00719.60
8.0.290.0000.00716.63
8.0.280.0040.00418.40
8.0.270.0080.00017.26
8.0.260.0070.00018.95
8.0.250.0070.00016.80
8.0.240.0090.00016.87
8.0.230.0030.00316.93
8.0.220.0050.00216.84
8.0.210.0030.00316.83
8.0.200.0030.00316.98
8.0.190.0040.00417.02
8.0.180.0050.00316.93
8.0.170.0000.00716.81
8.0.160.0000.00816.91
8.0.150.0030.00516.90
8.0.140.0000.00716.88
8.0.130.0000.00613.30
8.0.120.0000.00716.89
8.0.110.0030.00516.78
8.0.100.0030.00516.93
8.0.90.0090.00016.89
8.0.80.0040.01116.80
8.0.70.0080.00017.02
8.0.60.0080.00016.91
8.0.50.0080.00016.72
8.0.30.0070.00917.16
8.0.20.0160.01217.40
8.0.10.0000.00816.99
8.0.00.0140.00316.72
7.4.330.0000.00515.55
7.4.320.0030.00316.55
7.4.300.0040.00416.64
7.4.290.0030.00316.51
7.4.280.0040.00416.60
7.4.270.0040.00416.60
7.4.260.0080.00016.41
7.4.250.0000.00716.48
7.4.240.0070.00016.53
7.4.230.0000.00716.70
7.4.220.0060.00916.52
7.4.210.0060.00716.54
7.4.200.0070.00016.70
7.4.160.0150.00516.46
7.4.150.0150.00917.40
7.4.140.0240.01317.86
7.4.130.0120.00916.54
7.4.120.0140.00716.53
7.4.110.0160.00616.48
7.4.100.0030.01516.46
7.4.90.0070.01016.56
7.4.80.0040.01219.39
7.4.70.0120.00616.59
7.4.60.0130.00316.54
7.4.50.0040.01116.38
7.4.40.0050.01116.53
7.4.30.0030.01316.44
7.4.00.0070.00714.95
7.3.330.0030.00313.04
7.3.320.0000.00513.37
7.3.310.0040.00416.38
7.3.300.0030.00316.25
7.3.290.0040.01016.29
7.3.280.0080.00916.30
7.3.270.0110.00717.40
7.3.260.0130.00616.51
7.3.250.0100.00916.53
7.3.240.0080.00816.60
7.3.230.0140.00316.41
7.3.210.0090.01316.45
7.3.200.0070.01016.29
7.3.190.0150.00616.52
7.3.180.0060.00916.29
7.3.170.0060.01316.39
7.3.160.0030.01516.65
7.3.10.0060.01016.74
7.3.00.0110.00316.41
7.2.330.0100.00616.38
7.2.320.0100.00716.77
7.2.310.0100.01316.49
7.2.300.0140.00316.55
7.2.290.0060.01116.71
7.2.130.0100.00316.98
7.2.120.0130.00316.93
7.2.110.0030.01016.72
7.2.100.0030.01416.93
7.2.90.0030.00816.83
7.2.80.0060.00916.77
7.2.70.0070.01117.00
7.2.60.0070.01016.73
7.2.50.0100.00316.75
7.2.40.0030.00716.91
7.2.30.0070.00716.87
7.2.20.0040.01216.77
7.2.10.0120.00416.98
7.2.00.0030.00818.15
7.1.250.0070.00315.81
7.1.200.0060.00315.66
7.1.100.0000.01118.32
7.1.70.0050.00217.16
7.1.60.0670.01333.21
7.1.50.0830.02032.66
7.1.40.0600.01332.74
7.1.30.1000.02032.54
7.1.20.0830.01732.68
7.1.10.0870.01014.79
7.1.00.1100.01714.79
7.0.200.0630.00714.85
7.0.190.0870.01014.97
7.0.180.0530.01014.58
7.0.170.0630.01314.34
7.0.160.0600.01014.38
7.0.150.0530.02014.28
7.0.140.0700.01014.65
7.0.130.0730.00714.71
7.0.120.0770.01014.56
7.0.110.0600.01714.40
7.0.100.0800.01014.39
7.0.90.0800.01314.40
7.0.80.0600.01714.55
7.0.70.0830.01714.55
7.0.60.0600.01314.33
7.0.50.0630.00714.75
7.0.40.0900.01314.79
7.0.30.0700.01314.79
7.0.20.0870.00714.52
7.0.10.0770.01014.73
7.0.00.1170.01314.57

preferences:
88.63 ms | 401 KiB | 5 Q