3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array( "uid" => "BOB", "attr" => "Value" ); $arr['something'] = 2; var_dump($arr); ?>

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.0140.00718.18
8.3.50.0110.01122.06
8.3.40.0110.00418.70
8.3.30.0140.00018.96
8.3.20.0080.00020.20
8.3.10.0060.00322.14
8.3.00.0100.00022.24
8.2.180.0070.01416.38
8.2.170.0140.00722.96
8.2.160.0100.00720.83
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0110.00326.16
8.2.120.0060.00319.38
8.2.110.0070.00322.25
8.2.100.0060.00619.64
8.2.90.0090.00019.17
8.2.80.0090.00019.66
8.2.70.0000.00917.35
8.2.60.0030.00518.04
8.2.50.0040.00718.07
8.2.40.0040.00418.16
8.2.30.0000.00818.05
8.2.20.0040.00417.75
8.2.10.0070.00017.67
8.2.00.0030.00617.67
8.1.280.0130.00725.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0040.00719.16
8.1.220.0060.00317.79
8.1.210.0030.00618.77
8.1.200.0030.00717.35
8.1.190.0040.00417.39
8.1.180.0030.00618.10
8.1.170.0040.00418.58
8.1.160.0070.00021.92
8.1.150.0070.00018.48
8.1.140.0030.00517.34
8.1.130.0080.00017.74
8.1.120.0030.00717.29
8.1.110.0050.00217.38
8.1.100.0040.00417.44
8.1.90.0000.00717.34
8.1.80.0040.00417.29
8.1.70.0030.00317.39
8.1.60.0060.00317.46
8.1.50.0070.00017.36
8.1.40.0040.00417.34
8.1.30.0060.00317.59
8.1.20.0040.00417.61
8.1.10.0040.00417.41
8.1.00.0050.00317.45
8.0.300.0030.00318.77
8.0.290.0000.00716.93
8.0.280.0030.00318.29
8.0.270.0030.00317.10
8.0.260.0000.00616.65
8.0.250.0000.00716.85
8.0.240.0000.01116.92
8.0.230.0000.00816.90
8.0.220.0030.00316.75
8.0.210.0030.00316.80
8.0.200.0000.00716.77
8.0.190.0030.00516.84
8.0.180.0050.00316.84
8.0.170.0040.00416.85
8.0.160.0070.00016.80
8.0.150.0040.00416.79
8.0.140.0000.00816.76
8.0.130.0030.00313.22
8.0.120.0050.00316.82
8.0.110.0080.00016.84
8.0.100.0070.00016.69
8.0.90.0000.00716.69
8.0.80.0060.01016.81
8.0.70.0000.00716.64
8.0.60.0000.00716.66
8.0.50.0050.00216.63
8.0.30.0060.01316.97
8.0.20.0040.01617.40
8.0.10.0060.00316.96
8.0.00.0050.01216.73
7.4.330.0000.00515.00
7.4.320.0000.00616.41
7.4.300.0040.00416.53
7.4.290.0070.00016.53
7.4.280.0000.00816.43
7.4.270.0050.00216.44
7.4.260.0070.00016.31
7.4.250.0000.00816.47
7.4.240.0020.00516.49
7.4.230.0030.00316.53
7.4.220.0070.01116.57
7.4.210.0100.00516.44
7.4.200.0000.00716.32
7.4.190.0040.00416.38
7.4.160.0030.01616.24
7.4.150.0160.00317.40
7.4.140.0100.00817.86
7.4.130.0070.01716.48
7.4.120.0130.00416.51
7.4.110.0110.00616.41
7.4.100.0030.01316.48
7.4.90.0090.00916.58
7.4.80.0160.00319.39
7.4.70.0060.01216.27
7.4.60.0100.00716.40
7.4.50.0030.00516.16
7.4.40.0070.00722.77
7.4.30.0060.01016.46
7.4.00.0080.01014.98
7.3.330.0050.00013.18
7.3.320.0050.00013.05
7.3.310.0030.00316.14
7.3.300.0030.00316.22
7.3.290.0100.00316.14
7.3.280.0060.01116.18
7.3.270.0090.00617.40
7.3.260.0030.01316.42
7.3.250.0060.01116.51
7.3.240.0100.01016.23
7.3.230.0170.00316.39
7.3.210.0130.00716.24
7.3.200.0160.00619.39
7.3.190.0060.01016.58
7.3.180.0100.01016.22
7.3.170.0060.00916.27
7.3.160.0130.00816.23
7.3.120.0070.00914.77
7.3.110.0110.00714.92
7.3.100.0040.01414.66
7.3.90.0070.00714.85
7.3.80.0070.00614.60
7.3.70.0040.01114.77
7.3.60.0030.01314.49
7.3.50.0070.01014.63
7.3.40.0110.00314.51
7.3.30.0000.01414.89
7.3.20.0060.00916.33
7.3.10.0040.01116.74
7.3.00.0000.00916.58
7.2.330.0070.01016.64
7.2.320.0150.00916.67
7.2.310.0110.00816.19
7.2.300.0070.01016.39
7.2.290.0080.00816.23
7.2.250.0000.01914.97
7.2.240.0000.02015.00
7.2.230.0030.01414.95
7.2.220.0000.01314.92
7.2.210.0030.00714.77
7.2.200.0100.00714.83
7.2.190.0060.00615.04
7.2.180.0100.00714.83
7.2.170.0030.00714.90
7.2.00.0030.00619.23
7.1.330.0040.01215.93
7.1.320.0000.00815.57
7.1.310.0000.01215.82
7.1.300.0060.00315.66
7.1.290.0100.00715.87
7.1.280.0110.00315.80
7.1.270.0110.00315.68
7.1.260.0070.01015.86
7.1.100.0060.00917.82
7.1.70.0030.00616.70
7.1.60.0140.01019.82
7.1.50.0070.01416.94
7.1.00.0030.07022.31
7.0.200.0030.01016.55
7.0.140.0030.07322.09
7.0.60.0100.08319.84
7.0.50.0030.04317.80
7.0.40.0000.07020.12
7.0.30.0370.04320.09
7.0.20.0200.04019.96
7.0.10.0030.08320.30
7.0.00.0100.03720.19
5.6.280.0030.07320.98
5.6.210.0100.07720.74
5.6.200.0070.08318.11
5.6.190.0070.04020.63
5.6.180.0470.07720.60
5.6.170.0400.06320.41
5.6.160.0200.06320.71
5.6.150.0030.04018.21
5.6.140.0070.04718.23
5.6.130.0000.04318.09
5.6.120.0070.04021.11
5.6.110.0070.09321.13
5.6.100.0170.07020.98
5.6.90.0070.06021.09
5.6.80.0030.04020.38
5.5.350.0200.08320.39
5.5.340.0130.06717.88
5.5.330.0030.08320.40
5.5.320.0470.07020.30
5.5.310.0330.07720.32
5.5.300.0000.07717.91
5.5.290.0070.03717.93
5.5.280.0070.08320.77
5.5.270.0030.09020.91
5.5.260.0130.07320.75
5.5.250.0100.06720.78
5.5.240.0030.08020.25
5.4.450.0200.05719.27
5.4.440.0500.06319.10
5.4.430.0100.05319.52
5.4.420.0100.05719.45
5.4.410.0130.05019.02
5.4.400.0070.05718.55
5.4.390.0270.05318.61
5.4.380.0100.05318.75
5.4.370.0170.05718.68
5.4.360.0230.05318.56
5.4.350.0230.05018.74
5.4.340.0200.04718.52
5.4.320.0080.03812.45
5.4.310.0070.04112.45
5.4.300.0090.04712.45
5.4.290.0080.04412.45
5.4.280.0080.03312.35
5.4.270.0070.08018.95
5.4.260.0070.05718.79
5.4.250.0170.06318.80
5.4.240.0030.06019.02
5.4.230.0170.05318.90
5.4.220.0130.06018.97
5.4.210.0170.05018.84
5.4.200.0170.07018.94
5.4.190.0070.05318.98
5.4.180.0030.07718.90
5.4.170.0100.05018.97
5.4.160.0200.05018.74
5.4.150.0130.07019.06
5.4.140.0070.05316.41
5.4.130.0030.06016.53
5.4.120.0070.05316.34
5.4.110.0070.05716.50
5.4.100.0230.05016.57
5.4.90.0100.06716.57
5.4.80.0100.05716.34
5.4.70.0000.06016.58
5.4.60.0070.05716.52
5.4.50.0070.06316.48
5.4.40.0130.06716.54
5.4.30.0170.04716.36
5.4.20.0100.05316.48
5.4.10.0100.05016.55
5.4.00.0070.05315.95
5.3.290.0050.04612.80
5.3.280.0100.06714.78
5.3.270.0200.07014.75
5.3.260.0130.07014.64
5.3.250.0200.05314.73
5.3.240.0100.07714.77
5.3.230.0030.07714.73
5.3.220.0130.06714.55
5.3.210.0130.07014.75
5.3.200.0070.05314.62
5.3.190.0130.04714.49
5.3.180.0000.06714.48
5.3.170.0100.07014.62
5.3.160.0130.04314.71
5.3.150.0130.04314.70
5.3.140.0030.06014.61
5.3.130.0000.06314.53
5.3.120.0100.07314.65
5.3.110.0130.07014.53
5.3.100.0130.04714.07
5.3.90.0070.06013.94
5.3.80.0030.05314.19
5.3.70.0070.05014.00
5.3.60.0070.05714.11
5.3.50.0070.04714.11
5.3.40.0230.05313.75
5.3.30.0170.03713.98
5.3.20.0070.07013.88
5.3.10.0000.07713.63
5.3.00.0070.05313.73
5.2.170.0030.06011.35
5.2.160.0100.04011.25
5.2.150.0070.04311.27
5.2.140.0030.06011.29
5.2.130.0030.04011.04
5.2.120.0070.04711.21
5.2.110.0100.04011.23
5.2.100.0070.03711.20
5.2.90.0070.04311.33
5.2.80.0130.03710.89
5.2.70.0100.03711.32
5.2.60.0030.04711.04
5.2.50.0070.04011.25
5.2.40.0070.05710.92
5.2.30.0170.03311.10
5.2.20.0070.05311.19
5.2.10.0000.04310.91
5.2.00.0070.04010.93
5.1.60.0000.03710.02
5.1.50.0130.02710.03
5.1.40.0170.0339.96
5.1.30.0070.04010.38
5.1.20.0030.05010.62
5.1.10.0100.03310.36
5.1.00.0070.0339.94
5.0.50.0230.0208.66
5.0.40.0130.0178.60
5.0.30.0070.0608.32
5.0.20.0070.0378.07
5.0.10.0070.0338.21
5.0.00.0030.0408.36
4.4.90.0030.0307.47
4.4.80.0070.0207.47
4.4.70.0000.0237.47
4.4.60.0000.0237.47
4.4.50.0030.0207.47
4.4.40.0000.0477.47
4.4.30.0030.0277.47
4.4.20.0030.0337.47
4.4.10.0030.0307.47
4.4.00.0000.0377.47
4.3.110.0070.0277.47
4.3.100.0070.0207.47
4.3.90.0030.0207.47
4.3.80.0030.0437.47
4.3.70.0000.0237.47
4.3.60.0100.0177.47
4.3.50.0070.0237.47
4.3.40.0000.0407.47
4.3.30.0000.0337.47
4.3.20.0100.0137.47
4.3.10.0000.0237.47
4.3.00.0030.0207.16

preferences:
47.56 ms | 401 KiB | 5 Q