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) { $row['values']['character_length'] += ($result['values']['character_length'] ?? 0); $row['values']['word_count'] += ($result['values']['word_count'] ?? 0); return $row; } ) );

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.0100.00721.22
8.5.20.0090.00917.78
8.5.10.0100.00818.01
8.5.00.0110.01120.02
8.4.180.0150.00719.65
8.4.170.0110.01021.95
8.4.160.0130.00823.84
8.4.150.0070.00516.93
8.4.140.0120.00817.29
8.4.130.0100.00717.73
8.4.120.0050.00523.96
8.4.110.0060.01422.45
8.4.100.0160.00619.41
8.4.90.0110.00618.85
8.4.80.0060.00218.70
8.4.70.0110.00617.93
8.4.60.0120.00818.86
8.4.50.0050.00520.36
8.4.40.0130.00617.59
8.4.30.0140.00718.96
8.4.20.0070.01417.73
8.4.10.0040.00419.30
8.3.300.0120.01020.50
8.3.290.0040.00720.07
8.3.280.0120.00820.35
8.3.270.0120.01116.51
8.3.260.0060.00316.61
8.3.250.0080.01018.96
8.3.240.0120.00716.97
8.3.230.0110.00916.54
8.3.220.0120.00719.23
8.3.210.0050.00216.67
8.3.200.0050.00416.57
8.3.190.0100.00917.08
8.3.180.0100.00518.97
8.3.170.0110.00720.70
8.3.160.0150.00316.52
8.3.150.0040.01517.21
8.3.140.0080.00016.80
8.3.130.0080.00018.23
8.3.120.0060.01019.05
8.3.110.0090.00020.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0050.00518.56
8.3.70.0090.00918.43
8.3.60.0110.01116.50
8.3.50.0160.00616.55
8.3.40.0110.00423.70
8.3.30.0070.00722.05
8.3.20.0000.00724.18
8.3.10.0120.00623.54
8.3.00.0150.00320.72
8.2.300.0120.00718.05
8.2.290.0050.00320.83
8.2.280.0110.00818.37
8.2.270.0120.00618.84
8.2.260.0090.00616.50
8.2.250.0110.00416.78
8.2.240.0040.00416.96
8.2.230.0000.00922.58
8.2.220.0140.00337.54
8.2.210.0040.00426.77
8.2.200.0090.00016.88
8.2.190.0090.00616.58
8.2.180.0120.00616.63
8.2.170.0120.00319.13
8.2.160.0110.00422.96
8.2.150.0090.00025.66
8.2.140.0170.00022.07
8.2.130.0120.00622.06
8.2.120.0040.01420.79
8.2.110.0110.00420.79
8.2.100.0040.00420.84
8.2.90.0090.00020.69
8.2.80.0040.00420.87
8.2.70.0080.00020.67
8.2.60.0030.00520.63
8.2.50.0060.00320.67
8.2.40.0060.00320.52
8.2.30.0050.00320.44
8.2.20.0080.00020.46
8.2.10.0050.00320.55
8.2.00.0050.00320.42
8.1.340.0090.00517.73
8.1.330.0120.00721.95
8.1.320.0120.00616.13
8.1.310.0040.00418.46
8.1.300.0160.00317.89
8.1.290.0090.00030.84
8.1.280.0140.00425.92
8.1.270.0000.00824.02
8.1.260.0080.00023.95
8.1.250.0040.00423.91
8.1.240.0040.00420.32
8.1.230.0000.00820.44
8.1.220.0040.00420.77
8.1.210.0000.00820.41
8.1.200.0050.00320.59
8.1.190.0050.00320.41
8.1.180.0060.00320.29
8.1.170.0080.00020.39
8.1.160.0080.00020.25
8.1.150.0050.00320.40
8.1.140.0080.00020.19
8.1.130.0050.00320.51
8.1.120.0030.00620.45
8.1.110.0030.00520.25
8.1.100.0050.00320.42
8.1.90.0030.00620.32
8.1.80.0050.00318.73
8.1.70.0060.00318.50
8.1.60.0050.00320.48
8.1.50.0080.00020.52
8.1.40.0030.00520.47
8.1.30.0040.00420.48
8.1.20.0000.00820.51
8.1.10.0040.00420.43
8.1.00.0080.00020.27

preferences:
47.43 ms | 991 KiB | 5 Q