3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $array = array(); $array['foo'] = 'bar'; $array['foo']['bar'] = 'baz'; var_dump($array);

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.0100.00318.88
8.3.30.0070.00719.09
8.3.20.0000.00820.04
8.3.10.0040.00422.04
8.3.00.0020.00522.43
8.2.170.0070.00722.96
8.2.160.0070.01020.38
8.2.150.0090.00924.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00419.28
8.2.110.0080.00022.23
8.2.100.0090.00319.58
8.2.90.0080.00019.27
8.2.80.0050.00318.05
8.2.70.0000.00817.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0000.00717.99
8.2.20.0000.00717.79
8.2.10.0000.00717.72
8.2.00.0040.00417.84
8.1.270.0060.00322.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.98
8.1.230.0000.01018.94
8.1.220.0000.00817.80
8.1.210.0000.00918.77
8.1.200.0060.00317.47
8.1.190.0040.00417.52
8.1.180.0080.00018.47
8.1.170.0000.01018.59
8.1.160.0030.00322.05
8.1.150.0050.00318.52
8.1.140.0040.00717.34
8.1.130.0030.00317.72
8.1.120.0030.00317.46
8.1.110.0040.00417.48
8.1.100.0000.00717.37
8.1.90.0040.00417.51
8.1.80.0030.00317.34
8.1.70.0000.00717.37
8.1.60.0060.00317.63
8.1.50.0090.00017.50
8.1.40.0000.00817.50
8.1.30.0040.00417.64
8.1.20.0000.00817.55
8.1.10.0000.00717.48
8.1.00.0040.00417.50
8.0.300.0050.00318.77
8.0.290.0000.00716.91
8.0.280.0070.00018.47
8.0.270.0030.00317.26
8.0.260.0060.00016.87
8.0.250.0070.00017.07
8.0.240.0030.00316.90
8.0.230.0040.00416.89
8.0.220.0030.00316.86
8.0.210.0030.00316.88
8.0.200.0030.00517.02
8.0.190.0040.00416.96
8.0.180.0000.00716.88
8.0.170.0030.00316.92
8.0.160.0080.00016.84
8.0.150.0000.00716.97
8.0.140.0000.00716.91
8.0.130.0000.00613.46
8.0.120.0040.00416.90
8.0.110.0000.00916.94
8.0.100.0040.00417.05
8.0.90.0040.00416.94
8.0.80.0120.00616.97
8.0.70.0040.00416.82
8.0.60.0080.00016.84
8.0.50.0000.00816.84
8.0.30.0110.00916.96
8.0.20.0080.01117.40
8.0.10.0070.00016.89
8.0.00.0100.01116.76
7.4.330.0050.00015.00
7.4.320.0060.00016.57
7.4.300.0060.00016.48
7.4.290.0000.00716.60
7.4.280.0000.00716.43
7.4.270.0030.00316.64
7.4.260.0000.00716.58
7.4.250.0050.00316.55
7.4.240.0020.00516.60
7.4.230.0000.00716.43
7.4.220.0100.01016.55
7.4.210.0100.00616.51
7.4.200.0030.00316.39
7.4.190.0030.00316.66
7.4.160.0120.00316.79
7.4.150.0080.01217.40
7.4.140.0150.00217.86
7.4.130.0110.00516.44
7.4.120.0090.01016.54
7.4.110.0110.00616.58
7.4.100.0090.00916.51
7.4.90.0040.01416.40
7.4.80.0060.01219.39
7.4.70.0130.00716.26
7.4.60.0100.00716.58
7.4.50.0000.00916.36
7.4.40.0040.01122.77
7.4.30.0000.01716.61
7.4.00.0040.01114.96
7.3.330.0030.00313.07
7.3.320.0000.00513.05
7.3.310.0000.00716.28
7.3.300.0000.00716.36
7.3.290.0060.00916.30
7.3.280.0080.00916.32
7.3.270.0100.00717.40
7.3.260.0160.00316.46
7.3.250.0100.01116.38
7.3.240.0130.01016.63
7.3.230.0100.01316.39
7.3.210.0090.00916.25
7.3.200.0100.00719.39
7.3.190.0090.01216.29
7.3.180.0030.01516.21
7.3.170.0080.00816.33
7.3.160.0060.00916.27
7.3.120.0030.01215.03
7.3.110.0080.01214.71
7.3.100.0110.00714.76
7.3.90.0070.00715.01
7.3.80.0000.01014.57
7.3.70.0030.00614.61
7.3.60.0030.00914.66
7.3.50.0120.00614.80
7.3.40.0030.01414.70
7.3.30.0030.01014.70
7.3.20.0070.00416.32
7.3.10.0030.01316.39
7.3.00.0090.00816.59
7.2.330.0070.01016.40
7.2.320.0150.00616.69
7.2.310.0080.01216.29
7.2.300.0080.00816.63
7.2.290.0060.01016.70
7.2.240.0100.00915.20
7.2.230.0030.01215.18
7.2.220.0040.01114.83
7.2.210.0120.00315.12
7.2.200.0030.01315.11
7.2.190.0140.00414.87
7.2.180.0030.01014.91
7.2.170.0060.01014.98
7.2.160.0070.00714.96
7.2.150.0000.01416.79
7.2.140.0060.00916.73
7.2.130.0060.00516.86
7.2.120.0050.01016.73
7.2.110.0100.00516.87
7.2.100.0130.00516.86
7.2.90.0090.00716.88
7.2.80.0050.01116.89
7.2.70.0080.00816.76
7.2.60.0090.00916.80
7.2.50.0120.00616.79
7.2.40.0070.00716.87
7.2.30.0100.00616.89
7.2.20.0030.01016.75
7.2.10.0050.00916.82
7.2.00.0050.00916.71
7.1.330.0030.01015.79
7.1.320.0030.01315.95
7.1.310.0060.00615.83
7.1.300.0110.00715.86
7.1.290.0000.01315.72
7.1.280.0110.00415.41
7.1.270.0070.00315.88
7.1.260.0100.00315.86
7.1.250.0070.00515.79
7.1.200.0100.00315.53
7.1.70.0040.00417.09
7.1.60.0000.02219.82
7.1.50.0130.01317.01
7.1.00.0070.07322.53
7.0.200.0000.01016.92
7.0.140.0070.06321.92
7.0.60.0030.04319.78
7.0.50.0130.05317.90
7.0.40.0070.08720.12
7.0.30.0430.07020.01
7.0.20.0270.08020.01
7.0.10.0270.06720.17
7.0.00.0070.08020.32
5.6.210.0030.04320.62
5.6.200.0030.05718.16
5.6.190.0070.04720.58
5.6.180.4130.03720.75
5.6.170.0400.07020.62
5.6.160.0170.07320.41
5.6.150.0100.03318.18
5.6.140.0070.08018.14
5.6.130.0070.06718.09
5.6.120.0100.05720.99
5.6.110.0030.04020.97
5.6.100.0100.03321.11
5.6.90.0030.08321.11
5.6.80.0070.05720.43
5.6.70.0170.07020.49
5.5.350.0030.07720.43
5.5.340.0100.03317.95
5.5.330.0100.05720.32
5.5.320.0200.04320.13
5.5.310.0200.06720.28
5.5.300.0130.07717.95
5.5.290.0030.04317.91
5.5.280.0000.07020.86
5.5.270.0100.04020.86
5.5.260.0130.05320.95
5.5.250.0070.07720.68
5.5.240.0030.07720.03
5.4.450.0700.05319.11
5.4.440.0600.05019.59
5.4.430.0670.05719.13
5.4.420.0300.06019.11
5.4.410.0070.06019.50
5.4.400.0800.00018.62
5.4.390.0930.00018.56
5.4.380.0200.06018.62
5.4.370.0370.04318.63
5.4.360.0230.04718.66
5.4.350.0230.06318.46
5.4.340.0270.07718.71
5.4.320.0060.04112.45
5.4.310.0100.03812.45
5.4.300.0040.03812.45
5.4.290.0070.03812.45
5.4.280.0080.03512.34
5.4.270.0040.04312.34
5.4.260.0070.05318.90
5.4.250.0000.06018.83
5.4.240.0100.04718.90
5.4.230.0030.05718.74
5.4.220.0030.06019.02
5.4.210.0100.05318.77
5.4.200.0070.06318.69
5.4.190.0070.05718.65
5.4.180.0030.06318.77
5.4.170.0070.05718.73
5.4.160.0100.05018.86
5.4.150.0070.05718.78
5.4.140.0100.05716.35
5.4.130.0070.05016.46
5.4.120.0070.05016.18
5.4.110.0100.05316.52
5.4.100.0030.05316.52
5.4.90.0030.05316.48
5.4.80.0030.05716.37
5.4.70.0100.05716.47
5.4.60.0070.05016.43
5.4.50.0130.04316.49
5.4.40.0170.06016.43
5.4.30.0030.05316.46
5.4.20.0030.05716.36
5.4.10.0130.04716.46
5.4.00.0070.05015.58
5.3.290.0040.04412.80
5.3.280.0130.04314.64
5.3.270.0100.07714.70
5.3.260.0070.05314.47
5.3.250.0070.05314.70
5.3.240.0100.07314.48
5.3.230.0130.04714.59
5.3.220.0130.04714.56
5.3.210.0170.05314.40
5.3.200.0070.05314.58
5.3.190.0000.06014.45
5.3.180.0130.04714.25
5.3.170.0070.04714.61
5.3.160.0030.05314.58
5.3.150.0000.06014.50
5.3.140.0030.05014.47
5.3.130.0100.07714.45
5.3.120.0100.05014.59
5.3.110.0100.05014.39
5.3.100.0070.05314.02
5.3.90.0100.04314.00
5.3.80.0170.05013.79
5.3.70.0170.04714.11
5.3.60.0100.06313.91
5.3.50.0130.04313.96
5.3.40.0200.03713.94
5.3.30.0070.05313.74
5.3.20.0030.06713.57
5.3.10.0070.05313.53
5.3.00.0070.05013.73
5.2.170.0070.04711.25
5.2.160.0100.03311.25
5.2.150.0030.04311.29
5.2.140.0100.06011.29
5.2.130.0130.03011.19
5.2.120.0000.04311.02
5.2.110.0030.05311.03
5.2.100.0130.04711.10
5.2.90.0130.04710.98
5.2.80.0130.05011.10
5.2.70.0100.04310.98
5.2.60.0130.04711.20
5.2.50.0100.03310.93
5.2.40.0030.05311.00
5.2.30.0100.05010.98
5.2.20.0170.03011.06
5.2.10.0070.05010.80
5.2.00.0030.05310.78
5.1.60.0130.0409.98
5.1.50.0070.04710.07
5.1.40.0030.04310.20
5.1.30.0070.03310.39
5.1.20.0000.04010.42
5.1.10.0130.02710.12
5.1.00.0000.04010.21
5.0.50.0100.0238.77
5.0.40.0030.0278.19
5.0.30.0070.0478.30
5.0.20.0130.0178.11
5.0.10.0070.0238.22
5.0.00.0030.0438.14
4.4.90.0030.0306.91
4.4.80.0000.0236.91
4.4.70.0070.0176.91
4.4.60.0030.0206.91
4.4.50.0070.0176.91
4.4.40.0100.0276.91
4.4.30.0100.0136.91
4.4.20.0130.0206.91
4.4.10.0030.0206.91
4.4.00.0000.0376.91
4.3.110.0030.0206.91
4.3.100.0000.0276.91
4.3.90.0000.0236.91
4.3.80.0000.0376.91
4.3.70.0000.0206.91
4.3.60.0030.0236.91
4.3.50.0030.0306.91
4.3.40.0030.0306.91
4.3.30.0030.0206.91
4.3.20.0070.0176.91
4.3.10.0030.0206.91
4.3.00.0100.0207.38

preferences:
63.32 ms | 400 KiB | 5 Q