3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'url' => 'http://domain1.com', 'domain' => 'domain1.com', 'values' => ['character_length' => 25, 'word_count' => 7] ], [ 'url' => 'http://domain2.com', 'domain' => 'domain2.com', 'values' => ['character_length' => 30, 'word_count' => 7] ] ]; var_export( array_reduce( $array, function($result, $row) { if (!isset($result)) { $result = $row; } else { $result['values']['character_length'] += $row['values']['character_length']; $result['values']['word_count'] += $row['values']['word_count']; } return $result; } ) );

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.30.0120.00521.16
8.5.20.0130.00517.78
8.5.10.0100.00818.21
8.5.00.0120.01020.02
8.4.180.0140.00919.72
8.4.170.0120.00922.00
8.4.160.0130.00823.77
8.4.150.0080.00416.92
8.4.140.0180.00417.75
8.4.130.0080.00317.88
8.4.120.0040.00524.09
8.4.110.0140.00622.44
8.4.100.0130.00817.94
8.4.90.0120.00818.58
8.4.80.0090.01317.80
8.4.70.0040.00417.68
8.4.60.0050.00420.38
8.4.50.0110.00917.87
8.4.40.0140.00717.73
8.4.30.0130.00618.72
8.4.20.0100.01017.85
8.4.10.0000.00919.31
8.3.300.0150.00718.47
8.3.290.0070.00420.13
8.3.280.0110.01218.44
8.3.270.0040.00516.54
8.3.260.0110.00716.62
8.3.250.0130.00618.78
8.3.240.0040.00417.30
8.3.230.0050.00416.65
8.3.220.0140.00217.23
8.3.210.0140.00416.82
8.3.200.0110.01016.78
8.3.190.0080.01116.54
8.3.180.0130.00516.66
8.3.170.0040.00420.73
8.3.160.0180.00017.38
8.3.150.0120.00617.35
8.3.140.0030.00517.20
8.3.130.0040.00416.63
8.3.120.0090.00018.89
8.3.110.0100.00620.94
8.3.100.0080.01124.06
8.3.90.0000.01426.77
8.3.80.0030.00617.97
8.3.70.0140.00718.23
8.3.60.0140.00716.59
8.3.50.0100.01016.70
8.3.40.0090.00623.74
8.3.30.0070.00722.11
8.3.20.0040.00424.18
8.3.10.0120.00623.70
8.3.00.0070.01120.71
8.2.300.0100.01018.10
8.2.290.0100.00920.29
8.2.280.0110.00818.32
8.2.270.0070.01118.98
8.2.260.0120.00620.61
8.2.250.0060.01218.18
8.2.240.0060.00317.05
8.2.230.0120.00322.58
8.2.220.0040.00437.54
8.2.210.0050.00326.77
8.2.200.0060.00318.54
8.2.190.0040.01516.58
8.2.180.0070.01016.32
8.2.170.0070.00719.02
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.01422.08
8.2.130.0070.01122.12
8.2.120.0100.01020.71
8.2.110.0150.00421.05
8.2.100.0070.01120.79
8.2.90.0150.00320.56
8.2.80.0070.01320.96
8.2.70.0100.01020.45
8.2.60.0070.01120.62
8.2.50.0100.01020.45
8.2.40.0130.00720.60
8.2.30.0060.01020.39
8.2.20.0120.00920.51
8.2.10.0080.00820.37
8.2.00.0120.00320.40
8.1.340.0090.00517.62
8.1.330.0100.00922.22
8.1.320.0100.00815.91
8.1.310.0150.00317.00
8.1.300.0100.01018.23
8.1.290.0090.00030.84
8.1.280.0070.01425.92
8.1.270.0060.01323.95
8.1.260.0070.00723.81
8.1.250.0100.01023.82
8.1.240.0040.01820.45
8.1.230.0110.00420.45
8.1.220.0080.00820.82
8.1.210.0150.00020.33
8.1.200.0070.00720.54
8.1.190.0040.01120.41
8.1.180.0110.00420.35
8.1.170.0130.00320.22
8.1.160.0040.01120.25
8.1.150.0040.01120.48
8.1.140.0000.00820.28
8.1.130.0080.00020.64
8.1.120.0080.00020.41
8.1.110.0030.00620.36
8.1.100.0030.00520.38
8.1.90.0060.00320.47
8.1.80.0030.00620.33
8.1.70.0030.00620.38
8.1.60.0050.00320.41
8.1.50.0030.00620.41
8.1.40.0050.00320.54
8.1.30.0050.00320.48
8.1.20.0060.00320.56
8.1.10.0060.00320.40
8.1.00.0080.00020.26

preferences:
51.85 ms | 998 KiB | 5 Q