3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = array( "text"=>"1,1,1,1,1,1,3,4,4,4,2,2,4,3,5,5,5,5,5,5,5,5,2,4,3,3,2,3,3,3,4,3,3,3,3,3,3,3,3,4,1,4,1,1,4,2,2,2,2,3" ); $data = array_chunk(explode(',', $arr['text']), 10); foreach($data as $datum) { echo array_sum($datum) / count($datum), "\n"; }

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.5.70.0100.00716.78
8.5.60.0120.00616.70
8.5.50.0100.00816.66
8.5.30.0080.01019.64
8.5.20.0080.00919.57
8.5.10.0100.00619.86
8.5.00.0110.01320.11
8.4.210.0130.00519.55
8.4.180.0110.01121.33
8.4.170.0120.00921.93
8.4.160.0120.01223.68
8.4.150.0090.00616.80
8.4.140.0110.00917.62
8.4.130.0120.00917.73
8.4.120.0120.00725.80
8.4.110.0130.00718.82
8.4.100.0090.00417.85
8.4.90.0040.00417.88
8.4.80.0130.00717.78
8.4.70.0080.01318.04
8.4.60.0130.00918.64
8.4.50.0090.00718.76
8.4.40.0080.01219.38
8.4.30.0090.00918.83
8.4.20.0090.00925.97
8.4.10.0170.00324.02
8.3.300.0090.01122.72
8.3.290.0110.01020.67
8.3.280.0090.01120.05
8.3.270.0120.00716.34
8.3.260.0110.00816.64
8.3.250.0100.00818.90
8.3.240.0100.00816.62
8.3.230.0090.01016.55
8.3.220.0110.00716.44
8.3.210.0130.00516.55
8.3.200.0040.00516.80
8.3.190.0010.00718.93
8.3.180.0030.00518.36
8.3.170.0070.01119.07
8.3.160.0080.00620.11
8.3.150.0040.00418.31
8.3.140.0110.00816.36
8.3.130.0030.01218.32
8.3.120.0090.00020.63
8.3.110.0040.00720.94
8.3.100.0000.00816.78
8.3.90.0140.00426.77
8.3.80.0090.00018.43
8.3.70.0150.00618.30
8.3.60.0060.00916.63
8.3.50.0110.00316.34
8.3.40.0070.01020.46
8.3.30.0100.00318.84
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.300.0130.00718.79
8.2.290.0110.00718.69
8.2.280.0100.00718.30
8.2.270.0140.00718.83
8.2.260.0180.00616.47
8.2.250.0040.00416.52
8.2.240.0060.00317.45
8.2.230.0060.00322.58
8.2.220.0000.00924.06
8.2.210.0110.00426.77
8.2.200.0030.00618.08
8.2.190.0040.01816.58
8.2.180.0110.00716.50
8.2.170.0110.00718.96
8.2.160.0030.01222.96
8.2.150.0000.00625.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0090.00020.48
8.2.100.0110.00018.03
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0030.00517.93
8.2.50.0000.00918.07
8.2.40.0090.00019.83
8.2.30.0080.00018.11
8.2.20.0040.00419.39
8.2.10.0040.00417.80
8.2.00.0080.00817.60
8.1.340.0100.01017.43
8.1.330.0100.01216.26
8.1.320.0080.01218.32
8.1.310.0130.00718.24
8.1.300.0120.00617.88
8.1.290.0030.00630.84
8.1.280.0100.00325.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00022.05
8.1.230.0090.00317.45
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01117.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00718.98
8.1.160.0030.00318.84
8.1.150.0000.00718.55
8.1.140.0140.00317.50
8.1.130.0120.00417.42
8.1.120.0130.00317.46
8.1.110.0160.00017.53
8.1.100.0090.00217.43
8.1.90.0040.00617.41
8.1.80.0110.00317.51
8.1.70.0110.00417.47
8.1.60.0090.00317.53
8.1.50.0140.00417.65
8.1.40.0060.00617.53
8.1.30.0110.00717.59
8.1.20.0060.01217.55
8.1.10.0110.00817.71
8.1.00.0090.00917.53
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00718.30
8.0.270.0080.00316.73
8.0.260.0140.00016.80
8.0.250.0120.00316.79
8.0.240.0090.00616.86
8.0.230.0130.00016.86
8.0.220.0100.00516.82
8.0.210.0080.00816.82
8.0.200.0130.00016.80
8.0.190.0130.00316.75
8.0.180.0120.00516.82
8.0.170.0070.00716.82
8.0.160.0130.00316.86
8.0.150.0140.00016.86
8.0.140.0100.00516.79
8.0.130.0120.00216.69
8.0.120.0120.00216.67
8.0.110.0040.00916.72
8.0.100.0080.00816.72
8.0.90.0090.00516.80
8.0.80.0070.00716.83
8.0.70.0110.00416.69
8.0.60.0090.00316.80
8.0.50.0040.00916.80
8.0.30.0090.00416.75
8.0.20.0080.00416.76
8.0.10.0050.00516.80

preferences:
69.62 ms | 1115 KiB | 5 Q