3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x($id) { $a = func_get_args(); var_dump(join(', ', array_flatten($a))); } function array_flatten($ary) { // http://stackoverflow.com/a/1320259 if (!$ary) return $ary; $_ary = array(); $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($ary)); foreach ($it as $val) $_ary[] = $val; return $_ary; } x(123,123,324,6345);

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.0090.00616.75
8.3.50.0080.01122.05
8.3.40.0070.00718.97
8.3.30.0150.00318.67
8.3.20.0040.00420.33
8.3.10.0080.00023.52
8.3.00.0040.00419.38
8.2.180.0040.01118.54
8.2.170.0030.01222.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.89
8.2.110.0090.00020.35
8.2.100.0080.00417.84
8.2.90.0040.00419.21
8.2.80.0050.00517.97
8.2.70.0030.00517.75
8.2.60.0140.00317.55
8.2.50.0000.00818.07
8.2.40.0060.00319.11
8.2.30.0040.00420.59
8.2.20.0040.00417.68
8.2.10.0040.00418.13
8.2.00.0040.00418.13
8.1.280.0070.01025.92
8.1.270.0040.00422.19
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0090.00420.81
8.1.230.0080.00320.94
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0060.00318.57
8.1.160.0040.00421.96
8.1.150.0000.00818.91
8.1.140.0030.00619.59
8.1.130.0030.00317.70
8.1.120.0070.00017.41
8.1.110.0080.00017.37
8.1.100.0000.00717.38
8.1.90.0000.00817.49
8.1.80.0000.00817.43
8.1.70.0030.00517.51
8.1.60.0050.00417.41
8.1.50.0030.00717.41
8.1.40.0000.00717.52
8.1.30.0060.00317.54
8.1.20.0040.00417.68
8.1.10.0030.00517.56
8.1.00.0050.00317.51
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.36
8.0.270.0070.00017.15
8.0.260.0060.00018.38
8.0.250.0090.00016.87
8.0.240.0030.00316.94
8.0.230.0070.00016.87
8.0.220.0040.00416.86
8.0.210.0000.00816.96
8.0.200.0070.00016.89
8.0.190.0080.00016.98
8.0.180.0050.00216.91
8.0.170.0080.00016.80
8.0.160.0040.00416.81
8.0.150.0000.00816.83
8.0.140.0100.00016.83
8.0.130.0050.00013.30
8.0.120.0030.00516.92
8.0.110.0000.00716.75
8.0.100.0000.00716.86
8.0.90.0040.00416.93
8.0.80.0100.01016.82
8.0.70.0070.00316.72
8.0.60.0030.00516.78
8.0.50.0070.00016.84
8.0.30.0060.01317.25
8.0.20.0130.00917.40
8.0.10.0070.00017.13
8.0.00.0070.01216.74
7.4.330.0020.00215.08
7.4.320.0040.00416.65
7.4.300.0030.00316.52
7.4.290.0000.00716.41
7.4.280.0030.00616.50
7.4.270.0030.00316.65
7.4.260.0030.00316.49
7.4.250.0000.00716.45
7.4.240.0050.00216.57
7.4.230.0030.00316.66
7.4.220.0030.01416.71
7.4.210.0090.00616.57
7.4.200.0050.00316.63
7.4.160.0060.01016.61
7.4.150.0070.01317.40
7.4.140.0080.01417.86
7.4.130.0070.01016.51
7.4.120.0110.00816.54
7.4.110.0160.00416.58
7.4.100.0130.00316.59
7.4.90.0140.00316.54
7.4.80.0110.00619.39
7.4.70.0100.01316.59
7.4.60.0080.00816.68
7.4.50.0000.00716.23
7.4.40.0170.00316.52
7.4.30.0100.01316.57
7.4.10.0030.01414.74
7.4.00.0080.00715.13
7.3.330.0000.00713.20
7.3.320.0060.00013.34
7.3.310.0000.00716.40
7.3.300.0030.00316.40
7.3.290.0080.00816.39
7.3.280.0080.01216.35
7.3.270.0090.00917.40
7.3.260.0130.00316.44
7.3.250.0120.01016.42
7.3.240.0130.00616.30
7.3.230.0120.00416.43
7.3.210.0100.00616.70
7.3.200.0070.01316.57
7.3.190.0300.02816.55
7.3.180.0140.00316.46
7.3.170.0060.01116.59
7.3.160.0060.01016.40
7.3.130.0000.01514.76
7.3.120.0100.00814.95
7.3.110.0030.01314.76
7.3.100.0020.01214.84
7.3.90.0040.00614.87
7.3.80.0070.00414.86
7.3.70.0080.00714.85
7.3.60.0060.00814.81
7.3.50.0030.00814.88
7.3.40.0080.00714.77
7.3.30.0050.00614.72
7.3.20.0050.00616.67
7.3.10.0050.01116.64
7.3.00.0070.00416.58
7.2.330.0030.01616.64
7.2.320.0110.00616.75
7.2.310.0030.01316.85
7.2.300.0030.01316.64
7.2.290.0130.00616.71
7.2.260.0070.01115.07
7.2.250.0060.01214.92
7.2.240.0070.01215.14
7.2.230.0060.01015.05
7.2.220.0040.01015.25
7.2.210.0090.00614.98
7.2.200.0040.01015.06
7.2.190.0130.00015.06
7.2.180.0030.01115.02
7.2.170.0080.00715.08
7.2.160.0030.00815.17
7.2.150.0030.01016.91
7.2.140.0070.01016.77
7.2.130.0030.01016.98
7.2.120.0100.01016.59
7.2.110.0030.01316.98
7.2.100.0070.01016.68
7.2.90.0140.00017.10
7.2.80.0130.00317.00
7.2.70.0090.00617.08
7.2.60.0050.00816.94
7.2.50.0030.00816.92
7.2.40.0080.00417.10
7.2.30.0070.00317.03
7.2.20.0040.00716.75
7.2.10.0030.00916.79
7.2.00.0070.00618.01
7.1.330.0040.01115.71
7.1.320.0070.00515.98
7.1.310.0060.00815.77
7.1.300.0050.00815.81
7.1.290.0070.00715.90
7.1.280.0070.00715.94
7.1.270.0080.00315.84
7.1.260.0080.00715.70
7.1.250.0070.00415.59
7.1.240.0030.01215.46
7.1.230.0000.01515.44
7.1.220.0030.01015.79
7.1.210.0110.00415.81
7.1.200.0050.00715.82
7.1.190.0040.00415.69
7.1.180.0000.00915.58
7.1.170.0070.00715.67
7.1.160.0040.00415.61
7.1.150.0100.00315.80
7.1.140.0100.00315.68
7.1.130.0070.00715.68
7.1.120.0040.00815.90
7.1.110.0100.00315.96
7.1.100.0030.01017.13
7.1.90.0090.00615.85
7.1.80.0060.00615.65
7.1.70.0030.00516.53
7.1.60.0040.01116.40
7.1.50.0080.00816.37
7.1.40.0060.00615.69
7.1.30.0100.00315.75
7.1.20.0030.01015.89
7.1.10.0040.00715.68
7.1.00.0060.04219.04
7.0.330.0070.00315.62
7.0.320.0040.00815.33
7.0.310.0030.00915.43
7.0.300.0060.00715.51
7.0.290.0070.00415.30
7.0.280.0000.01215.64
7.0.270.0030.00915.29
7.0.260.0000.01315.43
7.0.250.0120.00015.65
7.0.240.0070.00715.58
7.0.230.0000.01115.23
7.0.220.0100.00315.44
7.0.210.0030.01015.45
7.0.200.0030.01216.01
7.0.190.0060.00315.61
7.0.180.0030.00615.37
7.0.170.0120.00015.57
7.0.160.0040.00715.54
7.0.150.0080.00615.54
7.0.140.0030.00615.43
7.0.130.0040.01115.55
7.0.120.0030.00615.35
7.0.110.0160.00015.49
7.0.100.0090.00315.54
7.0.90.0050.00815.24
7.0.80.0030.01015.34
7.0.70.0030.00815.26
7.0.60.0050.04518.00
7.0.50.0080.04316.99
7.0.40.0150.03517.02
7.0.30.0150.02117.09
7.0.20.0170.05017.14
7.0.10.0070.02417.24
7.0.00.0060.03017.10
5.6.400.0060.00614.43
5.6.390.0000.01314.32
5.6.380.0070.00714.48
5.6.370.0070.01014.40
5.6.360.0000.00814.53
5.6.350.0030.00914.46
5.6.340.0040.00814.17
5.6.330.0030.00514.50
5.6.320.0120.00014.76
5.6.310.0050.00514.62
5.6.300.0000.00914.64
5.6.290.0130.00014.41
5.6.280.0000.01114.32
5.6.270.0040.01114.48
5.6.260.0130.00314.45
5.6.250.0110.00414.42
5.6.240.0040.00714.34
5.6.230.0060.00614.61
5.6.220.0000.00914.29
5.6.210.0130.03817.47
5.6.200.0070.02216.44
5.6.190.0100.03017.48
5.6.180.0120.04717.43
5.6.170.0090.02317.55
5.6.160.0070.03317.53
5.6.150.0010.02616.25
5.6.140.0030.02816.32
5.6.130.0080.04516.25
5.6.120.0120.04017.75
5.6.110.0070.03917.73
5.6.100.0110.03517.61
5.6.90.0100.03517.64
5.6.80.0110.04217.25
5.6.70.0070.01014.52
5.6.60.0030.01214.63
5.6.50.0060.01214.36
5.6.40.0070.00714.25
5.6.30.0030.01214.39
5.6.20.0060.01214.29
5.6.10.0120.00614.10
5.6.00.0060.00614.41
5.5.380.0070.00314.44
5.5.370.0040.00414.37
5.5.360.0030.01014.23
5.5.350.1980.02517.22
5.5.340.0050.04016.18
5.5.330.0090.02217.26
5.5.320.0140.02717.54
5.5.310.0200.03517.27
5.5.300.0040.03016.23
5.5.290.0170.03516.25
5.5.280.0060.02317.89
5.5.270.0100.03017.82
5.5.260.0070.02317.56
5.5.250.0080.02717.61
5.5.240.0130.02017.13
5.5.230.0100.00314.22
5.5.220.0040.01414.32
5.5.210.0070.00414.55
5.5.200.0030.00713.90
5.5.190.0120.00314.30
5.5.180.0090.00614.17
5.5.170.0090.00314.10
5.5.160.0070.00714.18
5.5.150.0080.00714.22
5.5.140.0030.00514.23
5.5.130.0000.00914.43
5.5.120.0070.00714.25
5.5.110.0060.00614.38
5.5.100.0080.00614.37
5.5.90.0090.00614.52
5.5.80.0130.00014.10
5.5.70.0000.00814.51
5.5.60.0120.00014.11
5.5.50.0040.00414.16
5.5.40.0030.00914.42
5.5.30.0070.00714.34
5.5.20.0120.00314.13
5.5.10.0100.00714.30
5.5.00.0080.00314.35

preferences:
49.68 ms | 401 KiB | 5 Q