3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = array( 'test1' => array( '11', '22', '33', '44' ), 'test2' => array( '44', '55', '66', '77' ) ); $new = array(); $new2 = array(); foreach( $tests as $test ) { $new += $test; $new2 = array_merge( $new2, $test ); } print_r($new); print_r($new2);

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.0100.00716.75
8.3.50.0070.01217.37
8.3.40.0070.00718.54
8.3.30.0070.00718.71
8.3.20.0000.00918.50
8.3.10.0080.00020.27
8.3.00.0040.00419.26
8.2.180.0070.01416.50
8.2.170.0140.00022.96
8.2.160.0030.01020.47
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00319.95
8.2.110.0060.00321.04
8.2.100.0040.00718.16
8.2.90.0000.00719.17
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0050.00318.05
8.2.50.0080.00018.10
8.2.40.0000.00720.59
8.2.30.0040.00419.31
8.2.20.0050.00217.70
8.2.10.0040.00417.79
8.2.00.0060.00317.71
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00023.92
8.1.230.0040.00820.50
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.41
8.1.180.0050.00218.10
8.1.170.0040.00422.07
8.1.160.0000.00718.88
8.1.150.0070.00018.68
8.1.140.0000.00817.35
8.1.130.0000.00817.87
8.1.120.0000.00817.50
8.1.110.0030.00317.41
8.1.100.0050.00317.34
8.1.90.0040.00417.32
8.1.80.0000.00717.34
8.1.70.0040.00417.37
8.1.60.0000.00717.59
8.1.50.0020.00517.43
8.1.40.0070.00017.48
8.1.30.0040.00417.60
8.1.20.0000.01017.55
8.1.10.0020.00517.31
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0040.00418.44
8.0.270.0040.00417.27
8.0.260.0050.00316.76
8.0.250.0050.00317.08
8.0.240.0040.00417.02
8.0.230.0030.00317.02
8.0.220.0030.00316.86
8.0.210.0030.00316.91
8.0.200.0000.00616.88
8.0.190.0070.00017.04
8.0.180.0040.00416.91
8.0.170.0000.00816.87
8.0.160.0000.00716.91
8.0.150.0040.00416.73
8.0.140.0080.00016.88
8.0.130.0050.00013.36
8.0.120.0080.00016.89
8.0.110.0030.00617.02
8.0.100.0070.00017.06
8.0.90.0000.00716.80
8.0.80.0090.00617.01
8.0.70.0040.00416.73
8.0.60.0040.00416.99
8.0.50.0080.00016.79
8.0.30.0160.00517.19
8.0.20.0080.01117.18
8.0.10.0000.00816.95
8.0.00.0120.00716.83
7.4.330.0000.00512.96
7.4.320.0000.00616.59
7.4.300.0030.00316.65
7.4.290.0030.00316.41
7.4.280.0040.00416.61
7.4.270.0030.00316.57
7.4.260.0060.00013.29
7.4.250.0050.00316.59
7.4.240.0030.00316.40
7.4.230.0000.00716.38
7.4.220.0000.02016.64
7.4.210.0090.00616.60
7.4.200.0030.00316.43
7.4.190.0030.00616.76
7.4.160.0100.01016.39
7.4.150.0090.00916.43
7.4.140.0130.01816.52
7.4.130.0090.00816.52
7.4.120.0130.00416.56
7.4.110.0090.00916.30
7.4.100.0090.00916.43
7.4.90.0080.00816.56
7.4.80.0100.00716.40
7.4.70.0100.00616.48
7.4.60.0000.01616.52
7.4.50.0040.00416.25
7.4.40.0060.00316.41
7.4.30.0080.00816.27
7.4.00.0110.00715.05
7.3.330.0030.00313.09
7.3.320.0000.00613.17
7.3.310.0000.00716.20
7.3.300.0000.00716.18
7.3.290.0000.01516.38
7.3.280.0070.00916.31
7.3.270.0150.00916.36
7.3.260.0110.01016.50
7.3.250.0100.00916.44
7.3.240.0120.00416.67
7.3.230.0000.01716.23
7.3.210.0100.01316.45
7.3.200.0100.00719.39
7.3.190.0100.00716.37
7.3.180.0130.00316.35
7.3.170.0080.01216.48
7.3.160.0060.00916.32
7.3.120.0090.00814.75
7.3.110.0070.01115.05
7.3.100.0070.01115.02
7.3.90.0030.01414.84
7.3.80.0060.00614.79
7.3.70.0070.00714.57
7.3.60.0040.01214.74
7.3.50.0150.00014.61
7.3.40.0070.00714.96
7.3.30.0030.00614.96
7.3.20.0060.00916.47
7.3.10.0040.01116.71
7.3.00.0000.01216.78
7.2.330.0070.01016.74
7.2.320.0220.00016.50
7.2.310.0130.00716.68
7.2.300.0060.01016.71
7.2.290.0100.00716.45
7.2.250.0080.00814.83
7.2.240.0100.01014.97
7.2.230.0060.00915.16
7.2.220.0000.01414.91
7.2.210.0030.01014.96
7.2.200.0150.00015.11
7.2.190.0070.00314.95
7.2.180.0060.00914.95
7.2.170.0030.00715.17
7.2.00.0040.01519.55
7.1.330.0060.00915.86
7.1.320.0000.01415.98
7.1.310.0060.00615.76
7.1.300.0060.00915.86
7.1.290.0030.01215.96
7.1.280.0030.00615.99
7.1.270.0040.01115.82
7.1.260.0060.00315.67
7.1.100.0060.00618.09
7.1.70.0030.00616.89
7.1.60.0070.01419.40
7.1.50.0100.01316.98
7.1.00.0000.04022.30
7.0.200.0120.00614.79
7.0.140.0070.07022.12
7.0.120.0170.05722.01
7.0.60.0030.08021.88
7.0.50.0100.07717.83
7.0.40.0100.06720.30
7.0.30.0200.04020.11
7.0.20.0370.06720.12
7.0.10.0130.08320.24
7.0.00.0100.08320.30
5.6.280.0000.07720.77
5.6.210.0070.07720.46
5.6.200.0030.05318.29
5.6.190.0200.07720.62
5.6.180.0270.08020.36
5.6.170.0370.08020.50
5.6.160.0100.08020.46
5.6.150.0170.05018.27
5.6.140.0070.07718.22
5.6.130.0230.07018.21
5.6.120.0030.05721.14
5.6.110.0000.04721.05
5.6.100.0070.08321.13
5.6.90.0100.08321.01
5.6.80.0170.06720.38
5.5.350.0130.08720.33
5.5.340.0030.08317.99
5.5.330.0030.06720.56
5.5.320.0300.07020.35
5.5.310.0270.07720.18
5.5.300.0200.06317.98
5.5.290.0100.08017.95
5.5.280.0130.04720.84
5.5.270.0100.08320.95
5.5.260.0170.06320.85
5.5.250.0000.04320.58
5.5.240.0200.04020.35
5.4.450.0170.07719.30
5.4.440.0000.04719.47
5.4.430.0070.04719.30
5.4.420.0070.05019.26
5.4.410.0200.06019.05
5.4.400.0100.05019.25
5.4.390.0070.07718.97
5.4.380.0030.05319.01
5.4.370.0030.06719.15
5.4.360.0070.08018.97
5.4.350.0030.07719.08
5.4.340.0030.04319.24
5.4.320.0030.05019.12
5.4.310.0000.05719.14
5.4.300.0100.06719.14
5.4.290.0130.06318.84
5.4.280.0200.06319.07
5.4.270.0070.03719.23
5.4.260.0070.03719.15
5.4.250.0070.08019.15
5.4.240.0230.06318.97
5.4.230.0100.07319.14
5.4.220.0130.07018.84
5.4.210.0000.07019.14
5.4.200.0100.06019.14
5.4.190.0030.04718.96
5.4.180.0100.06319.22
5.4.170.0100.07319.13
5.4.160.0200.03318.83
5.4.150.0100.03319.12
5.4.140.0100.04716.50
5.4.130.0100.07016.51
5.4.120.0030.06016.53
5.4.110.0070.03716.30
5.4.100.0100.04016.45
5.4.90.0100.06716.34
5.4.80.0100.05016.41
5.4.70.0030.04016.41
5.4.60.0070.04316.51
5.4.50.0100.05016.24
5.4.40.0100.07316.50
5.4.30.0100.06716.36
5.4.20.0100.07016.40
5.4.10.0100.05316.25
5.4.00.0130.06015.86
5.3.290.0030.06314.68
5.3.280.0070.07714.66
5.3.270.0100.08014.65
5.3.260.0070.08014.49
5.3.250.0070.06014.66
5.3.240.0070.04714.63
5.3.230.0130.05714.73
5.3.220.0070.04314.63
5.3.210.0030.04014.63
5.3.200.0130.06714.70
5.3.190.0000.05014.48
5.3.180.0030.04714.44
5.3.170.0030.06314.57
5.3.160.0130.03014.61
5.3.150.0000.04714.47
5.3.140.0130.06714.43
5.3.130.0030.05314.56
5.3.120.0030.07714.59
5.3.110.0030.08014.59
5.3.100.0130.07014.04
5.3.90.0030.07714.05
5.3.80.0130.06713.96
5.3.70.0070.07314.07
5.3.60.0030.07313.92
5.3.50.0030.07713.94
5.3.40.0200.04013.94
5.3.30.0100.05313.89
5.3.20.0070.07013.61
5.3.10.0130.05713.54
5.3.00.0070.04313.80
5.2.170.0100.05011.06
5.2.160.0030.05311.29
5.2.150.0030.05311.05
5.2.140.0070.05011.09
5.2.130.0070.05011.13
5.2.120.0000.06711.15
5.2.110.0000.03711.15
5.2.100.0100.03011.05
5.2.90.0070.02711.17
5.2.80.0070.02711.04
5.2.70.0130.02311.12
5.2.60.0000.04310.99
5.2.50.0070.05311.04
5.2.40.0000.04711.14
5.2.30.0030.06011.13
5.2.20.0030.04710.95
5.2.10.0130.04310.92
5.2.00.0000.06010.87
5.1.60.0030.0509.97
5.1.50.0070.04310.05
5.1.40.0070.0509.98
5.1.30.0100.05310.34
5.1.20.0070.05710.40
5.1.10.0070.05710.04
5.1.00.0070.04310.04
5.0.50.0030.0478.53
5.0.40.0030.0478.56
5.0.30.0070.0538.17
5.0.20.0000.0238.15
5.0.10.0030.0478.08
5.0.00.0030.0408.22
4.4.90.0030.0137.76
4.4.80.0030.0207.76
4.4.70.0070.0177.76
4.4.60.0000.0307.76
4.4.50.0070.0137.76
4.4.40.0000.0537.76
4.4.30.0070.0337.76
4.4.20.0000.0377.76
4.4.10.0030.0307.76
4.4.00.0000.0607.76
4.3.110.0030.0337.76
4.3.100.0000.0207.76
4.3.90.0000.0377.76
4.3.80.0000.0577.76
4.3.70.0000.0277.76
4.3.60.0070.0337.76
4.3.50.0030.0307.76
4.3.40.0000.0507.76
4.3.30.0030.0377.76
4.3.20.0000.0307.76
4.3.10.0000.0177.76
4.3.00.0070.0307.76

preferences:
49.86 ms | 401 KiB | 5 Q