3v4l.org

run code in 300+ PHP versions simultaneously
<?php //the original array $a = array( 'a23' => 'abcdefg hij' ); //make it serial $s = serialize($a); //just to see the serial string var_dump($s); //the serialized array $s1 = 'a:1:{s:3:"a23";s:11:"abcdefg hij";}'; //the same with linux line end character $s2 = "a:1:{s:3:\"a23\";s:11:\"abcdefg\12hij\";}"; //the same with windows line end character, same I had in my PEAR files $s3 = "a:1:{s:3:\"a23\";s:12:\"abcdefg\15\12hij\";}"; //turn it back to an array $a1 = unserialize($s1); // ok $a2 = unserialize($s2); // ok $a3 = unserialize($s3); // not ok

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.0140.00418.18
8.3.50.0120.00922.09
8.3.40.0000.01418.46
8.3.30.0100.00318.93
8.3.20.0080.00018.48
8.3.10.0080.00023.56
8.3.00.0000.00820.95
8.2.180.0100.00618.29
8.2.170.0090.00922.96
8.2.160.0140.00019.34
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00322.25
8.2.110.0090.00019.39
8.2.100.0040.00817.50
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0100.00458.71
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00819.94
8.2.30.0060.00317.93
8.2.20.0040.00417.62
8.2.10.0000.00718.06
8.2.00.0040.00417.98
8.1.280.0110.00725.92
8.1.270.0060.01320.30
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0080.00418.95
8.1.230.0080.00317.66
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00618.57
8.1.160.0040.00421.96
8.1.150.0000.00718.74
8.1.140.0000.00817.30
8.1.130.0040.00417.87
8.1.120.0070.00017.33
8.1.110.0000.00717.38
8.1.100.0000.00717.33
8.1.90.0030.00317.41
8.1.80.0040.00417.28
8.1.70.0000.00717.34
8.1.60.0030.00617.41
8.1.50.0040.00417.52
8.1.40.0030.00517.42
8.1.30.0060.00317.42
8.1.20.0030.00517.46
8.1.10.0040.00417.40
8.1.00.0030.00917.39
8.0.300.0050.00218.77
8.0.290.0000.00716.63
8.0.280.0070.00018.30
8.0.270.0040.00417.20
8.0.260.0060.00017.08
8.0.250.0080.00016.97
8.0.240.0000.00816.95
8.0.230.0040.00416.84
8.0.220.0050.00316.93
8.0.210.0000.00816.93
8.0.200.0030.00316.94
8.0.190.0000.00716.92
8.0.180.0020.00516.93
8.0.170.0040.00416.94
8.0.160.0050.00316.90
8.0.150.0030.00516.84
8.0.140.0040.00416.85
8.0.130.0040.00413.35
8.0.120.0000.00816.78
8.0.110.0050.00316.82
8.0.100.0040.00416.77
8.0.90.0050.00216.89
8.0.80.0060.00916.93
8.0.70.0050.00316.68
8.0.60.0000.00716.96
8.0.50.0040.00416.88
8.0.30.0090.00917.01
8.0.20.0060.01317.40
8.0.10.0050.00217.03
8.0.00.0140.00716.66
7.4.330.0000.00515.03
7.4.320.0000.00616.33
7.4.300.0040.00416.39
7.4.290.0030.00516.56
7.4.280.0050.00316.55
7.4.270.0000.00716.46
7.4.260.0070.00016.46
7.4.250.0080.00016.39
7.4.240.0030.00416.48
7.4.230.0000.00716.55
7.4.220.0100.01016.52
7.4.210.0050.01216.54
7.4.200.0000.00716.61
7.4.160.0000.01416.35
7.4.150.0100.01317.40
7.4.140.0130.00817.86
7.4.130.0130.00816.48
7.4.120.0070.01416.47
7.4.110.0130.01016.40
7.4.100.0160.00716.41
7.4.90.0070.01016.31
7.4.80.0030.01319.39
7.4.70.0090.00916.25
7.4.60.0030.01316.29
7.4.50.0020.00216.38
7.4.40.0160.00716.57
7.4.30.0180.00316.45
7.4.00.0100.00315.11
7.3.330.0000.00512.98
7.3.320.0050.00012.99
7.3.310.0000.00716.23
7.3.300.0000.00716.16
7.3.290.0000.00716.16
7.3.280.0110.00516.16
7.3.270.0120.00617.40
7.3.260.0160.00816.30
7.3.250.0200.00916.39
7.3.240.0080.00916.34
7.3.230.0110.00616.43
7.3.210.0090.00916.22
7.3.200.0060.01219.39
7.3.190.0080.01216.25
7.3.180.0090.00716.50
7.3.170.0030.01516.28
7.3.160.0140.01015.97
7.2.330.0170.00016.36
7.2.320.0090.01016.51
7.2.310.0060.01016.44
7.2.300.0080.01216.53
7.2.290.0100.01016.28
7.2.80.0240.00914.46
7.2.70.0350.00814.94
7.2.60.0170.00915.51
7.2.50.0270.00714.68
7.2.40.0240.00814.89
7.2.30.0240.00914.96
7.2.20.0270.00314.89
7.2.10.0270.00514.93
7.2.00.0160.00916.28
7.1.200.0040.01115.59
7.1.190.0240.00813.78
7.1.180.0260.00413.78
7.1.170.0310.00113.76
7.1.160.0250.00513.52
7.1.150.0250.00513.61
7.1.140.0200.00913.74
7.1.130.0250.00813.79
7.1.120.0220.00713.79
7.1.110.0250.00213.88
7.1.100.0220.00715.27
7.1.90.0270.00513.59
7.1.80.0140.00513.53
7.1.70.0070.01214.83
7.1.60.0290.01226.71
7.1.50.0340.00626.75
7.1.40.0300.00526.53
7.1.30.0240.01026.55
7.1.20.0340.01226.64
7.1.10.0170.00714.61
7.1.00.0160.00514.89
7.0.310.0200.00913.47
7.0.300.0370.00513.52
7.0.290.0260.00913.47
7.0.270.0250.00813.34
7.0.260.0270.00713.51
7.0.250.0240.00713.58
7.0.240.0260.00513.56
7.0.230.0290.00113.64
7.0.220.0400.00513.36
7.0.210.0200.01113.46
7.0.200.0220.00514.55
7.0.190.0190.00514.67
7.0.180.0170.00714.28
7.0.170.0190.00714.36
7.0.160.0190.00514.43
7.0.150.0230.00614.47
7.0.140.0210.00614.39
7.0.130.0250.00514.57
7.0.120.0230.00514.50
7.0.110.0240.00414.32
7.0.100.0220.00714.42
7.0.90.0230.00414.36
7.0.80.0230.00214.41
7.0.70.0270.00514.33
7.0.60.0460.00814.44
7.0.50.0400.00914.54
7.0.40.0210.00614.58
7.0.30.0190.00514.37
7.0.20.0210.00514.52
7.0.10.0180.00714.50
7.0.00.0200.00714.38
5.6.300.0030.02416.27
5.6.290.0100.02116.41
5.6.280.0160.01516.41
5.6.270.0060.03216.21
5.6.260.0050.02216.43
5.6.250.0070.02216.35
5.6.240.0090.01816.49
5.6.230.0060.02416.45
5.6.220.0200.01416.41
5.6.210.0120.02216.49
5.6.200.0120.01916.48
5.6.190.0120.01616.35
5.6.180.0080.02216.42
5.6.170.0050.02516.48
5.6.160.0070.02216.49
5.6.150.0110.01716.31
5.6.140.0100.01716.43
5.6.130.0100.02016.36
5.6.120.0070.02116.45
5.6.110.0050.02616.39
5.6.100.0080.02116.32
5.6.90.0100.01616.52
5.6.80.0070.02016.16
5.6.70.0070.01916.01
5.6.60.0080.01916.21
5.6.50.0090.01616.13
5.6.40.0080.01816.05
5.6.30.0100.01716.13
5.6.20.0060.03116.06
5.6.10.0160.01216.08
5.6.00.0090.01716.12
5.5.380.0060.01913.13
5.5.370.0120.01213.18
5.5.360.0060.01913.03
5.5.350.0100.01813.20
5.5.340.0050.02013.21
5.5.330.0070.02113.22
5.5.320.0110.01713.23
5.5.310.0070.01913.33
5.5.300.0100.01813.05
5.5.290.0100.01413.07
5.5.280.0090.02413.20
5.5.270.0070.01813.26
5.5.260.0090.02013.39
5.5.250.0050.01913.10
5.5.240.0080.01512.95
5.5.230.0080.02013.10
5.5.220.0050.01913.02
5.5.210.0080.01613.08
5.5.200.0100.01513.02
5.5.190.0090.01812.98
5.5.180.0120.01412.96
5.5.160.0090.01312.89
5.5.150.0080.01713.08
5.5.140.0070.01513.07
5.5.130.0070.02013.12
5.5.120.0080.01612.88
5.5.110.0090.01712.95
5.5.100.0070.01812.83
5.5.90.0070.01812.86
5.5.80.0030.01912.92
5.5.70.0080.01612.84
5.5.60.0090.01712.98
5.5.50.0100.01512.94
5.5.40.0070.02112.88
5.5.30.0070.01612.88
5.5.20.0090.02012.90
5.5.10.0030.02212.85
5.5.00.0070.01812.97
5.4.450.0100.01813.66
5.4.440.0080.01613.62
5.4.430.0080.01913.68
5.4.420.0080.01613.63
5.4.410.0080.01513.67
5.4.400.0100.01213.60
5.4.390.0030.01913.54
5.4.380.0060.01813.60
5.4.370.0070.01413.59
5.4.360.0030.01913.54
5.4.350.0020.02313.63
5.4.340.0110.01613.63
5.4.320.0060.01613.61
5.4.310.0090.01813.52
5.4.300.0090.01713.57
5.4.290.0070.01713.54
5.4.280.0060.01813.51
5.4.270.0080.01513.59
5.4.260.0060.01613.66
5.4.250.0080.01813.48
5.4.240.0090.01413.49
5.4.230.0030.01913.50
5.4.220.0080.01813.59
5.4.210.0050.01713.57
5.4.200.0030.02213.64
5.4.190.0040.01813.52
5.4.180.0080.01513.37
5.4.170.0090.01413.40
5.4.160.0050.01713.42
5.4.150.0040.02013.60
5.4.140.0080.01612.65
5.4.130.0090.01412.89
5.4.120.0090.01612.70
5.4.110.0050.01612.58
5.4.100.0060.01812.73
5.4.90.0130.01612.80
5.4.80.0110.01412.74
5.4.70.0080.01512.69
5.4.60.0040.01612.70
5.4.50.0080.01412.60
5.4.40.0070.01612.63
5.4.30.0120.01212.78
5.4.20.0060.01612.72
5.4.10.0050.02012.83
5.4.00.0080.01512.65
5.3.290.0070.01712.41
5.3.280.0060.01512.25
5.3.270.0070.01512.42
5.3.260.0050.01512.39
5.3.250.0030.01812.36
5.3.240.0060.02012.25
5.3.230.0050.01712.34
5.3.220.0040.01612.21
5.3.210.0040.01812.24
5.3.200.0110.01112.21
5.3.190.0090.01512.32
5.3.180.0060.01712.41
5.3.170.0100.01312.44
5.3.160.0060.02012.34
5.3.150.0070.02312.29
5.3.140.0080.01412.34
5.3.130.0040.01912.38
5.3.120.0040.01812.26
5.3.110.0030.02012.32
5.3.100.0060.01412.28
5.3.90.0060.01712.39
5.3.80.0040.01812.27
5.3.70.0080.01612.21
5.3.60.0080.01512.35
5.3.50.0060.01612.27
5.3.40.0030.02312.25
5.3.30.0060.01612.16
5.3.20.0050.01712.22
5.3.10.0080.01912.17
5.3.00.0090.02012.16
5.2.170.0080.01011.68
5.2.160.0050.01511.74
5.2.150.0040.01311.65
5.2.140.0050.01511.68
5.2.130.0070.01311.66
5.2.120.0060.01811.74
5.2.110.0030.02011.69
5.2.100.0050.01311.75
5.2.90.0060.01311.66
5.2.80.0030.01611.64
5.2.70.0110.01011.62
5.2.60.0080.01211.62
5.2.50.0070.01311.62
5.2.40.0060.01211.64
5.2.30.0060.02011.62
5.2.20.0050.01511.62
5.2.10.0030.01611.62
5.2.00.0050.01411.62
5.1.60.0030.01411.62
5.1.50.0030.01311.62
5.1.40.0030.01311.62
5.1.30.0060.01111.62
5.1.20.0050.01211.62
5.1.10.0070.01111.62
5.1.00.0030.01211.62
5.0.50.0070.00711.62
5.0.40.0010.01211.62
5.0.30.0040.01211.62
5.0.20.0020.01111.62
5.0.10.0040.01011.62
5.0.00.0020.01511.62
4.4.90.0040.00911.62
4.4.80.0050.00811.62
4.4.70.0030.00811.62
4.4.60.0040.01011.62
4.4.50.0040.00711.62
4.4.40.0010.01511.62
4.4.30.0020.00911.62
4.4.20.0060.00811.62
4.4.10.0030.00711.62
4.4.00.0040.01111.62
4.3.110.0040.00811.62
4.3.100.0020.00811.62
4.3.90.0020.00711.62
4.3.80.0030.01211.62
4.3.70.0010.01011.62
4.3.60.0030.01011.62
4.3.50.0050.00511.62
4.3.40.0020.01211.62
4.3.30.0030.00611.62
4.3.20.0010.00811.62
4.3.10.0020.00711.62
4.3.00.0010.00911.62

preferences:
63.73 ms | 401 KiB | 5 Q