3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $tables = array( 0 => array('index_length' => 1, 'data_length' => 2), 1 => array('index_length' => 3, 'data_length' => 4) ); $size = array_reduce($tables, function ($value, $item) { return $value + $item['index_length'] + $item['data_length']; });

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.0120.00616.75
8.3.50.0140.00217.41
8.3.40.0100.01018.81
8.3.30.0100.00318.67
8.3.20.0080.00018.60
8.3.10.0030.00620.53
8.3.00.0060.00319.25
8.2.180.0140.00016.38
8.2.170.0070.00722.96
8.2.160.0100.00321.02
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00620.08
8.2.110.0090.00022.25
8.2.100.0060.00617.82
8.2.90.0050.00317.88
8.2.80.0030.00817.97
8.2.70.0040.00418.04
8.2.60.0000.00918.16
8.2.50.0080.00018.10
8.2.40.0040.00422.17
8.2.30.0050.00219.25
8.2.20.0040.00417.77
8.2.10.0000.00717.77
8.2.00.0050.00617.68
8.1.280.0130.00725.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0120.00919.43
8.1.230.0060.00617.65
8.1.220.0080.00017.78
8.1.210.0030.00518.77
8.1.200.0000.00817.48
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00318.70
8.1.160.0070.00018.85
8.1.150.0040.00418.89
8.1.140.0000.00717.36
8.1.130.0070.00017.73
8.1.120.0040.00417.31
8.1.110.0040.00417.49
8.1.100.0040.00417.47
8.1.90.0040.00417.42
8.1.80.0000.00817.36
8.1.70.0000.00817.42
8.1.60.0060.00317.55
8.1.50.0040.00417.52
8.1.40.0000.00717.44
8.1.30.0000.00717.56
8.1.20.0080.00017.52
8.1.10.0040.00417.61
8.1.00.0000.00717.36
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0030.00317.07
8.0.260.0060.00016.70
8.0.250.0040.00416.89
8.0.240.0040.00416.98
8.0.230.0070.00016.97
8.0.220.0000.00716.79
8.0.210.0040.00416.93
8.0.200.0030.00317.03
8.0.190.0060.00316.92
8.0.180.0000.00716.87
8.0.170.0090.00017.00
8.0.160.0070.00016.96
8.0.150.0000.00916.96
8.0.140.0020.00516.91
8.0.130.0000.00613.34
8.0.120.0040.00416.82
8.0.110.0000.00716.82
8.0.100.0030.00416.90
8.0.90.0040.00416.86
8.0.80.0040.01116.93
8.0.70.0000.00816.85
8.0.60.0050.00316.93
8.0.50.0050.00216.84
8.0.30.0120.00617.05
8.0.20.0080.01117.01
8.0.10.0040.00416.89
8.0.00.0060.01216.85
7.4.330.0050.00013.01
7.4.320.0000.00916.36
7.4.300.0030.00316.59
7.4.290.0000.00716.52
7.4.280.0040.00416.43
7.4.270.0070.00016.52
7.4.260.0030.00313.31
7.4.250.0090.00016.56
7.4.240.0040.00416.54
7.4.230.0070.00016.41
7.4.220.0000.01816.46
7.4.210.0050.00916.57
7.4.200.0030.00316.59
7.4.190.0000.00716.46
7.4.160.0030.01316.53
7.4.150.0040.01316.45
7.4.140.0110.00716.58
7.4.130.0110.00716.60
7.4.120.0110.00816.61
7.4.110.0060.01316.40
7.4.100.0100.00716.59
7.4.90.0040.01516.44
7.4.80.0030.01616.66
7.4.70.0150.00316.68
7.4.60.0110.00816.42
7.4.50.0030.00316.52
7.4.40.0080.00816.50
7.4.30.0080.00816.61
7.4.00.0030.01414.92
7.3.330.0070.00013.38
7.3.320.0020.00213.14
7.3.310.0000.00716.23
7.3.300.0000.00716.37
7.3.290.0050.01416.20
7.3.280.0050.01116.26
7.3.270.0090.00816.27
7.3.260.0060.01116.49
7.3.250.0180.00816.45
7.3.240.0050.01116.40
7.3.230.0030.01316.43
7.3.210.0090.00916.53
7.3.200.0090.00919.39
7.3.190.0080.01116.65
7.3.180.0050.01416.55
7.3.170.0110.00716.31
7.3.160.0110.00416.21
7.3.120.0040.00414.97
7.2.330.0100.00716.68
7.2.320.0100.01416.34
7.2.310.0120.01016.62
7.2.300.0080.01216.77
7.2.290.0080.00816.50
7.2.00.0070.00719.39
7.1.100.0040.01217.89
7.1.70.0000.00817.29
7.1.60.0100.01419.40
7.1.50.0060.01616.93
7.1.00.0100.07022.33
7.0.200.0250.00615.02
7.0.140.0000.07722.22
7.0.120.0130.06322.13
7.0.60.0100.05019.82
7.0.50.0070.08717.83
7.0.40.0030.04319.96
7.0.30.0230.04020.08
7.0.20.0200.04320.26
7.0.10.0070.08020.16
7.0.00.0070.05020.18
5.6.280.0070.07021.04
5.6.210.0070.08720.65
5.6.200.0270.06318.18
5.6.190.0000.09020.77
5.6.180.0270.05720.46
5.6.170.0200.04020.55
5.6.160.0070.04020.54
5.6.150.0070.06318.27
5.6.140.0100.08018.15
5.6.130.0070.03718.21
5.6.120.0030.04020.99
5.6.110.0130.07320.98
5.6.100.0030.04021.03
5.6.90.0100.08320.98
5.6.80.0030.04020.43
5.6.70.4700.03020.37
5.5.350.0200.03720.34
5.5.340.0070.07717.92
5.5.330.0030.04320.32
5.5.320.0230.05320.34
5.5.310.0400.05320.35
5.5.300.0000.05017.95
5.5.290.0070.08317.92
5.5.280.0000.04320.73
5.5.270.0070.08320.84
5.5.260.0070.05720.85
5.5.250.0000.09020.61
5.5.240.2100.02720.16
5.4.450.0030.06019.57
5.4.440.0100.04019.57
5.4.430.0030.07019.48
5.4.420.0030.04719.18
5.4.410.0030.05719.18
5.4.400.0100.03319.15
5.4.390.0100.03318.87
5.4.380.0030.04719.20
5.4.370.0070.07319.09
5.4.360.0070.08019.01
5.4.350.0000.04719.00
5.4.340.0000.04019.16
5.4.320.0070.03319.24
5.4.310.0000.04019.18
5.4.300.0070.07318.85
5.4.290.0030.04319.12
5.4.280.0030.06719.08
5.4.270.0100.06318.96
5.4.260.0070.06319.15
5.4.250.0100.07018.85
5.4.240.0070.07719.11
5.4.230.0000.04019.19
5.4.220.0000.05019.14
5.4.210.0100.03719.14
5.4.200.0070.06718.85
5.4.190.0000.04719.20
5.4.180.0030.07719.14
5.4.170.0100.04318.91
5.4.160.0030.06718.82
5.4.150.0000.04319.15
5.4.140.0070.04716.40
5.4.130.0000.08016.42
5.4.120.0100.06716.51
5.4.110.0030.03716.43
5.4.100.0030.03316.64
5.4.90.0070.03716.55
5.4.80.0070.06716.26
5.4.70.0030.06716.39
5.4.60.0070.04016.28
5.4.50.0030.03316.27
5.4.40.0070.07016.36
5.4.30.0070.03316.64
5.4.20.0000.03716.62
5.4.10.0030.03716.38
5.4.00.0030.04015.86
5.3.290.0100.06714.67
5.3.280.0100.05314.64
5.3.270.0030.05014.76
5.3.260.0030.04714.62
5.3.250.0100.03014.74
5.3.240.0130.06714.75
5.3.230.0030.06014.61
5.3.220.0070.07314.57
5.3.210.0000.04014.56
5.3.200.0030.03714.45
5.3.190.0070.03714.61
5.3.180.0100.03714.59
5.3.170.0030.08014.61
5.3.160.0030.03714.71
5.3.150.0030.03714.59
5.3.140.0030.03714.54
5.3.130.0000.08014.59
5.3.120.0000.04314.69
5.3.110.0030.04314.60
5.3.100.0100.03314.05
5.3.90.0000.04014.06
5.3.80.0100.07014.07
5.3.70.0070.06013.98
5.3.60.0070.06313.93
5.3.50.0000.04314.02
5.3.40.0030.05313.95
5.3.30.0100.03313.97
5.3.20.0070.03013.71
5.3.10.0030.04713.61
5.3.00.0070.04313.79
5.2.170.0170.02011.07
5.2.160.0000.05311.04
5.2.150.0030.03011.11
5.2.140.0070.06011.29
5.2.130.0030.02711.04
5.2.120.0000.06310.99
5.2.110.0170.03011.09
5.2.100.0030.03711.09
5.2.90.0000.03311.03
5.2.80.0070.05011.07
5.2.70.0030.03711.03
5.2.60.0000.04311.04
5.2.50.0000.03010.84
5.2.40.0030.03011.00
5.2.30.0000.04011.12
5.2.20.0030.04310.98
5.2.10.0070.02711.02
5.2.00.0030.03010.87
5.1.60.0000.02710.07
5.1.50.0030.0239.98
5.1.40.0030.0239.98
5.1.30.0000.02710.34
5.1.20.0070.02010.43
5.1.10.0100.02010.22
5.1.00.0030.0239.97
5.0.50.0000.0209.02
5.0.40.0000.0209.02
5.0.30.0000.0309.02
5.0.20.0030.0179.02
5.0.10.0030.0179.02
5.0.00.0030.0279.02
4.4.90.0000.0209.02
4.4.80.0100.0209.02
4.4.70.0070.0339.02
4.4.60.0030.0139.02
4.4.50.0000.0179.02
4.4.40.0000.0239.02
4.4.30.0000.0179.02
4.4.20.0000.0179.02
4.4.10.0070.0109.02
4.4.00.0000.0239.02
4.3.110.0000.0179.02
4.3.100.0000.0139.02
4.3.90.0000.0139.02
4.3.80.0000.0239.02
4.3.70.0030.0109.02
4.3.60.0000.0139.02
4.3.50.0000.0139.02
4.3.40.0000.0309.02
4.3.30.0030.0139.02
4.3.20.0030.0179.02
4.3.10.0000.0139.02
4.3.00.0000.0139.02

preferences:
45.03 ms | 400 KiB | 5 Q