3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHP 7.3 and older $parts = ['apple', 'pear']; $fruits = array_merge(['banana', 'orange'], $parts, ['watermelon']); var_dump($fruits); // PHP 7.4 $parts = ['apple', 'pear']; $fruits = ['banana', 'orange', ...$parts, 'watermelon']; var_dump($fruits);

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.10.0050.00317.52
8.3.140.0060.01216.65
8.3.130.0120.00616.48
8.3.120.0030.00618.86
8.3.110.0100.01020.94
8.3.100.0060.00316.24
8.3.90.0040.00418.09
8.3.80.0000.00816.63
8.3.70.0120.00916.50
8.3.60.0040.01118.00
8.3.50.0180.01223.51
8.3.40.0090.00618.59
8.3.30.0090.00618.50
8.3.20.0060.00320.48
8.3.10.0000.00822.04
8.3.00.0040.00421.89
8.2.250.0100.00318.00
8.2.240.0070.00417.27
8.2.230.0040.00422.58
8.2.220.0080.00024.06
8.2.210.0090.00926.77
8.2.200.0060.00316.50
8.2.190.0120.00916.58
8.2.180.0120.00618.41
8.2.170.0150.00022.96
8.2.160.0070.01022.20
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0020.00519.76
8.2.110.0060.00320.52
8.2.100.0090.00317.78
8.2.90.0000.00817.83
8.2.80.0030.00617.97
8.2.70.0040.00418.03
8.2.60.0000.00717.91
8.2.50.0080.00018.10
8.2.40.0030.00621.23
8.2.30.0070.00019.24
8.2.20.0040.00418.11
8.2.10.0040.00419.36
8.2.00.0040.00419.17
8.1.300.0030.00617.76
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0000.00820.80
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0040.00720.97
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0030.00518.59
8.1.160.0040.00420.63
8.1.150.0000.00718.94
8.1.140.0050.00220.79
8.1.130.0030.00320.20
8.1.120.0000.00717.36
8.1.110.0000.00817.44
8.1.100.0050.00317.32
8.1.90.0000.00717.45
8.1.80.0070.00017.32
8.1.70.0000.00717.44
8.1.60.0040.00417.63
8.1.50.0030.00617.54
8.1.40.0050.00317.47
8.1.30.0000.00717.61
8.1.20.0040.00417.65
8.1.10.0000.00817.42
8.1.00.0030.00717.39
8.0.300.0000.00720.59
8.0.290.0040.00416.63
8.0.280.0030.00318.47
8.0.270.0070.00016.81
8.0.260.0040.00420.06
8.0.250.0070.00016.94
8.0.240.0000.00816.84
8.0.230.0000.00716.86
8.0.220.0100.00016.86
8.0.210.0030.00316.77
8.0.200.0050.00216.86
8.0.190.0040.00416.97
8.0.180.0050.00216.92
8.0.170.0000.00916.89
8.0.160.0040.00416.84
8.0.150.0000.00816.81
8.0.140.0080.00416.85
8.0.130.0000.00513.27
8.0.120.0070.00016.77
8.0.110.0070.00016.92
8.0.100.0020.00516.84
8.0.90.0090.00016.90
8.0.80.0110.00716.93
8.0.70.0080.00016.73
8.0.60.0040.00416.71
8.0.50.0030.00616.92
8.0.30.0070.01016.80
8.0.20.0060.01317.07
8.0.10.0050.00216.97
8.0.00.0090.01016.87
7.4.330.0000.00516.73
7.4.320.0070.00016.50
7.4.300.0060.00016.57
7.4.290.0070.00016.43
7.4.280.0000.00816.53
7.4.270.0030.00416.58
7.4.260.0050.00013.38
7.4.250.0070.00016.52
7.4.240.0020.00516.58
7.4.230.0040.00416.62
7.4.220.0030.00316.58
7.4.210.0070.01316.62
7.4.200.0000.00716.57
7.4.130.0000.01816.39
7.4.120.0120.00916.56
7.4.110.0100.00716.40
7.4.100.0080.01016.52
7.4.90.0060.01116.46
7.4.80.0140.00219.39
7.4.70.0100.00716.38
7.4.60.0150.00616.64
7.4.50.0090.00616.49
7.4.40.0000.01716.52
7.4.10.0100.00916.35
7.4.00.0080.00816.40
7.3.330.0060.00016.05
7.3.320.0050.00013.04
7.3.310.0050.00316.04
7.3.300.0030.00315.99
7.3.290.0070.00016.20
7.3.280.0130.00316.09
7.3.260.0130.00416.14
7.3.240.0090.01016.28
7.3.230.0130.00416.15
7.3.210.0070.01116.25
7.3.200.0090.00916.23
7.3.190.0140.00716.31
7.3.180.0100.00716.22
7.3.170.0110.00516.49
7.3.160.0120.00616.20
7.3.130.0070.01016.12
7.3.120.0100.00716.17
7.3.110.0080.00916.08
7.3.100.0080.00816.17
7.3.90.0080.00916.06
7.3.80.0110.00716.18
7.3.70.0100.00716.04
7.3.60.0100.00616.10
7.3.50.0070.00916.11
7.3.40.0090.00816.10
7.3.30.0080.01016.08
7.3.20.0090.00916.09
7.3.10.0100.00816.09
7.3.00.0070.01016.18
7.2.330.0090.00916.46
7.2.320.0190.00416.57
7.2.310.0070.01016.56
7.2.300.0120.00816.10
7.2.290.0110.01216.15
7.2.260.0110.00816.34
7.2.250.0090.00816.18
7.2.240.0070.01016.20
7.2.230.0080.00916.26
7.2.220.0100.00816.25
7.2.210.0100.00916.21
7.2.200.0100.00716.29
7.2.190.0090.00816.20
7.2.180.0090.00716.21
7.2.170.0070.01116.21
7.2.160.0090.01016.28
7.2.150.0070.01116.17
7.2.140.0100.00916.25
7.2.130.0090.00916.32
7.2.120.0090.00816.26
7.2.110.0090.00816.29
7.2.100.0110.00916.30
7.2.90.0110.00716.33
7.2.80.0080.01016.19
7.2.70.0100.00816.17
7.2.60.0070.01016.27
7.2.50.0080.01016.27
7.2.40.0110.00616.36
7.2.30.0080.01016.20
7.2.20.0120.00816.28
7.2.10.0090.01216.28
7.2.00.0090.00916.33
7.1.330.0130.00314.98
7.1.320.0120.00615.15
7.1.310.0100.00715.36
7.1.300.0130.00314.89
7.1.290.0080.00914.79
7.1.280.0100.01014.97
7.1.270.0140.00314.88
7.1.260.0070.01115.07
7.1.250.0090.00914.81
7.1.240.0080.00814.76
7.1.230.0080.00815.02
7.1.220.0050.01115.26
7.1.210.0120.00615.05
7.1.200.0080.00815.06
7.1.190.0090.00715.13
7.1.180.0030.01215.21
7.1.170.0070.01014.96
7.1.160.0100.00715.25
7.1.150.0000.01815.01
7.1.140.0100.00614.97
7.1.130.0150.00314.95
7.1.120.0120.00415.23
7.1.110.0100.00615.09
7.1.100.0080.00815.22
7.1.90.0080.00815.03
7.1.80.0060.00815.28
7.1.70.0090.00615.23
7.1.60.0090.00915.21
7.1.50.0120.00415.17
7.1.40.0040.01115.05
7.1.30.0090.00915.07
7.1.20.0060.00915.21
7.1.10.0070.01015.14
7.1.00.0160.00915.30
7.0.330.0120.00614.71
7.0.320.0030.01314.73
7.0.310.0130.00314.86
7.0.300.0110.00814.69
7.0.290.0090.00615.05
7.0.280.0230.00615.05
7.0.270.0040.01115.15
7.0.260.0000.01414.61
7.0.250.0050.00914.89
7.0.240.0040.01114.96
7.0.230.0050.00814.83
7.0.220.0000.01315.01
7.0.210.0080.01114.92
7.0.200.0040.01214.91
7.0.190.0110.00715.09
7.0.180.0090.00814.91
7.0.170.0060.00915.04
7.0.160.0040.01214.95
7.0.150.0050.01114.92
7.0.140.0070.01014.96
7.0.130.0080.00815.03
7.0.120.0090.00615.09
7.0.110.0170.00714.85
7.0.100.0070.01114.91
7.0.90.0060.00714.90
7.0.80.0120.00314.94
7.0.70.0140.00914.91
7.0.60.0120.00715.00
7.0.50.0060.00914.94
7.0.40.0000.01815.01
7.0.30.0100.00715.01
7.0.20.0010.01314.96
7.0.10.0120.00315.02
7.0.00.0040.01115.05
5.6.400.0110.00815.59
5.6.390.0060.01515.38
5.6.380.0070.01315.66
5.6.370.0050.01115.79
5.6.360.0030.01515.40
5.6.350.0110.00715.57
5.6.340.0160.00015.62
5.6.330.0100.01315.45
5.6.320.0060.01015.38
5.6.310.0170.00015.66
5.6.300.0080.00815.62
5.6.290.0060.00915.75
5.6.280.0060.01115.45
5.6.270.0000.01915.71
5.6.260.0070.01415.62
5.6.250.0090.00615.78
5.6.240.0060.01315.61
5.6.230.0150.00315.50
5.6.220.0060.01215.39
5.6.210.0150.00315.55
5.6.200.0030.02115.56
5.6.190.0110.01115.63
5.6.180.0080.01315.53
5.6.170.0090.00915.71
5.6.160.0120.00715.55
5.6.150.0130.00415.73
5.6.140.0100.00715.53
5.6.130.0070.01115.66
5.6.120.0100.00715.50
5.6.110.0080.00815.43
5.6.100.0060.01215.64
5.6.90.0110.01115.62
5.6.80.0080.01115.38
5.6.70.0030.01715.47
5.6.60.0110.00815.57
5.6.50.0090.00915.57
5.6.40.0030.01315.66
5.6.30.0130.00415.47
5.6.20.0060.01115.48
5.6.10.0070.01115.46
5.6.00.0070.01015.43
5.5.380.0150.00315.74
5.5.370.0120.00315.55
5.5.360.0120.00415.43
5.5.350.0060.01715.55
5.5.340.0110.01115.38
5.5.330.0150.00315.73
5.5.320.0100.00815.38
5.5.310.0100.01015.56
5.5.300.0100.01015.34
5.5.290.0110.00815.59
5.5.280.0110.00815.41
5.5.270.0040.01515.57
5.5.260.0170.00415.57
5.5.250.0150.00915.42
5.5.240.0160.01015.59
5.5.230.0090.01515.21
5.5.220.0100.01415.48
5.5.210.0190.00415.43
5.5.200.0130.01015.24
5.5.190.0140.00715.39
5.5.180.0130.01715.26
5.5.170.0140.00615.50
5.5.160.0130.01015.49
5.5.150.0140.00715.52
5.5.140.0130.01315.41
5.5.130.0120.01215.16
5.5.120.0110.01115.54
5.5.110.0140.00815.65
5.5.100.0170.00615.43
5.5.90.0180.01415.16
5.5.80.0130.00915.39
5.5.70.0040.02115.28
5.5.60.0170.00915.62
5.5.50.0120.01215.47
5.5.40.0080.01615.49
5.5.30.0200.01015.18
5.5.20.0150.01315.49
5.5.10.0090.01715.47
5.5.00.0100.01015.05
5.4.450.0030.01012.38
5.4.440.0070.00712.35
5.4.430.0100.00712.25
5.4.420.0080.00812.31
5.4.410.0130.00412.40
5.4.400.0070.01012.35
5.4.390.0110.00512.38
5.4.380.0160.00412.10
5.4.370.0060.00912.39
5.4.360.0060.00912.30
5.4.350.0110.00612.17
5.4.340.0190.00312.25
5.4.330.0140.00412.20
5.4.320.0130.00312.36
5.4.310.0110.00712.29
5.4.300.0130.00312.19
5.4.290.0130.00512.21
5.4.280.0050.01112.14
5.4.270.0090.00912.17
5.4.260.0070.00712.39
5.4.250.0040.01512.38
5.4.240.0140.00412.23
5.4.230.0130.00812.30
5.4.220.0080.00812.18
5.4.210.0120.00712.20
5.4.200.0140.00512.37
5.4.190.0140.00512.20
5.4.180.0180.00612.14
5.4.170.0150.00312.53
5.4.160.0150.00812.29
5.4.150.0150.00512.46
5.4.140.0150.00612.29
5.4.130.0100.00812.29
5.4.120.0080.01312.18
5.4.110.0120.00512.35
5.4.100.0110.00612.25
5.4.90.0160.00012.29
5.4.80.0100.00512.48
5.4.70.0140.00612.41
5.4.60.0110.00612.48
5.4.50.0080.00812.50
5.4.40.0120.00412.26
5.4.30.0160.00012.45
5.4.20.0080.00812.29
5.4.10.0100.00712.49
5.4.00.0120.00312.23
5.3.290.0110.00512.85
5.3.280.0030.01012.63
5.3.270.0080.00812.77
5.3.260.0190.00412.88
5.3.250.0150.00312.66
5.3.240.0100.00512.55
5.3.230.0040.01512.70
5.3.220.0060.01112.71
5.3.210.0090.00612.58
5.3.200.0130.00312.54
5.3.190.0060.00912.73
5.3.180.0100.00712.77
5.3.170.0100.00712.82
5.3.160.0070.01012.76
5.3.150.0120.00612.77
5.3.140.0080.00812.70
5.3.130.0070.01012.75
5.3.120.0040.01212.83
5.3.110.0130.00312.45
5.3.100.0100.00712.85
5.3.90.0110.00512.76
5.3.80.0160.00012.78
5.3.70.0070.00712.69
5.3.60.0110.00712.56
5.3.50.0140.00412.75
5.3.40.0120.00512.52
5.3.30.0040.01212.74
5.3.20.0120.00312.64
5.3.10.0100.00612.42
5.3.00.0170.00012.46
5.2.170.0060.00911.83
5.2.160.0040.01111.83
5.2.150.0080.00511.83
5.2.140.0090.00711.83
5.2.130.0030.01011.83
5.2.120.0110.00411.83
5.2.110.0070.00711.83
5.2.100.0070.00711.91
5.2.90.0040.01111.83
5.2.80.0120.00311.83
5.2.70.0000.01411.83
5.2.60.0070.00711.83
5.2.50.0060.01011.83
5.2.40.0080.00611.83
5.2.30.0050.01011.83
5.2.20.0090.00611.83
5.2.10.0100.00411.83
5.2.00.0040.01511.83
5.1.60.0090.00611.83
5.1.50.0000.01411.83
5.1.40.0130.00311.83
5.1.30.0030.01011.83
5.1.20.0030.01011.83
5.1.10.0040.00911.83
5.1.00.0000.01211.83
5.0.50.0080.00411.83
5.0.40.0120.00311.83
5.0.30.0140.00011.83
5.0.20.0110.00211.83
5.0.10.0040.00911.83
5.0.00.0060.00611.83
4.4.90.0000.00711.83
4.4.80.0040.00411.83
4.4.70.0060.00311.83
4.4.60.0000.00811.83
4.4.50.0030.00311.83
4.4.40.0030.00611.83
4.4.30.0070.00011.83
4.4.20.0070.00011.83
4.4.10.0050.00211.83
4.4.00.0000.00711.83
4.3.110.0060.00211.83
4.3.100.0000.00711.83
4.3.90.0060.00311.83
4.3.80.0030.00411.83
4.3.70.0040.00411.83
4.3.60.0070.00011.83
4.3.50.0070.00011.83
4.3.40.0050.00311.83
4.3.30.0030.00311.83
4.3.20.0040.00511.83
4.3.10.0030.00311.83
4.3.00.0070.00011.83

preferences:
38.08 ms | 403 KiB | 5 Q