3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON {"general":{ "round-corner":"0", "border-stroke":"2", "background-color äü??$%§":"#ffffff" } } JSON; $obj = json_decode($json); $keyName = "round-corner"; var_dump($obj->general->{'round-corner'}); var_dump($obj->general->$keyName); var_dump($obj->general->{'background-color äü??$%§'});

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.4.20.0100.00617.60
8.4.10.0100.00017.53
8.3.140.0070.00416.64
8.3.130.0040.00418.35
8.3.120.0070.00320.54
8.3.110.0160.00020.94
8.3.100.0050.00324.06
8.3.90.0060.00326.77
8.3.80.0090.00318.43
8.3.70.0040.01516.58
8.3.60.0070.00716.50
8.3.50.0130.00321.91
8.3.40.0070.01018.57
8.3.30.0070.00718.96
8.3.20.0040.00420.14
8.3.10.0040.00423.49
8.3.00.0080.00019.14
8.2.260.0140.00418.23
8.2.250.0050.00318.24
8.2.240.0090.00018.93
8.2.230.0050.00522.58
8.2.220.0040.00437.54
8.2.210.0080.00026.77
8.2.200.0070.00316.25
8.2.190.0140.00318.29
8.2.180.0160.00025.92
8.2.170.0000.01518.79
8.2.160.0070.00722.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00021.12
8.2.110.0070.01121.00
8.2.100.0000.01217.84
8.2.90.0090.00019.17
8.2.80.0000.01117.97
8.2.70.0050.00517.47
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0030.00619.71
8.2.30.0000.00718.27
8.2.20.0000.00817.68
8.2.10.0050.00318.11
8.2.00.0040.00417.75
8.1.310.0040.00418.50
8.1.300.0040.00419.78
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0030.00523.88
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.92
8.1.230.0070.00417.82
8.1.220.0030.00617.77
8.1.210.0050.00318.77
8.1.200.0090.00017.23
8.1.190.0060.00317.22
8.1.180.0050.00318.10
8.1.170.0090.00018.52
8.1.160.0040.00421.99
8.1.150.0040.00418.52
8.1.140.0050.00517.46
8.1.130.0040.00417.89
8.1.120.0050.00317.36
8.1.110.0070.00317.29
8.1.100.0030.00317.46
8.1.90.0000.00717.36
8.1.80.0040.00417.41
8.1.70.0000.00717.43
8.1.60.0060.00517.53
8.1.50.0040.00417.50
8.1.40.0030.00617.54
8.1.30.0100.00017.49
8.1.20.0050.00217.63
8.1.10.0000.00817.59
8.1.00.0040.00417.34
8.0.300.0000.00918.77
8.0.290.0080.00016.72
8.0.280.0000.00818.54
8.0.270.0070.00017.18
8.0.260.0030.00317.22
8.0.250.0040.00316.91
8.0.240.0000.00616.93
8.0.230.0070.00016.93
8.0.220.0040.00416.80
8.0.210.0030.00617.00
8.0.200.0040.00416.90
8.0.190.0080.00016.94
8.0.180.0050.00317.01
8.0.170.0040.00417.03
8.0.160.0040.00416.83
8.0.150.0000.00716.82
8.0.140.0030.00516.88
8.0.130.0050.00313.36
8.0.120.0000.00816.93
8.0.110.0000.00716.82
8.0.100.0050.00317.01
8.0.90.0040.00417.00
8.0.80.0090.00616.98
8.0.70.0050.00216.89
8.0.60.0000.00717.01
8.0.50.0070.00016.96
8.0.30.0140.00917.10
8.0.20.0120.00917.40
8.0.10.0050.00217.19
8.0.00.0110.00616.91
7.4.330.0070.00514.68
7.4.320.0000.00816.60
7.4.300.0040.00416.63
7.4.290.0080.00316.50
7.4.280.0030.00516.64
7.4.270.0070.00016.63
7.4.260.0000.00716.52
7.4.250.0050.00216.49
7.4.240.0030.00516.55
7.4.230.0070.00016.72
7.4.220.0170.00916.61
7.4.210.0080.00716.54
7.4.200.0070.00016.64
7.4.190.0070.00016.47
7.4.160.0090.00616.61
7.4.150.0150.00317.40
7.4.140.0100.01217.86
7.4.130.0100.01016.49
7.4.120.0130.00516.52
7.4.110.0170.00016.58
7.4.100.0130.02316.41
7.4.90.0160.00616.51
7.4.80.0150.00817.92
7.4.70.0150.01016.55
7.4.60.0130.01016.50
7.4.50.0130.00816.35
7.4.40.0150.01116.53
7.4.30.0150.00916.56
7.4.20.0240.01016.64
7.4.10.0140.01215.78
7.4.00.0120.01115.37
7.3.330.0060.00013.11
7.3.320.0020.00213.16
7.3.310.0000.00716.34
7.3.300.0040.00416.29
7.3.290.0050.00916.32
7.3.280.0080.00916.26
7.3.270.0080.00817.40
7.3.260.0080.00816.52
7.3.250.0100.00716.53
7.3.240.0100.00716.66
7.3.230.0100.00616.39
7.3.220.0280.00916.36
7.3.210.0110.01516.40
7.3.200.0170.01117.87
7.3.190.0140.01016.38
7.3.180.0160.00916.38
7.3.170.0240.00516.44
7.3.160.0100.01316.39
7.3.150.0290.00616.35
7.3.140.0370.00416.41
7.3.130.0180.00915.53
7.3.120.0140.00615.06
7.3.110.0150.00915.05
7.3.100.0090.01315.37
7.3.90.0100.00915.13
7.3.80.0090.01115.33
7.3.70.0130.00715.18
7.3.60.0090.01115.21
7.3.50.0090.00815.25
7.3.40.0120.01015.24
7.3.30.0130.01115.18
7.3.20.0140.01416.47
7.3.10.0120.00916.41
7.3.00.0090.00916.50
7.2.330.0180.00616.50
7.2.320.0170.00716.52
7.2.310.0170.00916.57
7.2.300.0160.01516.36
7.2.290.0140.00916.63
7.2.280.0220.00916.62
7.2.270.0240.01216.38
7.2.260.0170.01315.61
7.2.250.0130.01015.48
7.2.240.0130.00915.42
7.2.230.0110.01215.34
7.2.220.0080.01315.39
7.2.210.0080.01215.40
7.2.200.0140.00815.48
7.2.190.0140.00615.35
7.2.180.0160.00615.41
7.2.170.0130.01015.33
7.2.160.0240.00615.46
7.2.150.0170.01016.56
7.2.140.0140.01316.52
7.2.130.0150.00716.60
7.2.120.0100.01216.54
7.2.110.0150.01016.73
7.2.100.0160.00816.62
7.2.90.0130.01016.63
7.2.80.0110.01016.66
7.2.70.0190.00916.67
7.2.60.0110.01116.61
7.2.50.0140.00616.74
7.2.40.0110.01116.75
7.2.30.0090.01416.59
7.2.20.0200.00516.65
7.2.10.0100.01116.63
7.2.00.0090.01117.38
7.1.330.0090.00915.60
7.1.320.0140.00615.70
7.1.310.0110.00915.48
7.1.300.0140.00515.73
7.1.290.0140.00815.57
7.1.280.0130.00815.59
7.1.270.0130.00815.68
7.1.260.0120.00715.61
7.1.250.0120.00715.63
7.1.240.0120.00715.44
7.1.230.0130.00815.56
7.1.220.0120.00715.46
7.1.210.0120.00815.53
7.1.200.0070.01015.52
7.1.190.0120.00915.74
7.1.180.0120.00815.44
7.1.170.0100.01015.59
7.1.160.0100.01215.56
7.1.150.0110.00915.53
7.1.140.0240.00515.68
7.1.130.0120.01015.69
7.1.120.0140.00815.49
7.1.110.0120.00815.70
7.1.100.0390.00815.75
7.1.90.0430.00815.75
7.1.80.0370.00415.63
7.1.70.0360.00715.73
7.1.60.0360.00819.85
7.1.50.0350.00919.33
7.1.40.0470.00819.84
7.1.30.0470.00919.84
7.1.20.0550.00819.79
7.1.10.0510.00615.35
7.1.00.0330.02216.72
7.0.330.0110.00715.27
7.0.320.0110.00815.30
7.0.310.0110.01015.22
7.0.300.0110.00915.16
7.0.290.0130.00915.35
7.0.280.0130.00615.17
7.0.270.0110.00715.25
7.0.260.0160.00515.20
7.0.250.0110.00615.35
7.0.240.0360.01015.30
7.0.230.0400.01215.29
7.0.220.0290.01015.36
7.0.210.0380.00915.20
7.0.200.0280.00715.38
7.0.190.0330.00815.02
7.0.180.0420.00514.97
7.0.170.0490.00514.85
7.0.160.0510.00714.88
7.0.150.0480.00915.11
7.0.140.0320.01916.49
7.0.130.0390.00814.99
7.0.120.0430.00515.11
7.0.110.0430.00814.84
7.0.100.0500.00715.14
7.0.90.0450.00814.88
7.0.80.0510.00815.17
7.0.70.0100.02516.43
7.0.60.0460.02116.34
7.0.50.0510.02216.36
7.0.40.0320.02415.36
7.0.30.0330.02115.23
7.0.20.0390.01815.26
7.0.10.0370.02215.18
7.0.00.0390.02115.28
5.6.400.0180.00814.92
5.6.390.0150.00714.70
5.6.380.0130.01014.79
5.6.370.0120.00914.71
5.6.360.0090.01014.64
5.6.350.0110.00714.68
5.6.340.0100.01014.79
5.6.330.0090.01014.47
5.6.320.0130.00814.61
5.6.310.0100.01014.78
5.6.300.0100.02816.07
5.6.290.0110.02016.22
5.6.280.0130.03117.19
5.6.270.0120.02316.25
5.6.260.0110.02416.12
5.6.250.0120.02416.36
5.6.240.0100.02516.12
5.6.230.0190.02516.16
5.6.220.0120.03517.01
5.6.210.0140.03317.05
5.6.200.0190.03117.07
5.6.190.0120.03517.05
5.6.180.0100.03517.07
5.6.170.0110.03517.12
5.6.160.0120.03317.17
5.6.150.0110.03017.09
5.6.140.0100.03117.08
5.6.130.0100.02517.22
5.6.120.0080.02917.14
5.6.110.0100.02716.92
5.6.100.0130.02117.07
5.6.90.0070.02917.17
5.6.80.0100.02316.77
5.6.70.0090.03016.74
5.6.60.0140.02316.86
5.6.50.0110.02516.89
5.6.40.0120.02116.82
5.6.30.0070.03016.71
5.6.20.0110.02316.85
5.6.10.0130.02416.92
5.6.00.0110.02716.81
5.5.380.0100.03214.55
5.5.370.0140.03314.71
5.5.360.0170.03716.09
5.5.350.0160.03816.05
5.5.340.0150.04016.33
5.5.330.0140.04016.32
5.5.320.0090.04616.19
5.5.310.0190.03716.35
5.5.300.0150.03116.31
5.5.290.0080.03516.30
5.5.280.0100.03216.28
5.5.270.0110.02516.35
5.5.260.0100.02816.35
5.5.250.0060.03116.15
5.5.240.0110.02515.95
5.5.230.0120.03115.91
5.5.220.0080.02915.89
5.5.210.0110.02915.91
5.5.200.0130.02715.99
5.5.190.0120.03015.84
5.5.180.0090.02815.89
5.5.170.0170.00513.34
5.5.160.0140.02716.04
5.5.150.0100.03215.99
5.5.140.0080.03115.93
5.5.130.0090.03016.02
5.5.120.0130.02815.91
5.5.110.0120.02815.86
5.5.100.0110.02915.87
5.5.90.0120.02515.92
5.5.80.0090.02615.91
5.5.70.0110.02615.90
5.5.60.0120.02715.98
5.5.50.0180.02415.87
5.5.40.0130.02815.85
5.5.30.0130.02815.84
5.5.20.0090.02815.98
5.5.10.0140.02915.81
5.5.00.0090.03815.88
5.4.450.0090.03315.39
5.4.440.0140.02515.40
5.4.430.0080.03415.43
5.4.420.0060.03015.43
5.4.410.0080.02615.41
5.4.400.0120.02415.23
5.4.390.0100.02615.26
5.4.380.0080.02615.33
5.4.370.0100.02715.33
5.4.360.0080.03515.28
5.4.350.0100.02315.31
5.4.340.0120.02315.25
5.4.330.0090.00911.42
5.4.320.0080.02615.25
5.4.310.0090.03115.24
5.4.300.0150.02215.22
5.4.290.0120.02615.20
5.4.280.0130.02815.20
5.4.270.0100.02315.28
5.4.260.0140.02615.27
5.4.250.0120.02515.30
5.4.240.0080.02415.25
5.4.230.0070.02815.14
5.4.220.0140.02315.24
5.4.210.0120.02715.27
5.4.200.0070.02515.26
5.4.190.0110.02615.13
5.4.180.0100.02415.20
5.4.170.0050.03215.25
5.4.160.0060.03615.21
5.4.150.0090.03415.17
5.4.140.0100.02313.85
5.4.130.0110.02113.93
5.4.120.0090.03513.95
5.4.110.0110.02913.92
5.4.100.0100.03513.95
5.4.90.0130.03113.88
5.4.80.0120.03214.02
5.4.70.0080.03313.96
5.4.60.0090.03213.97
5.4.50.0130.03313.93
5.4.40.0120.03214.02
5.4.30.0090.03413.89
5.4.20.0100.02813.93
5.4.10.0110.03413.85
5.4.00.0060.03313.64
5.3.290.0090.03013.26
5.3.280.0100.02613.05
5.3.270.0100.02713.14
5.3.260.0160.02913.15
5.3.250.0070.03713.17
5.3.240.0080.02713.13
5.3.230.0090.03513.06
5.3.220.0140.03513.05
5.3.210.0100.02913.01
5.3.200.0120.03212.94
5.3.190.0120.03213.09
5.3.180.0090.02713.15
5.3.170.0100.03313.13
5.3.160.0130.03213.19
5.3.150.0060.03613.15
5.3.140.0100.03613.12
5.3.130.0100.03613.12
5.3.120.0100.03313.13
5.3.110.0090.03912.97
5.3.100.0080.03412.80
5.3.90.0080.02912.87
5.3.80.0070.03612.77
5.3.70.0140.03312.75
5.3.60.0130.02612.81
5.3.50.0140.03312.73
5.3.40.0110.03912.73
5.3.30.0160.03412.72
5.3.20.0070.03912.63
5.3.10.0090.03312.52
5.3.00.0130.03312.44
5.2.170.0100.03111.05
5.2.160.0100.02911.02
5.2.150.0140.03011.04
5.2.140.0090.02910.97
5.2.130.0100.03210.84
5.2.120.0090.03010.92
5.2.110.0070.03010.95
5.2.100.0090.02811.02
5.2.90.0120.02410.84
5.2.80.0110.03010.92
5.2.70.0050.03410.91
5.2.60.0050.03110.87
5.2.50.0100.02810.92
5.2.40.0070.02510.93
5.2.30.0070.03210.87
5.2.20.0090.03210.90
5.2.10.0060.03110.77
5.2.00.0080.03210.71
5.1.60.0050.02510.38
5.1.50.0060.02610.30
5.1.40.0060.02510.34
5.1.30.0070.02810.50
5.1.20.0070.02810.47
5.1.10.0060.02710.35
5.1.00.0080.02810.30
5.0.50.0070.0219.84
5.0.40.0040.0219.78
5.0.30.0070.0289.78
5.0.20.0060.0209.79
5.0.10.0070.0199.76
5.0.00.0050.0319.72
4.4.90.0050.0169.50
4.4.80.0040.0189.50
4.4.70.0050.0179.50
4.4.60.0050.0179.50
4.4.50.0040.0179.50
4.4.40.0030.0259.50
4.4.30.0030.0179.50
4.4.20.0050.0169.50
4.4.10.0070.0159.50
4.4.00.0060.0229.50
4.3.110.0040.0149.50
4.3.100.0020.0159.50
4.3.90.0040.0149.50
4.3.80.0060.0219.50
4.3.70.0040.0179.50
4.3.60.0080.0139.50
4.3.50.0050.0159.50
4.3.40.0040.0229.50
4.3.30.0020.0189.50
4.3.20.0070.0149.50
4.3.10.0050.0189.50
4.3.00.0030.0179.50

preferences:
151.71 ms | 403 KiB | 5 Q