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:11:\"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.1rc30.0040.00416.75
8.1rc20.0040.00416.82
8.1rc10.0040.00416.74
8.0.120.0000.00816.77
8.0.110.0040.00416.89
8.0.100.0000.00716.93
8.0.90.0040.00416.88
8.0.80.0030.01416.89
8.0.70.0000.00716.75
8.0.60.0000.00716.75
8.0.50.0040.00416.93
8.0.30.0060.01016.94
8.0.20.0050.01417.40
8.0.10.0000.00717.03
8.0.00.0140.01116.60
7.4.250.0040.00416.49
7.4.240.0020.00616.52
7.4.230.0040.00416.61
7.4.220.0100.01016.51
7.4.210.0130.00716.54
7.4.200.0070.00016.42
7.4.160.0060.01016.34
7.4.150.0100.00717.40
7.4.140.0110.01117.86
7.4.130.0100.01116.39
7.4.120.0120.00816.53
7.4.110.0130.00416.41
7.4.100.0160.00616.23
7.4.90.0100.00716.30
7.4.80.0150.00319.39
7.4.70.0180.00016.48
7.4.60.0090.00616.42
7.4.50.0000.00816.30
7.4.40.0100.00616.45
7.4.30.0050.01416.58
7.4.10.0040.01414.97
7.4.00.0060.00914.96
7.3.320.0020.00213.02
7.3.310.0000.00716.20
7.3.300.0030.00316.20
7.3.290.0090.00816.21
7.3.280.0070.01016.20
7.3.270.0030.01617.40
7.3.260.0080.00816.30
7.3.250.0090.00916.40
7.3.240.0060.01116.21
7.3.230.0140.00816.39
7.3.210.0120.00616.41
7.3.200.0090.00616.18
7.3.190.0070.01016.32
7.3.180.0140.00916.27
7.3.170.0090.00616.35
7.3.160.0120.01216.22
7.3.130.0070.01114.73
7.3.120.0130.00614.63
7.3.110.0060.01114.87
7.3.100.0050.01014.58
7.3.90.0060.00914.80
7.3.80.0030.01014.63
7.3.70.0010.00714.63
7.3.60.0070.00914.72
7.3.50.0070.00814.69
7.3.40.0070.00714.72
7.3.30.0090.00514.67
7.3.20.0100.00715.59
7.3.10.0390.00715.54
7.3.00.0490.00915.65
7.2.330.0090.00916.59
7.2.320.0080.01116.68
7.2.310.0090.00916.57
7.2.300.0070.01016.66
7.2.290.0100.00716.23
7.2.260.0130.00915.12
7.2.250.0070.01014.84
7.2.240.0110.00714.96
7.2.230.0080.00614.83
7.2.220.0030.01615.04
7.2.210.0020.01114.93
7.2.200.0100.00114.89
7.2.190.0090.00914.82
7.2.180.0060.00914.94
7.2.170.0080.00914.86
7.2.160.0080.00614.82
7.2.150.0260.00415.54
7.2.140.0650.00815.62
7.2.130.0410.00715.56
7.2.120.0280.00415.47
7.2.110.0350.00815.49
7.2.100.0590.00815.49
7.2.90.0100.01115.56
7.2.80.0480.00515.48
7.2.70.0490.00815.66
7.2.60.0410.01015.74
7.2.50.0430.00815.53
7.2.40.0480.00615.59
7.2.30.0390.00315.59
7.2.20.0360.00715.50
7.2.10.0580.00515.49
7.2.00.0370.01016.52
7.1.330.0020.01015.70
7.1.320.0060.00615.60
7.1.310.0040.00715.62
7.1.300.0020.01315.62
7.1.290.0060.00815.64
7.1.280.0020.01415.03
7.1.270.0120.00715.18
7.1.260.0110.00215.11
7.1.250.0120.01014.53
7.1.240.0170.00614.50
7.1.230.0890.00114.53
7.1.220.0140.00814.45
7.1.210.0160.00914.57
7.1.200.0510.00614.81
7.1.190.0560.00614.49
7.1.180.0480.00714.46
7.1.170.0630.00814.45
7.1.160.0450.00314.56
7.1.150.0400.00614.53
7.1.140.0430.00814.47
7.1.130.0330.01114.47
7.1.120.0580.00714.48
7.1.110.0420.00914.54
7.1.100.0310.01015.42
7.1.90.0420.00614.43
7.1.80.0530.01014.44
7.1.70.0280.00715.17
7.1.60.0340.00915.84
7.1.50.0350.00715.04
7.1.40.0320.00914.31
7.1.30.0330.00614.59
7.1.20.0400.00814.60
7.1.10.0400.00814.53
7.1.00.0240.02616.44
7.0.330.0610.01013.53
7.0.320.1020.00213.54
7.0.310.0900.01113.49
7.0.300.1000.00913.47
7.0.290.0590.00413.46
7.0.280.0780.00713.48
7.0.270.0700.01813.45
7.0.260.0790.01013.41
7.0.250.0600.00213.46
7.0.240.0630.01113.57
7.0.230.0570.00813.49
7.0.220.0590.01013.54
7.0.210.0470.01213.65
7.0.200.0710.00713.80
7.0.190.0620.01013.48
7.0.180.0510.01313.45
7.0.170.1870.00613.48
7.0.160.0500.00713.41
7.0.150.0410.00813.61
7.0.140.0490.00713.39
7.0.130.0530.01213.56
7.0.120.0450.00613.54
7.0.110.0440.00813.51
7.0.100.0540.00913.40
7.0.90.0550.00313.43
7.0.80.0490.00713.31
7.0.70.0250.03016.23
7.0.60.0290.03216.14
7.0.50.0250.02816.33
7.0.40.0270.03215.81
7.0.30.0300.02915.68
7.0.20.0230.03615.69
7.0.10.0270.03315.73
7.0.00.0270.02615.77
5.6.400.0190.00914.26
5.6.390.0170.01314.50
5.6.380.0110.00714.26
5.6.370.0180.01014.15
5.6.360.0130.00814.40
5.6.350.0200.00814.33
5.6.340.0140.01214.01
5.6.330.0110.02014.44
5.6.320.0110.00814.17
5.6.310.0180.01014.30
5.6.300.0180.00214.06
5.6.290.0110.01514.37
5.6.280.0120.03416.53
5.6.270.0170.00614.34
5.6.260.0150.00814.19
5.6.250.0150.00514.31
5.6.240.0140.01014.26
5.6.230.0170.00313.89
5.6.220.0130.03516.29
5.6.210.0140.03416.30
5.6.200.0110.03416.34
5.6.190.0130.02216.55
5.6.180.0130.02716.47
5.6.170.0090.02716.52
5.6.160.0090.02816.49
5.6.150.0120.03016.43
5.6.140.0150.03516.55
5.6.130.0140.02416.55
5.6.120.0120.03416.47
5.6.110.0140.03416.48
5.6.100.0060.03416.34
5.6.90.0140.03116.55
5.6.80.0110.01916.23
5.6.70.0110.02116.29
5.6.60.0160.03516.22
5.6.50.0070.03716.21
5.6.40.0090.03216.27
5.6.30.0080.03316.13
5.6.20.0110.02916.13
5.6.10.0130.03616.21
5.6.00.0160.02916.20
5.5.380.0180.00912.43
5.5.370.0120.00912.37
5.5.360.0070.02615.03
5.5.350.0080.02515.14
5.5.340.0120.02615.14
5.5.330.0120.02115.39
5.5.320.0110.02515.17
5.5.310.0130.02715.37
5.5.300.0090.02515.32
5.5.290.0090.02315.30
5.5.280.0130.03115.12
5.5.270.0090.03415.34
5.5.260.0120.03015.30
5.5.250.0120.02215.23
5.5.240.0130.02714.93
5.5.230.0080.02214.94
5.5.220.0130.02714.99
5.5.210.0110.03415.05
5.5.200.0060.03314.94
5.5.190.0100.03114.83
5.5.180.0060.03315.01
5.5.170.0210.00512.43
5.5.160.0080.02615.07
5.5.150.0080.03115.04
5.5.140.0090.03514.91
5.5.130.0090.02214.94
5.5.120.0100.03015.10
5.5.110.0120.02714.88
5.5.100.0090.02814.88
5.5.90.0090.03114.85
5.5.80.0030.02614.94
5.5.70.0070.03414.98
5.5.60.0150.02715.02
5.5.50.0100.03314.92
5.5.40.0110.03214.93
5.5.30.0120.02914.88
5.5.20.0110.03115.04
5.5.10.0050.03214.72
5.5.00.0100.03014.99
5.4.450.0080.01914.06
5.4.440.0120.03014.00
5.4.430.0060.03314.04
5.4.420.0110.02914.06
5.4.410.0050.03314.10
5.4.400.0090.03013.86
5.4.390.0080.02813.93
5.4.380.0090.02513.82
5.4.370.0050.03113.83
5.4.360.0080.03313.84
5.4.350.0080.03013.83
5.4.340.0120.02013.90
5.4.330.0120.00411.27
5.4.320.0090.02913.84
5.4.310.0090.03213.89
5.4.300.0100.03013.93
5.4.290.0060.03113.79
5.4.280.0110.02713.87
5.4.270.0130.02813.94
5.4.260.0060.03013.99
5.4.250.0140.02513.67
5.4.240.0060.03213.97
5.4.230.0110.02613.85
5.4.220.0040.03113.80
5.4.210.0120.02213.90
5.4.200.0080.02813.81
5.4.190.0060.03013.78
5.4.180.0100.02813.95
5.4.170.0070.02213.85
5.4.160.0100.02913.87
5.4.150.0120.02513.84
5.4.140.0070.02312.98
5.4.130.0110.02813.07
5.4.120.0100.02812.96
5.4.110.0100.02213.12
5.4.100.0080.01712.99
5.4.90.0070.02712.94
5.4.80.0100.02412.97
5.4.70.0110.01312.91
5.4.60.0150.01613.03
5.4.50.0100.02912.98
5.4.40.0040.03213.08
5.4.30.0090.02313.01
5.4.20.0090.01812.90
5.4.10.0100.01813.02
5.4.00.0070.02412.69

preferences:
32.53 ms | 455 KiB | 5 Q