3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $someFoo = '{ "Foo" : "Bar" }'; echo mb_detect_encoding($someFoo) . "\r\n"; var_dump(json_decode($someFoo)); $data= mb_convert_encoding($someFoo, "UTF-8", mb_detect_encoding($someFoo)); echo mb_detect_encoding($data) . "\r\n"; var_dump(json_decode($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.40.0140.00718.71
8.3.30.0070.00719.09
8.3.20.0000.00720.38
8.3.10.0060.00321.80
8.3.00.0040.00417.79
8.2.170.0110.00422.96
8.2.160.0130.00720.28
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00726.16
8.2.120.0080.00020.94
8.2.110.0050.00322.11
8.2.100.0030.00917.72
8.2.90.0070.00019.22
8.2.80.0030.00517.97
8.2.70.0050.00317.63
8.2.60.0030.00618.16
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00418.01
8.2.20.0000.00817.80
8.2.10.0040.00418.12
8.2.00.0000.00817.65
8.1.270.0050.00323.96
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0090.00023.70
8.1.230.0070.00419.15
8.1.220.0050.00317.79
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0080.00017.23
8.1.180.0060.00618.10
8.1.170.0030.00518.79
8.1.160.0000.00721.99
8.1.150.0000.00718.86
8.1.140.0000.00717.51
8.1.130.0040.00417.82
8.1.120.0000.00817.50
8.1.110.0000.00717.49
8.1.100.0000.00717.43
8.1.90.0000.00717.43
8.1.80.0070.00017.48
8.1.70.0070.00017.47
8.1.60.0030.00617.66
8.1.50.0040.00417.48
8.1.40.0000.00717.59
8.1.30.0000.00817.74
8.1.20.0070.00017.77
8.1.10.0080.00017.58
8.1.00.0000.00817.37
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.47
8.0.270.0040.00417.29
8.0.260.0000.00617.34
8.0.250.0070.00016.94
8.0.240.0040.00416.99
8.0.230.0000.00716.89
8.0.220.0030.00316.84
8.0.210.0030.00316.85
8.0.200.0070.00016.92
8.0.190.0080.00017.03
8.0.180.0040.00417.02
8.0.170.0080.00016.98
8.0.160.0030.00317.02
8.0.150.0040.00416.91
8.0.140.0050.00316.93
8.0.130.0030.00313.35
8.0.120.0030.00517.00
8.0.110.0000.00716.94
8.0.100.0040.00416.98
8.0.90.0000.00716.88
8.0.80.0070.01316.92
8.0.70.0040.00416.77
8.0.60.0040.00416.93
8.0.50.0000.00716.89
8.0.30.0090.00917.21
8.0.20.0090.01217.40
8.0.10.0050.00317.02
8.0.00.0130.00716.71
7.4.330.0050.00015.00
7.4.320.0060.00016.44
7.4.300.0050.00216.61
7.4.290.0070.00016.51
7.4.280.0080.00016.50
7.4.270.0000.00716.50
7.4.260.0080.00216.52
7.4.250.0000.00716.40
7.4.240.0040.00416.49
7.4.230.0040.00316.40
7.4.220.0100.00916.57
7.4.210.0030.01716.56
7.4.200.0040.00416.55
7.4.160.0130.00316.50
7.4.150.0110.00617.40
7.4.140.0160.01117.86
7.4.130.0110.00816.54
7.4.120.0100.00816.56
7.4.110.0130.00716.58
7.4.100.0130.00716.31
7.4.90.0070.01116.47
7.4.80.0090.00919.39
7.4.70.0080.01616.41
7.4.60.0070.01016.59
7.4.50.0040.00016.55
7.4.40.0070.01016.63
7.4.30.0030.01316.46
7.4.00.0060.01114.91
7.3.330.0000.00713.19
7.3.320.0000.00613.19
7.3.310.0060.00016.31
7.3.300.0050.00216.12
7.3.290.0050.01416.23
7.3.280.0110.00616.28
7.3.270.0130.00617.40
7.3.260.0030.01316.61
7.3.250.0070.01016.37
7.3.240.0060.01616.50
7.3.230.0080.00816.52
7.3.210.0110.00616.23
7.3.200.0090.01319.39
7.3.190.0100.00716.46
7.3.180.0040.01216.51
7.3.170.0100.00616.46
7.3.160.0030.01316.25
7.3.120.0030.01214.75
7.3.110.0100.00714.80
7.3.100.0080.00414.84
7.3.90.0030.00614.93
7.3.80.0040.00814.77
7.3.70.0060.00914.90
7.3.60.0030.00614.65
7.3.50.0100.00314.58
7.3.40.0030.01014.80
7.3.30.0030.01014.86
7.3.20.0060.01016.50
7.3.10.0000.01116.88
7.3.00.0080.00416.61
7.2.330.0090.01516.51
7.2.320.0100.00716.79
7.2.310.0060.01216.57
7.2.300.0130.00416.71
7.2.290.0090.00916.42
7.2.250.0070.01014.96
7.2.240.0060.01315.25
7.2.230.0090.00614.53
7.2.220.0040.00815.04
7.2.210.0040.01115.24
7.2.200.0100.00714.99
7.2.190.0120.00314.82
7.2.180.0100.00714.99
7.2.170.0060.00615.14
7.2.00.0070.01019.25
7.1.330.0030.01015.80
7.1.320.0060.00915.85
7.1.310.0060.01015.74
7.1.300.0070.00715.73
7.1.290.0060.00315.46
7.1.280.0040.01215.84
7.1.270.0060.00915.54
7.1.260.0040.00415.77
7.1.100.0140.01118.02
7.1.70.0040.00416.88
7.1.60.0130.01319.40
7.1.50.0090.01516.99
7.1.00.0070.07022.40
7.0.200.0020.00516.63
7.0.140.0070.07022.09
7.0.60.0070.03720.02
7.0.50.0070.08317.88
7.0.40.0200.07720.24
7.0.30.0270.06020.13
7.0.20.0330.08720.13
7.0.10.0070.07020.28
7.0.00.0130.07320.16
5.6.280.0030.07320.77
5.6.210.0030.06020.66
5.6.200.0130.07318.19
5.6.190.0030.09720.44
5.6.180.0330.05020.60
5.6.170.0230.03720.33
5.6.160.0000.08020.38
5.6.150.0030.06318.19
5.6.140.0070.06318.22
5.6.130.0030.04018.18
5.6.120.0070.04321.02
5.6.110.0170.07320.98
5.6.100.0070.07321.10
5.6.90.0070.08021.00
5.6.80.0030.08720.50
5.5.350.0100.08020.37
5.5.340.0030.04017.98
5.5.330.0030.05020.21
5.5.320.0030.06720.29
5.5.310.0370.07020.29
5.5.300.0070.06017.92
5.5.290.0070.08718.01
5.5.280.0130.05720.79
5.5.270.0100.06720.95
5.5.260.0100.05020.76
5.5.250.0030.04020.58
5.5.240.0100.03320.25
5.4.450.0630.04719.46
5.4.440.0300.05019.38
5.4.430.0430.04719.48
5.4.420.0400.04719.40
5.4.410.0700.03318.96
5.4.400.0830.03018.81
5.4.390.0470.05019.21
5.4.380.0670.06718.54
5.4.370.0830.05318.61
5.4.360.0530.05718.60
5.4.350.1130.05018.61
5.4.340.1030.05018.71
5.4.320.0060.04012.46
5.4.310.0060.03712.45
5.4.300.0070.03512.46
5.4.290.0040.03912.45
5.4.280.0050.03512.35
5.4.270.0110.03612.35
5.4.260.0040.03812.35
5.4.250.0040.03812.35
5.4.240.0060.03512.35
5.4.230.0070.04712.34
5.4.220.0070.03412.34
5.4.210.0010.04012.34
5.4.200.0100.04212.34
5.4.190.0050.04012.34
5.4.180.0060.04112.34
5.4.170.0040.04012.35
5.4.160.0050.03612.34
5.4.150.0060.04112.34
5.4.140.0080.03712.03
5.4.130.0040.03712.01
5.4.120.0060.04011.97
5.4.110.0080.04411.96
5.4.100.0070.03311.97
5.4.90.0050.03611.96
5.4.80.0060.03511.97
5.4.70.0060.04111.96
5.4.60.0060.03411.96
5.4.50.0040.03611.96
5.4.40.0070.03711.95
5.4.30.0070.04111.95
5.4.20.0070.03311.95
5.4.10.0050.03611.95
5.4.00.0050.03511.45
5.3.290.0040.04212.80
5.3.280.0070.04112.71
5.3.270.0100.04412.73
5.3.260.0090.04012.72
5.3.250.0080.03412.71
5.3.240.0060.04212.72
5.3.230.0070.03912.71
5.3.220.0090.03512.68
5.3.210.0050.04012.68
5.3.200.0080.03512.68
5.3.190.0120.03112.68
5.3.180.0050.04012.67
5.3.170.0040.03812.66
5.3.160.0080.03412.67
5.3.150.0060.04412.67
5.3.140.0070.03912.66
5.3.130.0070.03712.66
5.3.120.0060.04312.65
5.3.110.0050.04612.66
5.3.100.0110.03512.12
5.3.90.0050.03512.08
5.3.80.0070.03412.07
5.3.70.0090.04212.08
5.3.60.0030.04212.06
5.3.50.0070.03912.00
5.3.40.0050.03612.00
5.3.30.0050.03511.95
5.3.20.0050.03911.73
5.3.10.0050.03511.70
5.3.00.0020.03911.68
5.2.170.0110.0329.18
5.2.160.0040.0329.18
5.2.150.0070.0329.18
5.2.140.0070.0339.17
5.2.130.0060.0279.14
5.2.120.0050.0279.13
5.2.110.0080.0339.14
5.2.100.0030.0399.14
5.2.90.0050.0289.14
5.2.80.0040.0309.13
5.2.70.0060.0289.14
5.2.60.0030.0319.09
5.2.50.0020.0319.06
5.2.40.0060.0379.04
5.2.30.0040.0349.01
5.2.20.0080.0279.00
5.2.10.0030.0358.92
5.2.00.0040.0338.78
5.1.60.0050.0238.07
5.1.50.0040.0258.07
5.1.40.0060.0278.04
5.1.30.0040.0268.40
5.1.20.0050.0258.41
5.1.10.0040.0258.14
5.1.00.0070.0238.14
5.0.50.0030.0216.62
5.0.40.0050.0176.48
5.0.30.0030.0316.29
5.0.20.0030.0196.26
5.0.10.0020.0286.24
5.0.00.0020.0326.23
4.4.90.0050.0134.78
4.4.80.0020.0154.76
4.4.70.0040.0194.75
4.4.60.0010.0194.75
4.4.50.0010.0214.77
4.4.40.0010.0304.71
4.4.30.0020.0174.76
4.4.20.0030.0154.85
4.4.10.0050.0214.85
4.4.00.0040.0244.76
4.3.110.0040.0214.67
4.3.100.0030.0154.66
4.3.90.0020.0154.63
4.3.80.0060.0284.58
4.3.70.0020.0164.63
4.3.60.0030.0144.62
4.3.50.0010.0174.63
4.3.40.0010.0254.54
4.3.30.0010.0163.28
4.3.20.0010.0163.25
4.3.10.0030.0143.22
4.3.00.0070.01715.88

preferences:
36.61 ms | 400 KiB | 5 Q