3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["firstname" => "John", "lastname" => "", "email" => "", "uri" => ""], ["firstname" => "", "lastname" => "Smith", "email" => "", "uri" => ""], ["firstname" => "", "lastname" => "", "email" => "john@example.org", "uri" => ""] ]; var_export( array_reduce( $array, function($carry, $row) { $carry = array_merge($carry, array_filter($row, 'strlen')); return $carry; }, array_shift($array) ) );

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.4.130.0110.00917.66
8.4.120.0140.00720.32
8.4.110.0040.00519.04
8.4.100.0070.00317.70
8.4.90.0140.00617.70
8.4.80.0120.00417.53
8.4.70.0140.00617.59
8.4.60.0060.00618.97
8.4.50.0110.00922.44
8.4.40.0040.01119.26
8.4.30.0130.00620.36
8.4.20.0130.00318.74
8.4.10.0100.01017.59
8.3.260.0130.00616.45
8.3.250.0100.01018.99
8.3.240.0100.01016.41
8.3.230.0100.00816.82
8.3.220.0130.00618.45
8.3.210.0050.00316.40
8.3.200.0030.00616.46
8.3.190.0150.00917.00
8.3.180.0110.00416.55
8.3.170.0100.01017.03
8.3.160.0090.00920.31
8.3.150.0130.00318.36
8.3.140.0070.00716.56
8.3.130.0000.00918.42
8.3.120.0040.00418.86
8.3.110.0090.00020.94
8.3.100.0050.00324.06
8.3.90.0040.00426.77
8.3.80.0040.00719.36
8.3.70.0070.00718.40
8.3.60.0140.00316.63
8.3.50.0100.00716.36
8.3.40.0150.00018.73
8.3.30.0090.00618.50
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0050.00326.16
8.2.290.0120.00620.65
8.2.280.0120.00818.29
8.2.270.0070.01017.49
8.2.260.0080.00016.48
8.2.250.0030.00618.75
8.2.240.0030.00618.89
8.2.230.0070.00322.58
8.2.220.0030.00637.54
8.2.210.0110.00426.77
8.2.200.0040.00818.88
8.2.190.0040.01218.04
8.2.180.0100.00725.92
8.2.170.0090.00618.79
8.2.160.0130.00322.96
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0080.00026.35
8.2.110.0060.00319.27
8.2.100.0090.00317.66
8.2.90.0000.00817.91
8.2.80.0030.00618.16
8.2.70.0060.00317.50
8.2.60.0000.00818.22
8.2.50.0040.00418.07
8.2.40.0040.00418.35
8.2.30.0040.00417.96
8.2.20.0070.00017.94
8.2.10.0000.00719.43
8.2.00.0000.00919.30
8.1.330.0120.00716.58
8.1.320.0100.01016.21
8.1.310.0080.00018.21
8.1.300.0030.01220.15
8.1.290.0050.00530.84
8.1.280.0100.00725.92
8.1.270.0040.00423.91
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0060.00323.98
8.1.230.0070.00320.89
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0070.00317.38
8.1.180.0040.00418.10
8.1.170.0000.00818.96
8.1.160.0000.00818.89
8.1.150.0000.00718.88
8.1.140.0000.00718.92
8.1.130.0070.00020.18
8.1.120.0070.00017.49
8.1.110.0070.00017.35
8.1.100.0070.00017.46
8.1.90.0070.00017.46
8.1.80.0040.00417.46
8.1.70.0040.00417.52
8.1.60.0000.00817.48
8.1.50.0000.00817.40
8.1.40.0040.00417.52
8.1.30.0080.00017.61
8.1.20.0030.00617.54
8.1.10.0000.00717.55
8.1.00.0040.00417.45
8.0.300.0030.00320.03
8.0.290.0040.00416.75
8.0.280.0030.00318.42
8.0.270.0070.00017.81
8.0.260.0030.00318.38
8.0.250.0050.00216.78
8.0.240.0050.00316.90
8.0.230.0000.00716.87
8.0.220.0000.00816.86
8.0.210.0000.00716.69
8.0.200.0000.00716.92
8.0.190.0090.00016.91
8.0.180.0070.00016.82
8.0.170.0030.00516.81
8.0.160.0040.00316.84
8.0.150.0070.00316.83
8.0.140.0000.00816.73
8.0.130.0030.00313.30
8.0.120.0040.00416.80
8.0.110.0000.00816.91
8.0.100.0000.00816.86
8.0.90.0000.00816.66
8.0.80.0090.01016.87
8.0.70.0050.00216.70
8.0.60.0050.00316.93
8.0.50.0000.00716.87
8.0.30.0060.01116.85
8.0.20.0130.01016.96
8.0.10.0120.00916.95
8.0.00.0150.00617.07
7.4.330.0000.00415.55
7.4.320.0000.00616.53
7.4.300.0070.00016.60
7.4.290.0040.00416.37
7.4.280.0040.00416.59
7.4.270.0030.00316.60
7.4.260.0060.00013.37
7.4.250.0030.00316.41
7.4.240.0040.00316.49
7.4.230.0000.00716.39
7.4.220.0030.00416.59
7.4.210.0070.01116.46
7.4.200.0040.00416.71
7.4.160.0030.01216.49
7.4.150.0090.00616.41
7.4.140.0080.00616.55
7.4.130.0090.01216.45
7.4.120.0070.01416.57
7.4.110.0130.00616.34
7.4.100.0060.01316.52
7.4.90.0110.00816.50
7.4.80.0070.01316.44
7.4.70.0030.01216.52
7.4.60.0060.01016.58
7.4.50.0120.00616.17
7.4.40.0120.00616.32
7.4.30.0100.00616.28
7.4.20.0040.01116.17
7.4.10.0090.00616.37
7.4.00.0030.01316.39
7.3.330.0000.00716.24
7.3.320.0000.00613.08
7.3.310.0040.00416.34
7.3.300.0000.00716.10
7.3.290.0020.01316.26
7.3.270.0060.00816.26
7.3.260.0070.01316.21
7.3.250.0040.01316.25
7.3.240.0080.01216.12
7.3.230.0160.00316.22
7.3.220.0060.01316.25
7.3.210.0030.01116.14
7.3.200.0000.01416.14
7.3.190.0060.00916.16
7.3.180.0110.00716.10
7.3.170.0080.01216.13
7.3.160.0070.01316.13
7.3.150.0040.01116.16
7.3.140.0090.00916.20
7.3.130.0070.00716.16
7.3.120.0040.01116.09
7.3.110.0120.00316.07
7.3.100.0060.00916.07
7.3.90.0040.01116.37
7.3.80.0060.00916.17
7.3.70.0080.00616.23
7.3.60.0000.01416.30
7.3.50.0090.01216.30
7.3.40.0080.00816.26
7.3.30.0070.00716.27
7.3.20.0210.00616.32
7.3.10.0060.01016.23
7.3.00.0100.01016.27

preferences:
26.94 ms | 403 KiB | 5 Q