3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["a"=>[],"b"=>(object)[]]; var_dump(json_encode($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.130.0040.00418.35
8.3.120.0060.00320.80
8.3.110.0050.00316.66
8.3.100.0050.00516.77
8.3.90.0090.00626.77
8.3.80.0060.00317.97
8.3.70.0090.00618.18
8.3.60.0090.00616.75
8.3.50.0130.00416.51
8.3.40.0120.00918.71
8.3.30.0110.00418.68
8.3.20.0090.00921.79
8.3.10.0150.00421.74
8.3.00.0100.00721.80
8.2.250.0070.01016.86
8.2.240.0060.00319.16
8.2.230.0090.00020.94
8.2.220.0090.00024.06
8.2.210.0080.00026.77
8.2.200.0030.00618.54
8.2.190.0100.01016.58
8.2.180.0110.00418.29
8.2.170.0090.00922.96
8.2.160.0100.00319.47
8.2.150.0140.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00021.08
8.2.120.0080.00026.35
8.2.110.0050.00520.40
8.2.100.0080.00317.78
8.2.90.0040.00419.01
8.2.80.0000.00917.97
8.2.70.0000.00817.79
8.2.60.0000.00817.68
8.2.50.0040.00418.22
8.2.40.0000.00720.59
8.2.30.0000.00719.29
8.2.20.0040.00418.03
8.2.10.0000.00718.09
8.2.00.0070.00018.09
8.1.300.0090.00018.56
8.1.290.0040.00830.84
8.1.280.0030.01725.92
8.1.270.0040.00423.84
8.1.260.0090.00926.35
8.1.250.0050.00328.09
8.1.240.0060.00323.78
8.1.230.0040.00722.11
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.36
8.1.190.0040.00417.23
8.1.180.0070.00018.10
8.1.170.0000.00718.72
8.1.160.0020.00518.78
8.1.150.0030.00318.97
8.1.140.0000.00717.66
8.1.130.0080.00320.28
8.1.120.0000.00717.41
8.1.110.0040.00417.27
8.1.100.0040.00417.41
8.1.90.0070.00317.39
8.1.80.0000.00817.24
8.1.70.0050.00317.27
8.1.60.0030.00617.40
8.1.50.0030.00517.46
8.1.40.0060.00317.41
8.1.30.0040.00417.50
8.1.20.0000.00817.54
8.1.10.0030.00717.45
8.1.00.0080.00017.41
8.0.300.0000.00718.77
8.0.290.0090.00316.63
8.0.280.0030.00318.36
8.0.270.0030.00317.18
8.0.260.0060.00018.29
8.0.250.0000.00816.88
8.0.240.0070.00016.91
8.0.230.0030.00316.92
8.0.220.0000.00716.84
8.0.210.0070.00316.94
8.0.200.0040.00416.83
8.0.190.0000.00816.93
8.0.180.0050.00316.89
8.0.170.0050.00316.90
8.0.160.0030.00316.95
8.0.150.0060.00316.87
8.0.140.0000.00716.83
8.0.130.0000.00513.25
8.0.120.0040.00416.84
8.0.110.0000.00716.77
8.0.100.0040.00416.67
8.0.90.0040.00416.78
8.0.80.0100.01016.86
8.0.70.0050.00216.66
8.0.60.0000.00716.88
8.0.50.0030.00516.73
8.0.30.0070.01116.98
8.0.20.0140.00417.40
8.0.10.0050.00216.80
8.0.00.0080.00916.63
7.4.330.0000.00615.55
7.4.320.0000.00616.43
7.4.300.0060.00016.43
7.4.290.0030.00316.42
7.4.280.0050.00516.45
7.4.270.0000.01016.40
7.4.260.0000.00716.52
7.4.250.0000.00816.53
7.4.240.0030.00316.51
7.4.230.0040.00416.63
7.4.220.0030.00516.41
7.4.210.0110.00316.52
7.4.200.0040.00416.40
7.4.160.0120.00516.43
7.4.140.0100.01217.86
7.4.130.0140.00316.48
7.4.120.0110.00816.45
7.4.110.0080.00816.40
7.4.100.0090.01316.53
7.4.90.0070.01016.44
7.4.80.0100.01219.39
7.4.70.0160.00716.31
7.4.60.0100.00616.60
7.4.50.0050.00916.32
7.4.40.0110.01116.44
7.4.10.0030.01415.00
7.4.00.0100.00714.80
7.3.330.0030.00313.00
7.3.320.0000.00513.18
7.3.310.0080.00016.26
7.3.300.0000.00716.29
7.3.290.0030.00316.16
7.3.280.0090.01016.20
7.3.260.0100.00716.37
7.3.240.0110.00616.19
7.3.230.0030.01316.29
7.3.210.0110.00516.24
7.3.200.0080.01516.53
7.3.190.0060.00916.38
7.3.180.0090.00916.43
7.3.170.0080.01116.48
7.3.160.0110.00616.49
7.3.130.0060.01215.03
7.3.120.0040.01514.88
7.3.110.0060.01014.90
7.3.100.0060.01014.75
7.3.90.0070.01014.91
7.3.80.0080.00015.01
7.3.70.0040.01114.82
7.3.60.0080.00614.84
7.3.50.0000.01514.64
7.3.40.0050.00514.82
7.3.30.0060.00914.61
7.3.20.0070.00716.73
7.3.10.0090.00016.54
7.3.00.0070.00716.74
7.2.330.0090.00916.57
7.2.320.0170.02016.42
7.2.310.0140.00516.65
7.2.300.0150.00316.45
7.2.290.0070.00416.59
7.2.260.0060.01214.82
7.2.250.0060.01215.13
7.2.240.0000.01415.05
7.2.230.0040.01114.90
7.2.220.0040.00714.69
7.2.210.0080.00414.76
7.2.200.0070.01114.78
7.2.190.0070.00714.96
7.2.180.0030.01315.13
7.2.170.0060.00914.98
7.2.160.0030.01014.96
7.2.150.0070.01016.72
7.2.140.0070.00716.63
7.2.130.0080.00016.80
7.2.120.0070.00316.49
7.2.110.0030.00916.66
7.2.100.0060.00916.90
7.2.90.0030.00616.98
7.2.80.0120.00316.94
7.2.70.0030.01316.89
7.2.60.0060.00616.68
7.2.50.0050.00816.92
7.2.40.0300.01217.47
7.2.30.0380.01417.22
7.2.20.0160.01017.32
7.2.10.0230.01117.46
7.2.00.0330.01017.29
7.1.330.0100.00315.74
7.1.320.0060.01015.81
7.1.310.0070.00715.70
7.1.300.0100.00715.75
7.1.290.0100.00615.35
7.1.280.0030.01015.82
7.1.270.0030.01115.72
7.1.260.0000.01315.64
7.1.250.0120.00415.89
7.1.240.0000.01215.76
7.1.230.0030.00915.57
7.1.220.0080.00815.74
7.1.210.0090.00315.67
7.1.200.0050.00715.74
7.1.190.0000.01215.88
7.1.180.0030.00615.68
7.1.170.0000.01315.87
7.1.160.0240.01016.07
7.1.150.0190.01216.25
7.1.140.0250.01016.38
7.1.130.0300.01016.42
7.1.120.0250.00616.34
7.1.110.0280.01016.00
7.1.100.0280.00515.84
7.1.90.0250.00915.65
7.1.80.0230.01115.71
7.1.70.0210.00815.04
7.1.60.0620.01427.27
7.1.50.0300.01026.98
7.1.40.0360.00926.89
7.1.30.0300.01326.87
7.1.20.0320.01226.97
7.1.10.0230.00914.94
7.1.00.0250.00914.97
7.0.330.0030.01015.35
7.0.320.0000.01315.33
7.0.310.0030.01015.11
7.0.300.0080.00315.08
7.0.290.0030.00715.35
7.0.280.0030.01015.30
7.0.270.0040.00415.38
7.0.260.0090.00615.27
7.0.250.0100.00015.60
7.0.240.0030.00615.43
7.0.230.0080.00315.27
7.0.220.0000.00815.35
7.0.210.0040.00715.39
7.0.200.0060.00615.42
7.0.190.0090.00015.42
7.0.180.0060.00615.45
7.0.170.0060.01015.50
7.0.160.0060.00915.31
7.0.150.0070.00415.39
7.0.140.0060.00315.50
7.0.130.0000.01115.12
7.0.120.0050.00515.09
7.0.110.0060.00615.29
7.0.100.0030.00715.48
7.0.90.0030.00715.46
7.0.80.0050.00315.44
7.0.70.0040.00415.29
7.0.60.0000.01015.51
7.0.50.0060.00315.31
7.0.40.0140.00313.48
7.0.30.0070.01313.50
7.0.20.0070.00713.50
7.0.10.0030.00613.46
7.0.00.0060.00313.45
5.6.400.0000.01314.19
5.6.390.0080.00014.17
5.6.380.0130.00014.10
5.6.370.0030.01014.50
5.6.360.0000.00814.19
5.6.350.0050.00514.21
5.6.340.0030.00613.92
5.6.330.0070.00714.37
5.6.320.0060.00314.32
5.6.310.0060.00614.61
5.6.300.0030.00614.34
5.6.290.0090.00314.38
5.6.280.0060.00913.89
5.6.270.0040.00814.17
5.6.260.0030.00614.26
5.6.250.0080.00814.38
5.6.240.0030.00714.15
5.6.230.0000.01414.21
5.6.220.0080.00414.14
5.6.210.0110.00314.18
5.6.200.0030.00914.18
5.6.190.0090.00314.00
5.6.180.0060.01514.57
5.6.170.0060.01014.13
5.6.160.0050.00514.18
5.6.150.0000.01114.13
5.6.140.0070.00414.49
5.6.130.0090.00314.08
5.6.120.0000.01314.51
5.6.110.0060.00314.48
5.6.100.0000.01214.25
5.6.90.0110.00414.29
5.6.80.0040.01114.32
5.6.70.0060.01014.21
5.6.60.0040.00414.02
5.6.50.0100.00014.50
5.6.40.0040.00814.39
5.6.30.0000.01214.20
5.6.20.0000.01214.21
5.6.10.0000.01414.31
5.6.00.0060.00314.13

preferences:
29.2 ms | 403 KiB | 5 Q