3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = [ 100 => [ ['product_id' => 101, 'name' => ''], ['product_id' => 102, 'name' => ''], ['product_id' => 103, 'name' => ''], ], 200 => [ ['product_id' => 201, 'name' => ''], ['product_id' => 202, 'name' => ''], ], 300 => [ ['product_id' => 301, 'name' => ''], ['product_id' => 302, 'name' => ''], ['product_id' => 303, 'name' => ''], ['product_id' => 304, 'name' => ''], ] ]; var_export( array_merge( ...array_map( function() { return array_filter( func_get_args() ); }, ...$rows ) ) );

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.120.0130.00624.11
8.4.110.0130.00518.85
8.4.100.0040.00518.92
8.4.90.0140.00720.52
8.4.80.0080.00018.85
8.4.70.0060.00318.07
8.4.60.0080.01318.64
8.4.50.0110.00917.70
8.4.40.0050.00317.87
8.4.30.0080.00018.70
8.4.20.0160.00319.67
8.4.10.0030.00619.32
8.3.250.0060.00219.02
8.3.240.0110.00717.10
8.3.230.0080.01216.66
8.3.220.0030.00519.14
8.3.210.0050.00216.80
8.3.200.0020.00616.57
8.3.190.0090.01016.86
8.3.180.0060.00516.68
8.3.170.0070.01116.55
8.3.160.0120.00616.45
8.3.150.0030.00617.04
8.3.140.0050.00317.16
8.3.130.0050.00316.66
8.3.120.0040.01120.80
8.3.110.0050.00316.50
8.3.100.0070.00716.64
8.3.90.0080.00018.43
8.3.80.0100.00019.36
8.3.70.0090.00916.63
8.3.60.0110.00318.31
8.3.50.0100.00723.67
8.3.40.0100.00320.32
8.3.30.0040.01118.77
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0100.00920.32
8.2.280.0100.00920.24
8.2.270.0150.00316.48
8.2.260.0140.00318.96
8.2.250.0030.00716.68
8.2.240.0080.00017.05
8.2.230.0050.00520.94
8.2.220.0040.00424.06
8.2.210.0050.00326.77
8.2.200.0060.00616.38
8.2.190.0070.01116.58
8.2.180.0080.00825.92
8.2.170.0040.01119.06
8.2.160.0110.00322.96
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0000.00721.04
8.2.110.0000.01021.02
8.2.100.0080.00317.91
8.2.90.0000.00919.28
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0080.00017.63
8.2.50.0080.00018.04
8.2.40.0000.00818.16
8.2.30.0040.00419.34
8.2.20.0000.00818.13
8.2.10.0040.00419.24
8.2.00.0000.00819.25
8.1.330.0080.01121.92
8.1.320.0130.00816.14
8.1.310.0090.00916.54
8.1.300.0050.00517.74
8.1.290.0070.00318.88
8.1.280.0150.00625.92
8.1.270.0030.00623.99
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0060.00323.80
8.1.230.0080.00420.88
8.1.220.0080.00017.74
8.1.210.0040.00418.84
8.1.200.0000.00817.35
8.1.190.0040.00417.36
8.1.180.0040.00418.10
8.1.170.0040.00417.65
8.1.160.0000.00719.03
8.1.150.0020.00518.95
8.1.140.0080.00018.79
8.1.130.0030.00320.21
8.1.120.0040.00417.46
8.1.110.0040.00417.47
8.1.100.0040.00417.45
8.1.90.0000.00817.46
8.1.80.0070.00017.36
8.1.70.0000.00717.47
8.1.60.0040.00417.62
8.1.50.0000.00817.50
8.1.40.0030.00517.48
8.1.30.0040.00417.62
8.1.20.0040.00417.69
8.1.10.0030.01017.52
8.1.00.0000.00717.40
8.0.300.0090.00019.89
8.0.290.0030.00516.75
8.0.280.0030.00318.45
8.0.270.0070.00016.83
8.0.260.0070.00018.45
8.0.250.0080.00016.98
8.0.240.0000.00716.97
8.0.230.0030.00416.84
8.0.220.0000.00816.91
8.0.210.0000.00716.87
8.0.200.0000.00816.95
8.0.190.0000.00816.99
8.0.180.0040.00417.01
8.0.170.0040.00416.91
8.0.160.0030.00616.94
8.0.150.0040.00416.86
8.0.140.0060.00616.86
8.0.130.0050.00013.28
8.0.120.0050.00216.89
8.0.110.0030.00316.76
8.0.100.0070.00016.68
8.0.90.0040.00416.91
8.0.80.0080.01016.83
8.0.70.0030.00517.00
8.0.60.0040.00416.84
8.0.50.0000.00716.89
8.0.30.0030.01317.08
8.0.20.0180.00917.13
8.0.10.0040.00416.88
8.0.00.0150.00416.80
7.4.330.0000.00515.55
7.4.320.0000.00816.60
7.4.300.0000.00616.52
7.4.290.0030.00316.60
7.4.280.0050.00216.48
7.4.270.0070.00016.54
7.4.260.0000.00613.27
7.4.250.0040.00416.47
7.4.240.0070.00016.46
7.4.230.0020.00716.70
7.4.220.0000.00716.59
7.4.210.0080.00716.56
7.4.200.0040.00416.50
7.4.130.0120.00816.57
7.4.120.0100.00916.30
7.4.110.0160.00316.51
7.4.100.0060.00916.56
7.4.90.0100.00716.37
7.4.80.0090.01319.39
7.4.70.0060.01116.39
7.4.60.0070.01016.36
7.4.50.0070.01016.03
7.4.40.0100.01316.24
7.4.30.0140.00916.38
7.4.20.0130.00316.36
7.4.10.0120.00316.27
7.4.00.0170.00016.75
7.3.330.0030.00316.09
7.3.320.0060.00013.01
7.3.310.0030.00316.25
7.3.300.0040.00416.11
7.3.290.0000.00716.16
7.3.280.0100.00716.22
7.3.260.0090.00916.33
7.3.240.0090.01116.33
7.3.230.0100.00716.52
7.3.210.0120.00916.30
7.3.200.0060.01116.44
7.3.190.0040.01616.26
7.3.180.0060.01016.23
7.3.170.0120.00916.08
7.3.160.0130.00916.34
7.3.150.0040.01716.18
7.3.140.0060.01016.09
7.3.130.0090.00616.16
7.3.120.0130.00316.42
7.3.110.0040.01216.34
7.3.100.0080.00816.19
7.3.90.0080.00816.37
7.3.80.0090.00616.29
7.3.70.0080.00816.36
7.3.60.0070.01316.34
7.3.50.0100.00716.39
7.3.40.0040.01116.18
7.3.30.0120.00416.11
7.3.20.0100.00716.40
7.3.10.0030.01416.38
7.3.00.0060.01016.41
7.2.330.0130.00416.38
7.2.320.0060.00916.46
7.2.310.0100.00716.52
7.2.300.0040.01216.42
7.2.290.0090.01316.32
7.2.280.0080.00816.54
7.2.270.0120.00916.59
7.2.260.0070.01016.26
7.2.250.0080.01116.43
7.2.240.0030.01316.41
7.2.230.0130.00416.29
7.2.220.0080.00816.65
7.2.210.0130.00616.52
7.2.200.0080.00816.29
7.2.190.0090.01216.51
7.2.180.0130.00316.37
7.2.170.0130.00316.54
7.2.160.0030.01316.31
7.2.150.0110.00616.46
7.2.140.0070.01016.50
7.2.130.0070.01016.71
7.2.120.0080.01216.54
7.2.110.0160.00316.58
7.2.100.0030.01316.45
7.2.90.0080.00816.43
7.2.80.0030.01316.34
7.2.70.0070.01116.42
7.2.60.0130.00616.61
7.2.50.0110.00716.65
7.2.40.0090.00916.52
7.2.30.0030.01416.49
7.2.20.0100.00616.49
7.2.10.0080.00816.66
7.2.00.0040.01216.55

preferences:
128.49 ms | 403 KiB | 5 Q