3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('a' => true,'b' => false, 'c' => false); $b = array('a' => false,'b' => true, 'c' => false); var_dump($a + $b) ?>

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.40.0110.00418.54
8.3.30.0030.01020.21
8.3.20.0080.00020.39
8.3.10.0040.00420.93
8.3.00.0070.00023.66
8.2.170.0070.01122.96
8.2.160.0100.00720.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.03
8.2.110.0030.00621.03
8.2.100.0090.00317.78
8.2.90.0110.00519.17
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0000.00917.80
8.2.50.0060.00318.07
8.2.40.0040.00417.92
8.2.30.0000.00719.42
8.2.20.0040.00417.64
8.2.10.0020.00517.67
8.2.00.0080.00017.61
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0080.00319.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.22
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0050.00318.65
8.1.160.0040.00418.78
8.1.150.0040.00418.57
8.1.140.0040.00417.37
8.1.130.0030.00317.75
8.1.120.0000.00717.43
8.1.110.0040.00417.37
8.1.100.0050.00217.28
8.1.90.0030.00317.41
8.1.80.0000.00717.22
8.1.70.0070.00017.31
8.1.60.0050.00317.51
8.1.50.0000.00717.44
8.1.40.0070.00317.43
8.1.30.0020.00517.57
8.1.20.0000.00817.47
8.1.10.0000.00817.43
8.1.00.0000.00817.25
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.36
8.0.270.0000.00717.24
8.0.260.0000.00716.76
8.0.250.0040.00416.81
8.0.240.0000.00916.98
8.0.230.0000.00716.91
8.0.220.0060.00316.84
8.0.210.0070.00016.90
8.0.200.0030.00316.95
8.0.190.0040.00416.95
8.0.180.0040.00416.95
8.0.170.0030.00516.84
8.0.160.0000.00716.97
8.0.150.0030.00616.81
8.0.140.0040.00416.87
8.0.130.0070.00013.36
8.0.120.0000.00816.89
8.0.110.0070.00016.86
8.0.100.0070.00016.90
8.0.90.0030.00316.88
8.0.80.0030.01216.92
8.0.70.0070.00016.72
8.0.60.0030.00516.79
8.0.50.0090.00016.91
8.0.30.0140.00616.89
8.0.20.0120.01117.40
8.0.10.0070.00016.87
8.0.00.0070.01316.74
7.4.330.0000.00516.84
7.4.320.0030.00316.51
7.4.300.0000.00716.31
7.4.290.0040.00416.48
7.4.280.0080.00016.41
7.4.270.0030.00316.52
7.4.260.0000.00513.09
7.4.250.0040.00416.36
7.4.240.0030.00316.45
7.4.230.0040.00416.54
7.4.220.0180.00316.48
7.4.210.0100.00616.48
7.4.200.0040.00416.31
7.4.190.0000.00716.37
7.4.160.0060.00916.27
7.4.150.0180.00017.40
7.4.140.0110.00817.86
7.4.130.0020.01716.30
7.4.120.0050.01416.41
7.4.110.0180.00416.32
7.4.100.0090.01016.54
7.4.90.0130.00616.30
7.4.80.0040.01319.39
7.4.70.0180.00016.25
7.4.60.0100.00716.42
7.4.50.0090.00016.34
7.4.40.0070.00722.77
7.4.30.0100.00716.48
7.4.00.0000.01714.75
7.3.330.0030.00313.09
7.3.320.0000.00513.02
7.3.310.0030.00516.32
7.3.300.0000.00616.14
7.3.290.0100.00316.16
7.3.280.0120.00516.15
7.3.270.0090.00817.40
7.3.260.0140.00818.24
7.3.250.0130.00716.28
7.3.240.0090.01216.42
7.3.230.0070.01716.39
7.3.210.0060.01116.39
7.3.200.0120.00919.39
7.3.190.0160.00716.37
7.3.180.0100.00716.03
7.3.170.0160.00816.30
7.3.160.0060.01116.17
7.3.120.0070.00714.52
7.2.330.0100.00716.27
7.2.320.0030.01516.20
7.2.310.0120.00916.38
7.2.300.0100.01116.38
7.2.290.0090.01216.56
7.2.00.0090.00919.28
7.1.100.0060.00617.94
7.1.70.0030.00517.06
7.1.60.0110.01519.17
7.1.50.0060.01316.65
7.1.00.0030.03322.33
7.0.200.0030.00616.56
7.0.140.0030.07021.95
7.0.120.0030.05322.06
7.0.110.0130.06722.11
7.0.100.0000.07721.96
7.0.90.0100.07022.06
7.0.80.0030.07022.14
7.0.70.0100.06322.14
7.0.60.0070.07021.92
7.0.50.0000.07722.06
7.0.40.0030.06722.07
7.0.30.0030.05722.16
7.0.20.0030.07322.07
7.0.10.0030.07322.13
7.0.00.0000.07322.18
5.6.280.0030.07320.81
5.6.260.0030.07321.12
5.6.250.0030.07321.09
5.6.240.0070.07021.12
5.6.230.0030.07720.82
5.6.220.0000.06720.91
5.6.210.0030.07320.97
5.6.200.0000.08021.01
5.6.190.0030.06321.00
5.6.180.0100.05020.75
5.6.170.0000.06320.84
5.6.160.0070.07021.04
5.6.150.0030.07721.07
5.6.140.0070.07021.07
5.6.130.0070.06720.93
5.6.120.0000.05720.91
5.6.110.0030.05720.80
5.6.100.0000.07720.98
5.6.90.0030.05721.05
5.6.80.0030.06320.29
5.6.70.0000.06320.30
5.6.60.0030.07320.11
5.6.50.0070.06720.38
5.6.40.0000.07020.20
5.6.30.0070.07020.36
5.6.20.0100.06020.19
5.6.10.0030.07020.38
5.6.00.0030.07020.36
5.5.380.0030.06717.40
5.5.370.0030.07317.68
5.5.360.0000.07717.65
5.5.350.0070.06717.65
5.5.340.0100.06318.25
5.5.330.0070.07018.10
5.5.320.0100.06318.01
5.5.310.0100.05717.89
5.5.300.0030.07018.12
5.5.290.0000.07718.09
5.5.280.0030.06317.98
5.5.270.0000.06718.16
5.5.260.0000.06017.98
5.5.250.0000.07717.84
5.5.240.0000.05717.51
5.5.230.0030.07017.23
5.5.220.0000.06717.22
5.5.210.0030.06017.24
5.5.200.0100.06317.48
5.5.190.0030.07317.11
5.5.180.0000.07317.52
5.5.160.0030.06717.50
5.5.150.0000.05017.50
5.5.140.0070.06717.53
5.5.130.0030.06317.37
5.5.120.0070.05017.45
5.5.110.0000.07017.37
5.5.100.0070.06317.12
5.5.90.0030.06317.35
5.5.80.0070.06317.38
5.5.70.0000.05317.10
5.5.60.0030.06717.05
5.5.50.0030.06717.13
5.5.40.0000.06717.28
5.5.30.0000.05717.10
5.5.20.0000.06717.09
5.5.10.0070.05317.08
5.5.00.0000.07317.50
5.4.450.0070.07019.27
5.4.440.0070.06719.62
5.4.430.0030.07019.39
5.4.420.0070.06719.32
5.4.410.0030.05319.12
5.4.400.0030.06019.11
5.4.390.0030.06319.02
5.4.380.0030.06719.24
5.4.370.0030.06719.18
5.4.360.0030.07019.11
5.4.350.0000.06319.02
5.4.340.0070.06019.24
5.4.320.0070.06719.00
5.4.310.0070.05318.94
5.4.300.0000.06019.15
5.4.290.0000.06018.92
5.4.280.0030.06719.01
5.4.270.0030.06719.15
5.4.260.0000.07019.00
5.4.250.0000.07019.25
5.4.240.0070.06319.26
5.4.230.0030.05719.02
5.4.220.0030.05719.09
5.4.210.0000.07018.93
5.4.200.0030.06018.97
5.4.190.0070.06318.91
5.4.180.0000.06319.23
5.4.170.0000.06319.07
5.4.160.0030.06018.97
5.4.150.0100.05719.24
5.4.140.0000.07016.26
5.4.130.0030.06316.30
5.4.120.0030.05016.33
5.4.110.0070.06316.39
5.4.100.0100.05716.54
5.4.90.0100.05716.49
5.4.80.0000.05716.50
5.4.70.0000.06316.26
5.4.60.0070.06016.37
5.4.50.0000.06316.25
5.4.40.0030.06316.40
5.4.30.0030.06316.45
5.4.20.0000.06716.46
5.4.10.0000.07016.34
5.4.00.0000.06315.80
5.3.290.0030.05714.57
5.3.280.0070.06014.67
5.3.270.0030.05314.62
5.3.260.0000.06714.46
5.3.250.0000.06714.45
5.3.240.0000.06014.70
5.3.230.0070.05014.62
5.3.220.0070.05314.66
5.3.210.0030.06714.45
5.3.200.0000.07014.44
5.3.190.0030.06714.66
5.3.180.0000.07014.57
5.3.170.0000.06714.44
5.3.160.0000.06714.46
5.3.150.0070.06014.35
5.3.140.0030.06714.34
5.3.130.0000.07014.56
5.3.120.0000.05314.55
5.3.110.0070.06714.49
5.3.100.0030.06313.98
5.3.90.0030.06313.96
5.3.80.0070.06314.10
5.3.70.0030.05314.11
5.3.60.0000.06314.05
5.3.50.0070.06014.04
5.3.40.0000.06313.89
5.3.30.0070.04013.84
5.3.20.0000.05313.75
5.3.10.0030.06013.66
5.3.00.0030.06313.56
5.2.170.0000.05311.09
5.2.160.0070.02711.09
5.2.150.0030.05011.04
5.2.140.0000.05311.08
5.2.130.0000.05310.89
5.2.120.0030.05311.04
5.2.110.0000.05010.97
5.2.100.0030.05011.12
5.2.90.0070.04711.11
5.2.80.0030.05710.98
5.2.70.0100.05011.09
5.2.60.0030.05310.97
5.2.50.0030.05310.96
5.2.40.0000.05710.88
5.2.30.0000.05711.03
5.2.20.0000.05710.88
5.2.10.0070.04710.71
5.2.00.0030.05310.63
5.1.60.0000.04010.28
5.1.50.0000.04710.28
5.1.40.0000.04310.28
5.1.30.0000.05010.33
5.1.20.0000.04710.28
5.1.10.0030.04310.28
5.1.00.0030.04710.28
5.0.50.0000.04010.28
5.0.40.0000.03310.28
5.0.30.0000.04710.28
5.0.20.0000.03710.28
5.0.10.0030.03710.28
5.0.00.0070.05010.28
4.4.90.0030.03010.28
4.4.80.0000.03010.28
4.4.70.0030.02710.28
4.4.60.0000.03010.28
4.4.50.0000.03310.28
4.4.40.0000.04010.28
4.4.30.0000.02710.28
4.4.20.0030.02010.28
4.4.10.0000.03010.28
4.4.00.0030.04710.28
4.3.110.0000.02310.28
4.3.100.0000.03010.28
4.3.90.0000.03010.28
4.3.80.0030.03710.28
4.3.70.0000.03010.28
4.3.60.0000.03010.28
4.3.50.0000.03010.28
4.3.40.0030.04310.28
4.3.30.0030.02310.28
4.3.20.0000.02310.28
4.3.10.0030.03010.28
4.3.00.0000.03010.28

preferences:
59.41 ms | 400 KiB | 5 Q