3v4l.org

run code in 300+ PHP versions simultaneously
<?php $someFoo = '{ "Foo" : "Bar" }'; $someFoo = mb_convert_encoding($someFoo, 'ASCII'); echo mb_detect_encoding($someFoo) . "\r\n"; var_dump(json_decode($someFoo)); $someFoo = mb_convert_encoding($someFoo, 'UTF-8'); echo mb_detect_encoding($someFoo) . "\r\n"; var_dump(json_decode($someFoo));

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.0070.00716.38
8.3.50.0070.00822.94
8.3.40.0150.00618.70
8.3.30.0070.00719.04
8.3.20.0040.00420.34
8.3.10.0030.00621.89
8.3.00.0110.00417.78
8.2.180.0110.01116.75
8.2.170.0040.01822.96
8.2.160.0100.01020.50
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0140.00426.16
8.2.120.0040.00421.02
8.2.110.0060.00321.95
8.2.100.0070.00317.72
8.2.90.0050.00319.32
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0000.00718.01
8.2.20.0020.00517.74
8.2.10.0000.00718.05
8.2.00.0000.00717.63
8.1.280.0120.00625.92
8.1.270.0040.00423.96
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00622.13
8.1.230.0000.01119.10
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0040.00717.47
8.1.190.0000.00817.13
8.1.180.0060.00618.10
8.1.170.0040.00418.44
8.1.160.0000.00821.98
8.1.150.0040.00418.99
8.1.140.0000.00717.50
8.1.130.0000.00717.75
8.1.120.0040.00317.61
8.1.110.0050.00317.52
8.1.100.0050.00317.43
8.1.90.0070.00017.55
8.1.80.0070.00017.57
8.1.70.0030.00317.48
8.1.60.0030.00517.66
8.1.50.0030.00517.48
8.1.40.0070.00017.49
8.1.30.0090.00017.74
8.1.20.0040.00417.68
8.1.10.0000.00817.60
8.1.00.0030.00517.53
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0000.00718.50
8.0.270.0030.00317.32
8.0.260.0040.00418.39
8.0.250.0070.00016.95
8.0.240.0060.00316.99
8.0.230.0040.00416.93
8.0.220.0070.00016.93
8.0.210.0030.00316.99
8.0.200.0000.00617.02
8.0.190.0030.00616.91
8.0.180.0000.00717.01
8.0.170.0000.00817.07
8.0.160.0040.00416.95
8.0.150.0000.00716.84
8.0.140.0050.00316.97
8.0.130.0030.00313.39
8.0.120.0080.00016.93
8.0.110.0000.00716.86
8.0.100.0040.00416.79
8.0.90.0030.00316.77
8.0.80.0040.01117.01
8.0.70.0000.00716.78
8.0.60.0040.00416.97
8.0.50.0040.00416.71
8.0.30.0100.00916.92
8.0.20.0130.00617.40
8.0.10.0000.00716.95
8.0.00.0080.01016.71
7.4.330.0000.00515.14
7.4.320.0000.00616.59
7.4.300.0000.00616.41
7.4.290.0070.00016.62
7.4.280.0000.00716.62
7.4.270.0030.00416.51
7.4.260.0070.00016.50
7.4.250.0070.00016.41
7.4.240.0060.00116.54
7.4.230.0030.00316.54
7.4.220.0110.00716.64
7.4.210.0100.00416.46
7.4.200.0070.00016.59
7.4.160.0090.00616.50
7.4.150.0070.01117.40
7.4.140.0120.01017.86
7.4.130.0100.00716.41
7.4.120.0100.00716.45
7.4.110.0120.00416.41
7.4.100.0110.01116.50
7.4.90.0060.01116.29
7.4.80.0110.00719.39
7.4.70.0150.00616.35
7.4.60.0090.00916.53
7.4.50.0000.00816.59
7.4.40.0040.01616.42
7.4.30.0140.00816.39
7.4.00.0090.00915.04
7.3.330.0060.00013.11
7.3.320.0000.00513.16
7.3.310.0070.00016.24
7.3.300.0040.00416.29
7.3.290.0070.00716.29
7.3.280.0100.00816.26
7.3.270.0090.00917.40
7.3.260.0120.00616.29
7.3.240.0070.01116.37
7.3.230.0060.01016.49
7.3.210.0000.01716.68
7.3.200.0120.01319.39
7.3.190.0030.01516.22
7.3.180.0130.00616.31
7.3.170.0110.00516.51
7.3.160.0130.00316.50
7.3.120.0060.01215.06
7.3.110.0090.00714.70
7.3.100.0100.00314.68
7.3.90.0030.01014.77
7.3.80.0060.00314.83
7.3.70.0070.00414.48
7.3.60.0060.00614.81
7.3.50.0000.01014.71
7.3.40.0060.00614.69
7.3.30.0040.01214.72
7.3.20.0060.00316.73
7.3.10.0050.00916.65
7.3.00.0070.00816.41
7.2.330.0030.02016.74
7.2.320.0070.01416.68
7.2.310.0140.00316.72
7.2.300.0060.01216.70
7.2.290.0100.00616.28
7.2.250.0120.00614.86
7.2.240.0100.01015.18
7.2.230.0090.00414.92
7.2.220.0000.01114.89
7.2.210.0090.00615.15
7.2.200.0070.01014.95
7.2.190.0090.00315.09
7.2.180.0070.00714.65
7.2.170.0040.01415.10
7.2.130.0080.00816.76
7.2.120.0030.01016.72
7.2.110.0100.00616.80
7.2.100.0090.00916.66
7.2.90.0120.00416.71
7.2.80.0120.00716.49
7.2.70.0130.00916.93
7.2.60.0110.00517.00
7.2.50.0070.01016.82
7.2.40.0130.00816.87
7.2.30.0140.00616.78
7.2.20.0140.00916.59
7.2.10.0130.00416.89
7.2.00.0130.00416.88
7.1.330.0070.00715.58
7.1.320.0030.00715.82
7.1.310.0070.00715.60
7.1.300.0000.01515.83
7.1.290.0000.01116.00
7.1.280.0120.00315.85
7.1.270.0070.00715.65
7.1.260.0100.00315.83
7.1.250.0050.00515.49
7.1.240.0070.00716.00
7.1.230.0060.01015.51
7.1.220.0100.00715.66
7.1.210.0120.00715.88
7.1.200.0130.00515.61
7.1.190.0120.00415.50
7.1.180.0050.01115.66
7.1.170.0060.01115.70
7.1.160.0100.00815.65
7.1.150.0090.01015.67
7.1.140.0100.00515.71
7.1.130.0140.00515.61
7.1.120.0200.00115.90
7.1.110.0120.00815.75
7.1.100.0060.00615.68
7.1.90.0140.00415.60
7.1.80.0200.01015.69
7.1.70.0100.00616.19
7.1.60.0090.01017.00
7.1.50.0170.01016.16
7.1.40.0120.00415.77
7.1.30.0140.00615.66
7.1.20.0140.00615.56
7.1.10.0070.00915.68
7.1.00.0090.03117.88
7.0.330.0040.01115.25
7.0.320.0060.00315.57
7.0.310.0080.00615.42
7.0.300.0100.00715.29
7.0.290.0090.00715.26
7.0.280.0110.00515.41
7.0.270.0110.00315.33
7.0.260.0110.00415.18
7.0.250.0110.00615.19
7.0.240.0100.00315.23
7.0.230.0090.00415.52
7.0.220.0060.01015.43
7.0.210.0100.01015.29
7.0.200.0060.00615.75
7.0.190.0100.00715.45
7.0.180.0100.00915.33
7.0.170.0120.00915.37
7.0.160.0150.00815.38
7.0.150.0150.00315.46
7.0.140.0080.03117.66
7.0.130.0080.00615.28
7.0.120.0080.00615.38
7.0.110.0080.01015.25
7.0.100.0140.00315.34
7.0.90.0120.00815.29
7.0.80.0140.00615.26
7.0.70.0070.00915.30
7.0.60.0070.03216.83
7.0.50.0090.02116.18
7.0.40.0110.03215.69
7.0.30.0160.02015.59
7.0.20.0140.02515.61
7.0.10.0100.02915.63
7.0.00.0070.02015.54
5.6.380.0130.00614.31
5.6.370.0080.00914.29
5.6.360.0150.00414.32
5.6.350.0040.01214.27
5.6.340.0130.00314.29
5.6.330.0100.00414.33
5.6.320.0090.00814.07
5.6.310.0020.01214.54
5.6.300.0100.00514.30
5.6.290.0120.00414.23
5.6.280.0070.03116.53
5.6.270.0130.00414.19
5.6.260.0050.00514.15
5.6.250.0070.00514.31
5.6.240.0070.00614.20
5.6.230.0120.00414.25
5.6.220.0100.00814.41
5.6.210.0070.03116.42
5.6.200.0110.02615.62
5.6.190.0140.02816.35
5.6.180.0200.02616.44
5.6.170.0120.01916.42
5.6.160.0110.03016.36
5.6.150.0070.02915.58
5.6.140.0090.01815.47
5.6.130.0080.03015.48
5.6.120.0070.01816.54
5.6.110.0060.03716.42
5.6.100.0080.03316.42
5.6.90.0080.02816.56
5.6.80.0120.01716.23
5.6.70.0070.01014.09
5.6.60.0160.00614.07
5.6.50.0130.00514.20
5.6.40.0060.00814.14
5.6.30.0100.00614.35
5.6.20.0050.00913.97
5.6.10.0050.00814.21
5.6.00.0070.00514.15
5.5.380.0110.00011.83
5.5.370.0050.00911.88
5.5.360.0040.00611.88
5.5.350.0140.02114.65
5.5.340.0100.02813.92
5.5.330.0090.01514.74
5.5.320.1240.01714.72
5.5.310.0150.02814.61
5.5.300.0080.01213.76
5.5.290.0050.03013.93
5.5.280.0090.02914.87
5.5.270.0080.03014.93
5.5.260.0130.02814.88
5.5.250.0070.02114.74
5.5.240.0050.01714.59
5.5.230.0070.00611.80
5.5.220.0040.00811.87
5.5.210.0040.00911.77
5.5.200.0090.00211.83
5.5.190.0080.00611.91
5.5.180.0070.00611.79
5.5.170.0070.00512.57
5.5.160.0080.00711.90
5.5.150.0070.00511.93
5.5.140.0030.00811.83
5.5.130.0070.00611.78
5.5.120.0050.00611.68
5.5.110.0030.00711.96
5.5.100.0090.00311.77
5.5.90.0060.00611.84
5.5.80.0080.00211.91
5.5.70.0100.00411.76
5.5.60.0070.00511.80
5.5.50.0050.00511.69
5.5.40.0090.00211.74
5.5.30.0060.00511.87
5.5.20.0050.00711.89
5.5.10.0070.00311.92
5.5.00.0060.00711.77
5.4.450.0170.01714.33
5.4.440.0340.02214.40
5.4.430.0100.01914.47
5.4.420.0100.01714.42
5.4.410.0080.02214.13
5.4.400.0070.02214.09
5.4.390.0080.02114.14
5.4.380.0050.02314.12
5.4.370.0090.02214.02
5.4.360.0170.01214.13
5.4.350.0050.01811.90
5.4.340.0070.01711.81
5.4.330.0060.00711.84
5.4.320.0080.01412.10
5.4.310.0070.01612.11
5.4.300.0080.01912.03
5.4.290.0040.01812.05
5.4.280.0090.01612.07
5.4.270.0070.01612.05
5.4.260.0080.01512.03
5.4.250.0080.01712.08
5.4.240.0060.02211.93
5.4.230.0090.01711.95
5.4.220.0090.01511.95
5.4.210.0050.01712.05
5.4.200.0040.01912.04
5.4.190.0050.01811.98
5.4.180.0060.01712.03
5.4.170.0050.01812.04
5.4.160.0060.01512.09
5.4.150.0050.01712.02
5.4.140.0060.01811.76
5.4.130.0080.01511.97
5.4.120.0040.01611.93
5.4.110.0060.01511.87
5.4.100.0050.01711.96
5.4.90.0030.01911.89
5.4.80.0040.02111.90
5.4.70.0070.01611.92
5.4.60.0050.01611.84
5.4.50.0040.01911.88
5.4.40.0090.01811.88
5.4.30.0070.01511.86
5.4.20.0070.01511.91
5.4.10.0070.01411.96
5.4.00.0060.01511.74
5.3.290.0070.01611.95
5.3.280.0060.01711.97
5.3.270.0080.01612.01
5.3.260.0070.01611.96
5.3.250.0090.01311.98
5.3.240.0050.01511.94
5.3.230.0060.01811.94
5.3.220.0060.01511.91
5.3.210.0070.01511.94
5.3.200.0050.01711.95
5.3.190.0050.01611.95
5.3.180.0070.01611.96
5.3.170.0070.01612.00
5.3.160.0070.01812.00
5.3.150.0100.01211.97
5.3.140.0060.01511.88
5.3.130.0060.02011.88
5.3.120.0070.01711.90
5.3.110.0060.01611.89
5.3.100.0050.01811.80
5.3.90.0050.01611.77
5.3.80.0070.01411.74
5.3.70.0050.01611.69
5.3.60.0060.01711.78
5.3.50.0070.01411.70
5.3.40.0080.01411.69
5.3.30.0110.01211.69
5.3.20.0050.01611.60
5.3.10.0080.01311.56
5.3.00.0070.01411.54
5.2.170.0030.01510.63
5.2.160.0080.00910.63
5.2.150.0050.01410.63
5.2.140.0040.01410.63
5.2.130.0050.01310.62
5.2.120.0060.01310.62
5.2.110.0080.00910.62
5.2.100.0070.01210.62
5.2.90.0050.01310.62
5.2.80.0040.01310.62
5.2.70.0070.01110.62
5.2.60.0040.01410.60
5.2.50.0060.01310.59
5.2.40.0060.01110.58
5.2.30.0040.01310.57
5.2.20.0070.01210.57
5.2.10.0050.01110.54
5.2.00.0050.01310.50
5.1.60.0050.01010.26
5.1.50.0040.01410.26
5.1.40.0070.01010.25
5.1.30.0040.01310.37
5.1.20.0040.01410.38
5.1.10.0050.01110.29
5.1.00.0050.01210.29
5.0.50.0030.0119.78
5.0.40.0030.0109.73
5.0.30.0030.0139.67
5.0.20.0030.0129.66
5.0.10.0040.0089.65
5.0.00.0040.0129.65
4.4.90.0040.0079.17
4.4.80.0030.0109.16
4.4.70.0030.0099.16
4.4.60.0040.0069.16
4.4.50.0020.0099.16
4.4.40.0020.0129.14
4.4.30.0010.0089.16
4.4.20.0050.0079.19
4.4.10.0040.0079.19
4.4.00.0040.0119.16
4.3.110.0030.0089.13
4.3.100.0010.0099.13
4.3.90.0040.0069.12
4.3.80.0010.0159.10
4.3.70.0020.0099.11
4.3.60.0020.0079.11
4.3.50.0040.0069.11
4.3.40.0020.0129.08
4.3.30.0020.0078.66
4.3.20.0030.0088.66
4.3.10.0050.0068.65
4.3.00.0080.0089.90

preferences:
37.27 ms | 401 KiB | 5 Q