3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['cat' => '14', 'dog' => 14]; 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.4.20.0100.01019.41
8.4.10.0070.00317.45
8.3.140.0040.00416.60
8.3.130.0120.00618.59
8.3.120.0030.00720.34
8.3.110.0060.00316.50
8.3.100.0090.00916.49
8.3.90.0100.01026.77
8.3.80.0030.00618.18
8.3.70.0110.00718.43
8.3.60.0070.01318.13
8.3.50.0070.00817.28
8.3.40.0070.00718.46
8.3.30.0110.00318.59
8.3.20.0040.00418.91
8.3.10.0040.00423.53
8.3.00.0040.00423.34
8.2.260.0060.01216.39
8.2.250.0040.00418.19
8.2.240.0060.01218.98
8.2.230.0050.00520.94
8.2.220.0100.00037.54
8.2.210.0000.00826.77
8.2.200.0100.00016.38
8.2.190.0090.00616.58
8.2.180.0070.00716.35
8.2.170.0150.00622.96
8.2.160.0070.01118.99
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00320.53
8.2.120.0040.00426.35
8.2.110.0030.00722.24
8.2.100.0030.00917.75
8.2.90.0000.00917.90
8.2.80.0040.00417.97
8.2.70.0060.00317.91
8.2.60.0050.00317.93
8.2.50.0030.00518.10
8.2.40.0030.00519.19
8.2.30.0040.00419.16
8.2.20.0030.00717.86
8.2.10.0000.00919.30
8.2.00.0000.00719.37
8.1.310.0110.00716.74
8.1.300.0060.00318.34
8.1.290.0030.00718.88
8.1.280.0160.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0150.00420.87
8.1.230.0080.00420.87
8.1.220.0040.00417.78
8.1.210.0050.00318.82
8.1.200.0040.00417.23
8.1.190.0000.01117.23
8.1.180.0040.00418.10
8.1.170.0000.00718.77
8.1.160.0040.00418.81
8.1.150.0000.00718.81
8.1.140.0070.00019.00
8.1.130.0040.00417.42
8.1.120.0060.00317.40
8.1.110.0070.00317.29
8.1.100.0000.00717.38
8.1.90.0050.00317.39
8.1.80.0080.00017.33
8.1.70.0030.00317.26
8.1.60.0040.00417.50
8.1.50.0000.00817.45
8.1.40.0000.00717.36
8.1.30.0050.00317.64
8.1.20.0080.00017.48
8.1.10.0000.00817.27
8.1.00.0040.00417.34
8.0.300.0090.00019.89
8.0.290.0040.00416.63
8.0.280.0070.00018.38
8.0.270.0000.00717.05
8.0.260.0030.00316.61
8.0.250.0030.00316.81
8.0.240.0000.01116.88
8.0.230.0030.00316.79
8.0.220.0060.00316.83
8.0.210.0070.00016.80
8.0.200.0000.00716.76
8.0.190.0000.00816.93
8.0.180.0070.00016.69
8.0.170.0040.00416.86
8.0.160.0000.00816.85
8.0.150.0070.00416.78
8.0.140.0000.00716.81
8.0.130.0060.00013.28
8.0.120.0000.00716.67
8.0.110.0040.00416.80
8.0.100.0040.00416.59
8.0.90.0030.00716.66
8.0.80.0050.01516.79
8.0.70.0000.00816.71
8.0.60.0000.00716.88
8.0.50.0030.00516.84
8.0.30.0060.01117.03
8.0.20.0100.01517.40
8.0.10.0030.00516.92
8.0.00.0120.01016.72
7.4.330.0040.00015.55
7.4.320.0040.00416.29
7.4.300.0040.00416.40
7.4.290.0070.00416.38
7.4.280.0030.00616.52
7.4.270.0030.00716.34
7.4.260.0000.00716.45
7.4.250.0040.00416.36
7.4.240.0050.00216.43
7.4.230.0070.00016.17
7.4.220.0000.00816.59
7.4.210.0100.00516.45
7.4.200.0000.00716.63
7.4.160.0100.01416.37
7.4.140.0120.00917.86
7.4.130.0140.00416.40
7.4.120.0090.01016.44
7.4.110.0110.00616.47
7.4.100.0110.00616.38
7.4.90.0070.01016.38
7.4.80.0130.00619.39
7.4.70.0110.00716.37
7.4.60.0100.00616.37
7.4.50.0060.00616.32
7.4.40.0100.00716.57
7.4.00.0100.00714.80
7.3.330.0000.00612.88
7.3.320.0030.00313.04
7.3.310.0030.00316.04
7.3.300.0000.00716.07
7.3.290.0030.00316.08
7.3.280.0070.00916.05
7.3.260.0110.00916.20
7.3.240.0140.00516.31
7.3.230.0130.00916.18
7.3.210.0120.01216.17
7.3.200.0160.00916.12
7.3.190.0140.00516.12
7.3.180.0100.00716.16
7.3.170.0060.01016.42
7.3.160.0090.01216.43
7.3.120.0070.00914.66
7.3.110.0050.01214.79
7.3.100.0090.00714.80
7.3.90.0060.01114.62
7.3.80.0020.01214.64
7.3.70.0050.00714.60
7.3.60.0030.00914.66
7.3.50.0070.00514.64
7.3.40.0060.00614.48
7.3.30.0010.01014.50
7.3.20.0040.00916.47
7.3.10.0040.00816.57
7.3.00.0060.00716.47
7.2.330.0030.01316.15
7.2.320.0000.01716.58
7.2.310.0070.01316.55
7.2.300.0060.01616.43
7.2.290.0000.02316.59
7.2.250.0100.00914.81
7.2.240.0120.00814.86
7.2.230.0030.01314.80
7.2.220.0030.00714.63
7.2.210.0080.00814.88
7.2.200.0060.00514.78
7.2.190.0040.00914.75
7.2.180.0060.00514.84
7.2.170.0050.01014.77
7.2.160.0030.01314.81
7.2.150.0000.01316.70
7.2.140.0030.01016.42
7.2.130.0060.00616.38
7.2.120.0110.00316.73
7.2.110.0130.00616.90
7.2.100.0030.01016.83
7.2.90.0030.01216.62
7.2.80.0570.00915.65
7.2.70.0540.01315.71
7.2.60.0440.00715.39
7.2.50.0490.00715.65
7.2.40.0680.00515.76
7.2.30.0560.00815.56
7.2.20.0650.00815.60
7.2.10.0420.01015.74
7.2.00.0630.00815.69
7.1.330.0080.00715.72
7.1.320.0070.00415.68
7.1.310.0050.00715.75
7.1.300.0030.00915.59
7.1.290.0020.01015.67
7.1.280.0070.00415.75
7.1.270.0030.01215.61
7.1.260.0030.00815.63
7.1.250.0070.00415.70
7.1.240.0140.00315.88
7.1.230.0070.00715.80
7.1.220.0000.00915.75
7.1.210.0070.01015.71
7.1.200.0040.00615.71
7.1.190.0530.00714.61
7.1.180.0630.00614.66
7.1.170.0680.01114.50
7.1.160.0570.00914.66
7.1.150.0500.01114.72
7.1.140.0610.00714.70
7.1.130.0660.00714.64
7.1.120.0490.00714.47
7.1.110.0640.01414.70
7.1.100.0860.00914.75
7.1.90.0740.01214.70
7.1.80.0680.01114.86
7.1.70.1150.01114.82
7.1.60.0190.00923.76
7.1.50.1210.01323.55
7.1.40.1310.01023.71
7.1.30.0490.00823.74
7.1.20.0650.01023.64
7.1.10.1350.00714.39
7.1.00.0790.00714.64
7.0.330.0100.00315.30
7.0.320.0090.00315.30
7.0.310.0030.00615.36
7.0.300.0070.00315.21
7.0.290.0000.01215.27
7.0.280.0090.00315.38
7.0.270.0130.00014.94
7.0.260.0040.01115.38
7.0.250.0070.00715.23
7.0.240.0070.00315.61
7.0.230.0000.01415.12
7.0.220.0030.00915.38
7.0.210.0060.00315.22
7.0.200.0060.00815.25
7.0.190.0000.01015.02
7.0.180.0060.00915.35
7.0.170.0070.00715.09
7.0.160.0060.00615.39
7.0.150.0000.01115.11
7.0.140.0100.00615.37
7.0.130.0060.00315.54
7.0.120.0000.01315.23
7.0.110.0000.01115.41
7.0.100.0090.00315.29
7.0.90.0060.01015.47
7.0.80.0000.00815.44
7.0.70.0040.00415.08
7.0.60.0030.00615.30
7.0.50.0060.00615.47
7.0.40.0100.00013.43
7.0.30.0040.01113.45
7.0.20.0030.01013.45
7.0.10.0040.00713.58
7.0.00.0070.00313.45
5.6.400.0100.00314.25
5.6.390.0060.00614.13
5.6.380.0000.00814.16
5.6.370.0030.00714.22
5.6.360.0000.01314.44
5.6.350.0060.00914.42
5.6.340.0110.00414.18
5.6.330.0030.01314.14
5.6.320.0070.01014.29
5.6.310.0040.00813.88
5.6.300.0100.00314.46
5.6.290.0040.00814.19
5.6.280.0030.00914.26
5.6.270.0000.01013.99
5.6.260.0000.00814.02
5.6.250.0000.01114.13
5.6.240.0040.01214.06
5.6.230.0070.00314.16
5.6.220.0060.00613.98
5.6.210.0040.00714.03
5.6.200.0060.00914.30
5.6.190.0120.00314.35
5.6.180.0030.00614.33
5.6.170.0000.00914.04
5.6.160.0050.00514.16
5.6.150.0060.01213.88
5.6.140.0080.00814.23
5.6.130.0070.01014.41
5.6.120.0060.00314.45
5.6.110.0000.00914.22
5.6.100.0080.00413.99
5.6.90.0100.00314.30
5.6.80.0030.00613.99
5.6.70.0000.01014.27
5.6.60.0040.00814.39
5.6.50.0030.00914.04
5.6.40.0030.01014.20
5.6.30.0040.00814.27
5.6.20.0000.01214.24
5.6.10.0060.00614.39
5.6.00.0030.01013.99

preferences:
36.8 ms | 403 KiB | 5 Q