3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(); $data['name'] = nico; json_encode($data);

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.0160.00618.68
8.3.50.0230.01121.92
8.3.40.0100.01018.97
8.3.30.0100.00319.04
8.3.20.0030.00620.34
8.3.10.0080.00023.70
8.3.00.0040.00419.17
8.2.180.0090.00616.75
8.2.170.0060.01022.96
8.2.160.0070.00722.25
8.2.150.0000.01024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00020.94
8.2.110.0040.00419.48
8.1.280.0070.00725.92
8.1.270.0040.00423.96
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00418.89
7.4.10.0050.01215.62
7.4.00.0060.01115.47
7.3.130.0120.00515.58
7.3.120.0120.00715.37
7.3.110.0090.00815.50
7.3.100.0070.01115.73
7.3.90.0100.00715.61
7.3.80.0080.01015.69
7.3.70.0060.01215.55
7.3.60.0040.01415.54
7.3.50.0110.00615.50
7.3.40.0050.01415.53
7.3.30.0060.00815.46
7.3.20.0060.00817.41
7.3.10.0050.00917.02
7.3.00.0060.01017.21
7.2.260.0130.00815.82
7.2.250.0080.01315.78
7.2.240.0000.01715.74
7.2.230.0080.01315.67
7.2.220.0110.00715.85
7.2.210.0020.01815.45
7.2.200.0070.01315.68
7.2.190.0080.00815.59
7.2.180.0080.01015.69
7.2.170.0080.01015.53
7.2.160.0020.01315.74
7.2.150.0060.00817.57
7.2.140.0070.00817.60
7.2.130.0080.00917.25
7.2.120.0060.00917.24
7.2.110.0090.00817.12
7.2.100.0080.00917.21
7.2.90.0090.00717.26
7.2.80.0080.00717.22
7.2.70.0070.00817.19
7.2.60.0060.01117.06
7.2.50.0110.00615.59
7.2.40.0090.00615.37
7.2.30.0060.00917.11
7.2.20.0100.00817.08
7.2.10.0070.01217.34
7.2.00.0040.01217.82
7.1.330.0080.00816.37
7.1.320.0130.00816.54
7.1.310.0090.00816.42
7.1.300.0060.00814.20
7.1.290.0090.01016.39
7.1.280.0070.00816.43
7.1.270.0070.01016.49
7.1.260.0050.01016.37
7.1.250.0050.01016.13
7.1.240.0080.00816.38
7.1.230.0090.00916.48
7.1.220.0040.01316.47
7.1.210.0060.01116.37
7.1.200.0070.00715.95
7.1.190.0080.01016.33
7.1.180.0060.01116.42
7.1.170.0070.00716.43
7.1.160.0110.00616.39
7.1.150.0080.00716.41
7.1.140.0110.00816.40
7.1.130.0110.00616.45
7.1.120.0080.00916.40
7.1.110.0100.01016.52
7.1.100.0160.00516.48
7.1.90.0140.01016.28
7.1.80.0100.00916.54
7.1.70.0110.00615.32
7.1.60.0150.00516.61
7.1.50.0120.00815.17
7.1.40.0120.00916.56
7.1.30.0120.00816.40
7.1.20.0090.00714.17
7.1.10.0150.00916.65
7.1.00.0100.02918.42
7.0.330.0060.01016.00
7.0.320.0070.00916.28
7.0.310.0020.01516.00
7.0.300.0130.00214.10
7.0.290.0090.01115.97
7.0.280.0130.00616.09
7.0.270.0050.00916.13
7.0.260.0130.00716.28
7.0.250.0090.00916.20
7.0.240.0100.01316.18
7.0.230.0090.01116.17
7.0.220.0120.00516.11
7.0.210.0110.00716.20
7.0.200.0060.01316.42
7.0.190.0140.00716.13
7.0.180.0130.00816.28
7.0.170.0100.00816.24
7.0.160.0070.01516.18
7.0.150.0060.01316.21
7.0.140.0110.02718.22
7.0.130.0100.00716.23
7.0.120.0070.00716.13
7.0.110.0060.00616.05
7.0.100.0080.00916.17
7.0.90.0080.03017.39
7.0.80.0080.03217.49
7.0.70.0100.03217.49
7.0.60.0100.03017.37
7.0.50.0070.02917.62
7.0.40.0040.02516.19
7.0.30.0060.02116.02
7.0.20.0060.02316.13
7.0.10.0060.02016.19
7.0.00.0050.02016.17
5.6.400.0070.00914.93
5.6.390.0080.00715.42
5.6.380.0050.00815.17
5.6.370.0080.00715.16
5.6.360.0080.00915.03
5.6.350.0100.01014.96
5.6.340.0090.01115.10
5.6.330.0070.01115.15
5.6.320.0110.00715.06
5.6.310.0080.00813.62
5.6.300.0100.00815.20
5.6.290.0090.01015.39
5.6.280.0050.03217.03
5.6.270.0070.00915.17
5.6.260.0050.00914.86
5.6.250.0110.00615.12
5.6.240.0050.02516.85
5.6.230.0080.03216.98
5.6.220.0070.03316.85
5.6.210.0100.02216.90
5.6.200.0070.03517.02
5.6.190.0100.03317.10
5.6.180.0050.02317.02
5.6.170.0070.02117.10
5.6.160.0050.02017.00
5.6.150.0080.02817.07
5.6.140.0050.02317.00
5.6.130.0060.02316.94
5.6.120.0080.02717.08
5.6.110.0040.02116.96
5.6.100.0070.03417.04
5.6.90.0110.02717.15
5.6.80.0080.03016.87
5.6.70.0070.02216.78
5.6.60.0020.02316.69
5.6.50.0060.02316.77
5.6.40.0060.01716.78
5.6.30.0070.01816.86
5.6.20.0030.02516.72
5.6.10.0070.02016.81
5.6.00.0050.03116.86
5.5.380.0150.02616.76
5.5.370.0130.03016.83
5.5.360.0120.02316.78
5.5.350.0120.02916.83
5.5.340.0100.03516.84
5.5.330.0090.03016.95
5.5.320.0060.02817.10
5.5.310.0090.02317.07
5.5.300.0070.02617.03
5.5.290.0060.02216.99
5.5.280.0090.02316.96
5.5.270.0050.02216.98
5.5.260.0120.03317.07
5.5.250.0100.02016.86
5.5.240.0090.02216.63
5.5.230.0110.02116.77
5.5.220.0080.02016.81
5.5.210.0070.02016.66
5.5.200.0080.02116.66
5.5.190.0080.02016.70
5.5.180.0060.02216.67
5.5.170.0060.01714.93
5.5.160.0080.02216.66
5.5.150.0100.01916.77
5.5.140.0100.01816.74
5.5.130.0090.02516.74
5.5.120.0080.01916.72
5.5.110.0100.01816.72
5.5.100.0060.02016.64
5.5.90.0090.01716.73
5.5.80.0100.03216.70
5.5.70.0060.02416.56
5.5.60.0090.02716.52
5.5.50.0070.01916.69
5.5.40.0080.02016.67
5.5.30.0100.03216.73
5.5.20.0110.03016.68
5.5.10.0170.02516.73
5.5.00.0090.03116.73
5.4.450.0060.01814.44
5.4.440.0050.02014.35
5.4.430.0080.01714.32
5.4.420.0080.02414.38
5.4.410.0100.02514.25
5.4.400.0070.02414.23
5.4.390.0090.01514.25
5.4.380.0090.02214.33
5.4.370.0060.01914.14
5.4.360.0060.01814.16
5.4.350.0090.02014.25
5.4.340.0060.02514.16
5.4.330.0050.01011.89
5.4.320.0080.02114.16
5.4.310.0060.02014.23
5.4.300.0080.02714.25
5.4.290.0100.01814.20
5.4.280.0060.01914.21
5.4.270.0070.01514.17
5.4.260.0100.01314.28
5.4.250.0050.02614.29
5.4.240.0050.02014.23
5.4.230.0070.01614.24
5.4.220.0050.02614.24
5.4.210.0060.02414.23
5.4.200.0060.02014.20
5.4.190.0080.01814.25
5.4.180.0080.02214.22
5.4.170.0110.02714.24
5.4.160.0070.02414.28
5.4.150.0080.02114.24
5.4.140.0090.02513.32
5.4.130.0090.02813.27
5.4.120.0080.02713.34
5.4.110.0070.03013.21
5.4.100.0070.01913.32
5.4.90.0060.02813.24
5.4.80.0090.02313.19
5.4.70.0120.02413.36
5.4.60.0120.01913.28
5.4.50.0130.02013.25
5.4.40.0060.02713.27
5.4.30.0070.02713.32
5.4.20.0060.02813.31
5.4.10.0070.01713.33
5.4.00.0080.02513.15
5.3.290.0030.02212.70
5.3.280.0110.01512.66
5.3.270.0100.02912.68
5.3.260.0050.03512.77
5.3.250.0040.03112.74
5.3.240.0080.02512.53
5.3.230.0080.02912.62
5.3.220.0070.02412.71
5.3.210.0090.02812.60
5.3.200.0080.02312.69
5.3.190.0110.02312.67
5.3.180.0030.03312.68
5.3.170.0040.03312.75
5.3.160.0080.02712.64
5.3.150.0080.03012.76
5.3.140.0060.03012.78
5.3.130.0060.03212.70
5.3.120.0060.02112.62
5.3.110.0070.02012.68
5.3.100.0150.02112.49
5.3.90.0070.02612.36
5.3.80.0090.02612.37
5.3.70.0110.02612.35
5.3.60.0070.02512.31
5.3.50.0070.02412.39
5.3.40.0080.02812.34
5.3.30.0090.02612.26
5.3.20.0080.02512.27
5.3.10.0060.02312.12
5.3.00.0050.02012.05
5.2.170.0070.06011.21
5.2.160.0070.05711.12
5.2.150.0030.06311.10
5.2.140.0030.05011.18
5.2.130.0030.04311.08
5.2.120.0070.05011.16
5.2.110.0070.04311.04
5.2.100.0100.05310.89
5.2.90.0030.05711.10
5.2.80.0030.06311.05
5.2.70.0070.06011.11
5.2.60.0030.06311.08
5.2.50.0100.03310.86
5.2.40.0170.04710.80
5.2.30.0030.03310.96
5.2.20.0070.05711.01
5.2.10.0000.05010.91
5.2.00.0100.04710.71
5.1.60.0000.03710.05
5.1.50.0070.05010.01
5.1.40.0000.0539.96
5.1.30.0000.05710.19
5.1.20.0100.03310.34
5.1.10.0070.03710.14
5.1.00.0030.05010.05
5.0.50.0030.0438.38
5.0.40.0000.0438.40
5.0.30.0070.0678.20
5.0.20.0030.0438.18
5.0.10.0000.0378.16
5.0.00.0030.0578.18
4.4.90.0000.0407.34
4.4.80.0030.0337.34
4.4.70.0100.0137.34
4.4.60.0030.0337.34
4.4.50.0000.0377.34
4.4.40.0030.0507.34
4.4.30.0070.0337.34
4.4.20.0030.0377.34
4.4.10.0030.0307.34
4.4.00.0030.0537.34
4.3.110.0030.0377.34
4.3.100.0100.0277.34
4.3.90.0000.0377.34
4.3.80.0030.0577.34
4.3.70.0030.0237.34
4.3.60.0070.0337.34
4.3.50.0000.0307.34
4.3.40.0030.0507.34
4.3.30.0030.0307.34
4.3.20.0030.0377.34
4.3.10.0000.0337.34
4.3.00.0030.0277.34

preferences:
42.4 ms | 401 KiB | 5 Q