3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo ($arrays) { return array_merge($arrays); } $func = 'foo'; $input = Array( Array ( 'd1' => 'P', 'd2' => '', 'd3' => '' ), Array ( 'd1' => '', 'd2' => 'A', 'd3' => 'P' ) ); $result = call_user_func_array($func, $input); var_export($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.3.60.0030.01718.21
8.3.50.0080.00817.83
8.3.40.0140.00418.63
8.3.30.0120.00418.73
8.3.20.0040.00419.29
8.3.10.0040.00421.98
8.3.00.0070.00020.61
8.2.180.0170.00318.43
8.2.170.0090.00622.96
8.2.160.0030.01022.26
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00718.03
8.2.120.0060.00326.35
8.2.110.0100.00021.00
8.2.100.0060.00617.59
8.2.90.0060.00317.63
8.2.80.0000.00817.97
8.2.70.0040.00417.91
8.2.60.0080.00018.03
8.2.50.0040.00418.10
8.2.40.0050.00219.32
8.2.30.0040.00419.15
8.2.20.0030.00617.95
8.2.10.0000.00718.13
8.2.00.0000.00817.58
8.1.280.0090.00625.92
8.1.270.0080.00018.88
8.1.260.0040.00426.35
8.1.250.0100.00328.09
8.1.240.0070.01123.97
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0130.00016.88
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0050.00318.46
8.1.160.0040.00418.87
8.1.150.0040.00418.88
8.1.140.0040.00422.05
8.1.130.0000.00720.19
8.1.120.0000.00717.46
8.1.110.0040.00417.30
8.1.100.0040.00417.24
8.1.90.0040.00417.38
8.1.80.0070.00017.38
8.1.70.0030.00517.41
8.1.60.0060.00317.51
8.1.50.0000.00817.46
8.1.40.0040.00417.40
8.1.30.0000.00817.61
8.1.20.0000.00817.49
8.1.10.0040.00417.57
8.1.00.0050.00217.45
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.38
8.0.270.0000.00717.07
8.0.260.0030.00518.39
8.0.250.0070.00016.91
8.0.240.0070.00016.91
8.0.230.0030.00316.95
8.0.220.0070.00016.82
8.0.210.0070.00016.84
8.0.200.0000.00716.80
8.0.190.0030.00316.79
8.0.180.0000.00816.84
8.0.170.0030.00616.73
8.0.160.0000.00716.86
8.0.150.0070.00016.79
8.0.140.0070.00016.79
8.0.130.0030.00313.27
8.0.120.0030.00516.75
8.0.110.0000.00716.73
8.0.100.0040.00416.61
8.0.90.0020.00516.65
8.0.80.0040.01116.86
8.0.70.0000.00716.89
8.0.60.0070.00016.70
8.0.50.0040.00416.61
8.0.30.0110.00716.97
8.0.20.0090.01017.40
8.0.10.0000.00716.75
8.0.00.0210.01816.65
7.4.330.0050.00015.55
7.4.320.0060.00016.44
7.4.300.0000.00616.52
7.4.290.0030.00316.55
7.4.280.0050.00216.36
7.4.270.0000.00716.45
7.4.260.0000.00816.53
7.4.250.0050.00316.37
7.4.240.0030.00316.59
7.4.230.0080.00016.44
7.4.220.0050.00316.34
7.4.210.0060.01016.52
7.4.200.0000.00716.52
7.4.160.0070.01016.42
7.4.140.0100.00917.86
7.4.130.0130.00316.49
7.4.120.0100.00916.47
7.4.110.0140.00316.40
7.4.100.0170.00016.31
7.4.90.0060.01216.23
7.4.80.0110.01119.39
7.4.70.0140.00316.43
7.4.60.0140.00416.34
7.4.50.0030.01316.46
7.4.40.0090.01216.48
7.4.10.0110.00714.82
7.4.00.0080.01014.93
7.3.330.0020.00213.10
7.3.320.0030.00312.95
7.3.310.0040.00416.02
7.3.300.0030.00316.18
7.3.290.0030.00316.14
7.3.280.0080.01016.11
7.3.260.0080.00916.22
7.3.240.0080.01016.25
7.3.230.0060.00916.53
7.3.210.0070.01016.16
7.3.200.0000.01816.22
7.3.190.0090.00916.22
7.3.180.0060.00916.54
7.3.170.0150.00416.08
7.3.160.0130.00316.30
7.3.130.0070.01314.98
7.3.120.0090.00514.69
7.3.110.0040.01014.64
7.3.100.0000.01114.63
7.3.90.0040.01014.74
7.3.80.0070.00914.63
7.3.70.0050.01014.72
7.3.60.0040.00814.51
7.3.50.0050.00514.45
7.3.40.0050.01014.63
7.3.30.0050.00714.66
7.3.20.0060.00616.52
7.3.10.0040.01016.33
7.3.00.0010.01316.50
7.2.330.0120.00916.57
7.2.320.0170.00616.62
7.2.310.0120.00916.40
7.2.300.0090.00616.31
7.2.290.0160.01016.66
7.2.260.0060.01314.77
7.2.250.0030.01215.04
7.2.240.0060.00914.78
7.2.230.0000.01314.82
7.2.220.0080.00815.00
7.2.210.0080.00814.91
7.2.200.0060.00814.87
7.2.190.0050.01214.85
7.2.180.0070.00714.80
7.2.170.0090.00614.97
7.2.160.0060.00714.73
7.2.150.0040.01216.79
7.2.140.0070.00716.80
7.2.130.0090.00816.70
7.2.120.0090.01116.82
7.2.110.0030.01216.71
7.2.100.0060.01016.62
7.2.90.0070.00816.71
7.2.80.0070.00716.74
7.2.70.0050.01016.83
7.2.60.0070.00616.77
7.2.50.0060.00816.76
7.2.40.0090.00616.82
7.2.30.0030.01016.78
7.2.20.0040.01016.75
7.2.10.0060.00916.64
7.2.00.0040.01116.71
7.1.330.0050.00715.77
7.1.320.0080.00615.70
7.1.310.0070.00715.95
7.1.300.0050.00515.69
7.1.290.0040.00815.65
7.1.280.0050.01015.64
7.1.270.0030.00715.80
7.1.260.0110.00515.57
7.1.250.0060.01115.70
7.1.240.0080.00415.89
7.1.230.0060.00815.87
7.1.220.0050.00915.74
7.1.210.0070.00715.68
7.1.200.0040.01015.74
7.1.190.0020.01215.67
7.1.180.0060.00915.82
7.1.170.0050.00815.63
7.1.160.0070.00815.75
7.1.150.0070.00515.77
7.1.140.0060.00515.72
7.1.130.0060.00815.68
7.1.120.0020.01215.86
7.1.110.0050.00915.70
7.1.100.0050.01015.56
7.1.90.0060.00615.65
7.1.80.0090.00115.56
7.1.70.0060.00815.70
7.1.60.0170.00524.73
7.1.50.0140.01024.75
7.1.40.0130.01324.54
7.1.30.0180.00924.63
7.1.20.0170.01024.79
7.1.10.0030.01215.68
7.1.00.0010.01315.53
7.0.330.0100.00315.02
7.0.320.0030.01015.35
7.0.310.0090.00015.28
7.0.300.0030.01015.34
7.0.290.0060.00615.36
7.0.280.0030.00915.34
7.0.270.0090.00915.14
7.0.260.0040.00715.21
7.0.250.0060.00615.51
7.0.240.0100.00615.31
7.0.230.0100.00315.20
7.0.220.0000.00915.49
7.0.210.0040.00415.47
7.0.200.0030.01015.50
7.0.190.0130.00015.13
7.0.180.0040.01115.32
7.0.170.0100.00515.25
7.0.160.0030.01015.46
7.0.150.0060.00615.30
7.0.140.0090.00615.15
7.0.130.0030.01015.39
7.0.120.0000.01015.50
7.0.110.0000.01115.16
7.0.100.0080.00015.43
7.0.90.0030.01215.52
7.0.80.0030.00515.16
7.0.70.0000.01115.51
7.0.60.0100.00315.42
7.0.50.0110.00715.39
7.0.40.0040.01413.41
7.0.30.0060.00313.70
7.0.20.0030.01013.52
7.0.10.0080.00613.49
7.0.00.0030.00613.52
5.6.400.0030.00814.17
5.6.390.0000.01314.47
5.6.380.0050.00814.47
5.6.370.0150.00014.11
5.6.360.0030.00914.02
5.6.350.0040.00414.52
5.6.340.0000.01014.39
5.6.330.0000.00914.20
5.6.320.0000.00914.43
5.6.310.0030.00614.11
5.6.300.0090.00614.38
5.6.290.0060.00914.20
5.6.280.0040.00714.16
5.6.270.0040.00814.17
5.6.260.0110.00414.50
5.6.250.0120.00614.11
5.6.240.0040.00414.21
5.6.230.0060.00614.08
5.6.220.0060.00914.04
5.6.210.0100.00314.10
5.6.200.0040.00814.00
5.6.190.0030.00614.12
5.6.180.0070.00314.12
5.6.170.0030.01014.12
5.6.160.0110.00013.97
5.6.150.0060.00614.13
5.6.140.0040.00814.16
5.6.130.0090.00614.35
5.6.120.0100.00714.41
5.6.110.0040.01214.09
5.6.100.0000.00914.13
5.6.90.0100.00314.25
5.6.80.0030.00714.04
5.6.70.0000.01414.02
5.6.60.0140.00014.36
5.6.50.0030.01013.96
5.6.40.0080.00614.17
5.6.30.0090.00314.22
5.6.20.0110.00414.03
5.6.10.0060.00614.17
5.6.00.0110.00014.01

preferences:
62.72 ms | 400 KiB | 5 Q