3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode('{"address": {"address": null, "postalCode": null, "phoneNumber": "", "city": null}}')); var_dump(array_filter(json_decode('{"address": {"address": null, "postalCode": null, "phoneNumber": "", "city": null}}')));

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.0000.01518.30
8.3.50.0090.00921.98
8.3.40.0150.00618.67
8.3.30.0120.00318.96
8.3.20.0070.00020.04
8.3.10.0050.00320.33
8.3.00.0040.00419.25
8.2.180.0040.01116.88
8.2.170.0100.00722.96
8.2.160.0070.00719.08
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0040.00421.91
8.2.110.0050.00520.32
8.2.100.0110.00017.91
8.2.90.0080.00018.09
8.2.80.0090.00017.97
8.2.70.0030.00617.63
8.2.60.0030.00917.66
8.2.50.0050.00318.07
8.2.40.0040.00419.76
8.2.30.0040.00417.99
8.2.20.0000.00817.73
8.2.10.0070.00017.87
8.2.00.0030.00617.66
8.1.280.0070.01125.92
8.1.270.0120.00322.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.02
8.1.230.0070.00420.83
8.1.220.0030.00617.74
8.1.210.0040.00418.94
8.1.200.0030.00617.10
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0120.00318.53
8.1.160.0030.00321.84
8.1.150.0040.00418.65
8.1.140.0000.00817.23
8.1.130.0000.00717.74
8.1.120.0030.00417.30
8.1.110.0050.00317.21
8.1.100.0040.00417.38
8.1.90.0040.00417.22
8.1.80.0070.00017.31
8.1.70.0030.00317.16
8.1.60.0000.00917.45
8.1.50.0070.00017.46
8.1.40.0050.00217.42
8.1.30.0030.00617.45
8.1.20.0040.00417.58
8.1.10.0040.00417.36
8.1.00.0040.00417.32
8.0.300.0040.00420.07
8.0.290.0060.00316.75
8.0.280.0040.00418.36
8.0.270.0040.00417.24
8.0.260.0060.00017.04
8.0.250.0030.00316.80
8.0.240.0060.00016.89
8.0.230.0050.00216.93
8.0.220.0080.00016.79
8.0.210.0040.00416.75
8.0.200.0050.00216.80
8.0.190.0050.00316.98
8.0.180.0030.00516.94
8.0.170.0040.00416.79
8.0.160.0000.00716.77
8.0.150.0030.00316.75
8.0.140.0040.00416.83
8.0.130.0000.00713.23
8.0.120.0070.00016.80
8.0.110.0040.00416.84
8.0.100.0000.00816.70
8.0.90.0040.00416.86
8.0.80.0060.01616.82
8.0.70.0040.00416.75
8.0.60.0000.00716.78
8.0.50.0070.00016.88
8.0.30.0060.01417.04
8.0.20.0030.01617.40
8.0.10.0000.00716.92
8.0.00.0100.00816.86
7.4.330.0000.00515.00
7.4.320.0050.00216.46
7.4.300.0040.00416.27
7.4.290.0030.00316.37
7.4.280.0040.00416.27
7.4.270.0050.00216.50
7.4.260.0030.00316.38
7.4.250.0030.00516.39
7.4.240.0000.00716.37
7.4.230.0040.00416.40
7.4.220.0090.01616.30
7.4.210.0100.01016.40
7.4.200.0000.00716.20
7.4.160.0170.00316.38
7.4.150.0160.01017.40
7.4.140.0110.00617.86
7.4.130.0140.00516.39
7.4.120.0070.01016.35
7.4.110.0030.01416.31
7.4.100.0170.00316.36
7.4.90.0080.01116.48
7.4.80.0060.01419.39
7.4.70.0100.00616.26
7.4.60.0100.00716.13
7.4.50.0040.00416.32
7.4.40.0110.00616.25
7.4.30.0090.01316.34
7.4.00.0050.00914.76
7.3.330.0030.00313.17
7.3.320.0000.00512.94
7.3.310.0000.00616.04
7.3.300.0070.00016.18
7.3.290.0130.00016.09
7.3.280.0060.01416.17
7.3.270.0120.00617.40
7.3.260.0150.00816.35
7.3.250.0110.00616.20
7.3.240.0150.00416.13
7.3.230.0080.01216.39
7.3.210.0130.00416.19
7.3.200.0100.00719.39
7.3.190.0060.01016.13
7.3.180.0080.01216.21
7.3.170.0090.00916.28
7.3.160.0060.01116.36
7.3.120.0040.01214.71
7.3.110.0030.01314.93
7.3.100.0060.01114.51
7.3.90.0060.01014.67
7.3.80.0090.00914.59
7.3.70.0060.00314.61
7.3.60.0000.01314.57
7.3.50.0040.00814.69
7.3.40.0030.00714.39
7.3.30.0040.00814.80
7.3.20.0130.00316.50
7.3.10.0070.00716.58
7.3.00.0040.00416.38
7.2.330.0120.00616.48
7.2.320.0130.00716.31
7.2.310.0040.01816.44
7.2.300.0060.01216.54
7.2.290.0100.01016.33
7.2.250.0070.01114.96
7.2.240.0080.01214.74
7.2.230.0110.00714.73
7.2.220.0070.01014.77
7.2.210.0070.01014.99
7.2.200.0060.00614.88
7.2.190.0080.00414.86
7.2.180.0100.00314.77
7.2.170.0040.01114.59
7.2.60.0090.00515.88
7.2.00.0080.00819.25
7.1.330.0040.00915.70
7.1.320.0080.00415.75
7.1.310.0000.01715.57
7.1.300.0060.00615.54
7.1.290.0000.00815.38
7.1.280.0040.01115.75
7.1.270.0030.01015.43
7.1.260.0070.00715.47
7.1.200.0040.00815.54
7.1.100.0110.00018.09
7.1.70.0040.00416.97
7.1.60.0070.01419.32
7.1.50.0120.01216.54
7.1.00.0030.07722.45
7.0.200.0060.00316.69
7.0.140.0100.06722.19
7.0.70.5100.03719.92
7.0.60.0070.08319.78
7.0.50.0030.05717.79
7.0.40.0130.07720.06
7.0.30.0230.06020.17
7.0.20.0100.04720.12
7.0.10.0330.05720.04
7.0.00.0000.06320.33
5.6.280.0030.07320.91
5.6.210.0230.07720.63
5.6.200.0170.04318.08
5.6.190.0100.03720.60
5.6.180.0170.08320.55
5.6.170.0270.06720.41
5.6.160.0200.04320.54
5.6.150.0130.04018.22
5.6.140.0070.08318.15
5.6.130.0030.08718.26
5.6.120.0030.04320.96
5.6.110.0070.09020.95
5.6.100.0100.04021.00
5.6.90.0130.07020.96
5.6.80.0030.05720.27
5.6.70.0330.07720.51
5.5.350.0100.04320.40
5.5.340.0030.04017.91
5.5.330.0230.06720.09
5.5.320.0070.05720.21
5.5.310.0370.07320.38
5.5.300.0070.04017.88
5.5.290.0130.08017.94
5.5.280.0030.05320.72
5.5.270.0130.03320.86
5.5.260.0100.08020.87
5.5.250.0100.08020.67
5.5.240.0100.06720.16
5.4.450.0830.03719.15
5.4.440.1100.06719.60
5.4.430.0800.05719.57
5.4.420.0670.00019.53
5.4.410.0670.00019.34
5.4.400.0600.00019.11
5.4.390.0600.00019.26
5.4.380.0630.00018.92
5.4.370.0630.00018.94
5.4.360.0600.00019.18
5.4.350.0630.00019.09
5.4.340.0670.00019.04
5.4.320.0090.03412.45
5.4.310.0100.03412.45
5.4.300.0070.03512.46
5.4.290.0100.03612.45
5.4.280.0060.04512.35
5.4.270.0060.04012.35
5.4.260.0060.03812.35
5.4.250.0050.04612.35
5.4.240.0050.03612.35
5.4.230.0100.03512.34
5.4.220.0070.03412.34
5.4.210.0070.03312.34
5.4.200.0090.04112.34
5.4.190.0040.03712.34
5.4.180.0110.03112.33
5.4.170.0090.03312.35
5.4.160.0160.02712.35
5.4.150.0080.03412.34
5.4.140.0100.03312.03
5.4.130.0080.03712.01
5.4.120.0090.03211.97
5.4.110.0070.03711.97
5.4.100.0100.03211.97
5.4.90.0070.04311.97
5.4.80.0110.03211.96
5.4.70.0050.03511.96
5.4.60.0050.03411.96
5.4.50.0030.04411.96
5.4.40.0090.03111.95
5.4.30.0090.04011.95
5.4.20.0120.02911.95
5.4.10.0070.03511.95
5.4.00.0080.03411.45
5.3.290.0090.03612.80
5.3.280.0090.03412.71
5.3.270.0080.03912.72
5.3.260.0090.04112.72
5.3.250.0090.03512.72
5.3.240.0100.03512.72
5.3.230.0060.03712.71
5.3.220.0050.03712.68
5.3.210.0100.03712.68
5.3.200.0120.03112.68
5.3.190.0090.03412.68
5.3.180.0100.03212.67
5.3.170.0090.03212.67
5.3.160.0070.03612.67
5.3.150.0110.03612.68
5.3.140.0100.03612.66
5.3.130.0090.03512.66
5.3.120.0070.03812.66
5.3.110.0070.03712.66
5.3.100.0050.03712.12
5.3.90.0140.02912.08
5.3.80.0080.03512.07
5.3.70.0080.03412.07
5.3.60.0050.03912.06
5.3.50.0050.03612.00
5.3.40.0100.03212.00
5.3.30.0100.03011.95
5.3.20.0080.03311.73
5.3.10.0100.03011.69
5.3.00.0070.03411.68
5.2.170.0070.0299.18
5.2.160.0110.0239.18
5.2.150.0070.0299.18
5.2.140.0070.0299.18
5.2.130.0040.0309.13
5.2.120.0050.0289.13
5.2.110.0080.0279.14
5.2.100.0060.0359.14
5.2.90.0090.0289.14
5.2.80.0070.0279.13
5.2.70.0040.0399.14
5.2.60.0040.0299.09
5.2.50.0030.0309.05
5.2.40.0080.0249.03
5.2.30.0060.0299.01
5.2.20.0050.0349.00
5.2.10.0070.0268.92
5.2.00.0060.0278.78
5.1.60.0050.0238.06
5.1.50.0070.0238.06
5.1.40.0070.0218.04
5.1.30.0030.0288.39
5.1.20.0060.0258.41
5.1.10.0060.0238.14
5.1.00.0080.0218.14
5.0.50.0060.0226.62
5.0.40.0020.0206.47
5.0.30.0070.0286.28
5.0.20.0060.0186.26
5.0.10.0070.0176.24
5.0.00.0070.0276.23
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0080.0134.75
4.4.60.0030.0154.75
4.4.50.0060.0184.77
4.4.40.0020.0294.71
4.4.30.0030.0144.76
4.4.20.0030.0144.84
4.4.10.0010.0164.85
4.4.00.0120.0234.76
4.3.110.0050.0154.66
4.3.100.0020.0194.67
4.3.90.0030.0144.63
4.3.80.0020.0254.59
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0070.0114.63
4.3.40.0050.0214.54
4.3.30.0030.0153.28
4.3.20.0020.0153.26
4.3.10.0040.0133.22
4.3.00.0000.01716.51

preferences:
42.79 ms | 401 KiB | 5 Q