3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _unserialize($val) { if($result = ($val == serialize(false)) || ($result = @unserialize($val) == true)) { return $result; } return false; } var_dump(_unserialize('s:6:"foobar";')); var_dump(_unserialize('foobar')); var_dump(_unserialize('b:0;')); var_dump(serialize(false));

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.0040.01118.40
8.3.50.0080.01022.03
8.3.40.0070.00718.97
8.3.30.0070.00719.17
8.3.20.0050.00320.21
8.3.10.0000.00820.52
8.3.00.0070.00318.95
8.2.180.0160.00616.75
8.2.170.0140.00722.96
8.2.160.0090.00620.47
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00817.50
8.2.110.0080.00419.17
8.2.100.0040.00817.84
8.2.90.0000.00819.22
8.2.80.0030.00617.97
8.2.70.0070.00717.13
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0030.00518.21
8.2.30.0070.00019.34
8.2.20.0070.00017.60
8.2.10.0070.00018.08
8.2.00.0000.00817.77
8.1.280.0040.01425.92
8.1.270.0000.00823.79
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00320.66
8.1.230.0040.00820.97
8.1.220.0060.00318.77
8.1.210.0050.00319.13
8.1.200.0000.00917.23
8.1.190.0000.00817.51
8.1.180.0050.00318.10
8.1.170.0000.00818.71
8.1.160.0080.00018.91
8.1.150.0000.00718.93
8.1.140.0020.00517.52
8.1.130.0000.00817.83
8.1.120.0000.00817.53
8.1.110.0040.00417.53
8.1.100.0080.00017.43
8.1.90.0030.00317.48
8.1.80.0040.00417.49
8.1.70.0070.00017.37
8.1.60.0000.00817.61
8.1.50.0040.00417.43
8.1.40.0040.00417.48
8.1.30.0060.00317.60
8.1.20.0000.00817.62
8.1.10.0040.00417.49
8.1.00.0020.00517.45
8.0.300.0070.00019.97
8.0.290.0000.00717.18
8.0.280.0040.00418.46
8.0.270.0000.00717.19
8.0.260.0080.00017.19
8.0.250.0070.00017.04
8.0.240.0040.00417.06
8.0.230.0040.00417.02
8.0.220.0030.00316.93
8.0.210.0040.00416.97
8.0.200.0040.00416.97
8.0.190.0080.00317.05
8.0.180.0000.00716.89
8.0.170.0030.00517.00
8.0.160.0000.00817.09
8.0.150.0000.00817.00
8.0.140.0050.00316.95
8.0.130.0050.00013.36
8.0.120.0000.00816.83
8.0.110.0040.00416.99
8.0.100.0000.00716.92
8.0.90.0070.00016.88
8.0.80.0030.01716.93
8.0.70.0040.00416.76
8.0.60.0080.00016.96
8.0.50.0040.00417.02
8.0.30.0120.01117.22
8.0.20.0100.00917.40
8.0.10.0040.00417.01
8.0.00.0090.01116.76
7.4.330.0000.00715.15
7.4.320.0060.00016.51
7.4.300.0030.00316.66
7.4.290.0030.00316.52
7.4.280.0000.00916.47
7.4.270.0070.00016.43
7.4.260.0050.00216.61
7.4.250.0000.00716.59
7.4.240.0050.00216.54
7.4.230.0070.00016.52
7.4.220.0140.01216.67
7.4.210.0060.00916.65
7.4.200.0000.00816.43
7.4.160.0120.00816.57
7.4.150.0180.00317.40
7.4.140.0120.00617.86
7.4.130.0070.01016.66
7.4.120.0070.01016.58
7.4.110.0160.00616.56
7.4.100.0060.01016.47
7.4.90.0140.00316.59
7.4.80.0150.00619.39
7.4.70.0090.00916.34
7.4.60.0080.00816.54
7.4.50.0000.00916.53
7.4.40.0190.00516.29
7.4.30.0100.01016.56
7.4.00.0090.00814.91
7.3.330.0050.00213.24
7.3.320.0000.00613.17
7.3.310.0040.00416.26
7.3.300.0000.00716.26
7.3.290.0050.01216.39
7.3.280.0060.01016.34
7.3.270.0100.01017.40
7.3.260.0100.01116.37
7.3.250.0070.01316.58
7.3.240.0130.00316.45
7.3.230.0100.00716.39
7.3.210.0100.00616.34
7.3.200.0090.01219.39
7.3.190.0060.01216.48
7.3.180.0080.00816.47
7.3.170.0110.00616.46
7.3.160.0100.00516.48
7.3.120.0130.00614.87
7.3.110.0120.00614.81
7.3.100.0000.01314.75
7.3.90.0060.00315.05
7.3.80.0060.00314.84
7.3.70.0090.00314.93
7.3.60.0070.00314.81
7.3.50.0080.00314.84
7.3.40.0060.00615.00
7.3.30.0090.00314.61
7.3.20.0070.00416.75
7.3.10.0040.00816.80
7.3.00.0030.01016.79
7.2.330.0030.01516.31
7.2.320.0130.00316.39
7.2.310.0100.00716.63
7.2.300.0000.02116.74
7.2.290.0110.00616.50
7.2.250.0080.01114.93
7.2.240.0090.00914.97
7.2.230.0040.01114.72
7.2.220.0080.00814.57
7.2.210.0000.01015.03
7.2.200.0030.01314.70
7.2.190.0000.01314.82
7.2.180.0070.00715.03
7.2.170.0030.00814.83
7.2.60.0030.00816.77
7.2.00.0000.01119.18
7.1.330.0030.01015.95
7.1.320.0130.00015.67
7.1.310.0030.01015.73
7.1.300.0040.00415.82
7.1.290.0040.01115.79
7.1.280.0070.00415.94
7.1.270.0000.01415.64
7.1.260.0060.01015.70
7.1.200.0120.00015.60
7.1.100.0000.01118.23
7.1.70.0000.00717.29
7.1.60.0000.02419.34
7.1.50.0030.01716.57
7.1.00.0030.07722.57
7.0.200.0000.00716.47
7.0.140.0100.06321.93
7.0.60.0100.08020.07
7.0.50.0070.08317.89
7.0.40.0070.05320.21
7.0.30.0200.04020.09
7.0.20.0300.08320.06
7.0.10.0330.08020.10
7.0.00.0070.04020.32
5.6.280.0100.06321.09
5.6.210.0100.06020.71
5.6.200.0070.04018.29
5.6.190.0100.05320.48
5.6.180.0070.06320.33
5.6.170.0430.05320.47
5.6.160.0000.04320.49
5.6.150.0070.08018.19
5.6.140.0070.05018.19
5.6.130.0070.05318.15
5.6.120.0100.03721.12
5.6.110.0130.09321.00
5.6.100.0170.07321.09
5.6.90.0070.04321.04
5.6.80.0070.05320.54
5.5.350.0070.08320.41
5.5.340.0000.04717.95
5.5.330.0070.04020.40
5.5.320.0400.05320.36
5.5.310.0100.06020.21
5.5.300.0070.05317.95
5.5.290.0100.06017.95
5.5.280.0130.07720.98
5.5.270.0100.06720.84
5.5.260.0100.08020.75
5.5.250.0100.03320.55
5.5.240.0100.07720.23
5.4.450.0770.03719.64
5.4.440.0670.04319.57
5.4.430.0370.05319.19
5.4.420.0070.06019.53
5.4.410.0200.05319.05
5.4.400.0130.05018.63
5.4.390.0230.04718.77
5.4.380.0100.05318.59
5.4.370.0170.04718.50
5.4.360.0130.04718.80
5.4.350.0200.03014.02
5.4.340.0170.04013.72
5.4.320.0130.03714.42
5.4.310.0070.04314.27
5.4.300.0100.04014.28
5.4.290.0100.04714.21
5.4.280.0100.05714.18
5.4.270.0130.04314.16
5.4.260.0170.04714.15
5.4.250.0200.03714.17
5.4.240.0200.03314.28
5.4.230.0170.04314.18
5.4.220.0200.04014.30
5.4.210.0230.04014.18
5.4.200.0200.04014.08
5.4.190.0200.04014.13
5.4.180.0170.04014.15
5.4.170.0170.03714.16
5.4.160.0200.03714.14
5.4.150.0070.04714.16
5.4.140.0270.03713.99
5.4.130.0130.05013.86
5.4.120.0230.03013.89
5.4.110.0170.03713.71
5.4.100.0130.04013.75
5.4.90.0130.04013.89
5.4.80.0230.02713.84
5.4.70.0130.04713.85
5.4.60.0230.03313.89
5.4.50.0170.03713.70
5.4.40.0170.03313.79
5.4.30.0200.03313.78
5.4.20.0230.03713.82
5.4.10.0130.04013.75
5.4.00.0130.03713.32
5.3.290.0230.03714.71
5.3.280.0100.05014.53
5.3.270.0270.04014.74
5.3.260.0300.04014.70
5.3.250.0170.03714.74
5.3.240.0230.04014.67
5.3.230.0270.03014.73
5.3.220.0230.03014.70
5.3.210.0200.03314.59
5.3.200.0270.03714.61
5.3.190.0170.04014.56
5.3.180.0170.04314.71
5.3.170.0100.05314.66
5.3.160.0230.03314.49
5.3.150.0200.03314.69
5.3.140.0270.04014.69
5.3.130.0270.03314.73
5.3.120.0130.04014.52
5.3.110.0200.03314.73
5.3.100.0170.03714.17
5.3.90.0130.03714.18
5.3.80.0100.04014.05
5.3.70.0270.03314.06
5.3.60.0130.04313.94
5.3.50.0200.04013.98
5.3.40.0130.03714.07
5.3.30.0200.03713.89
5.3.20.0170.04313.70
5.3.10.0130.03713.61
5.3.00.0070.04313.62
5.2.170.0070.03711.20
5.2.160.0200.02311.19
5.2.150.0170.02711.27
5.2.140.0130.03711.30
5.2.130.0070.03311.23
5.2.120.0070.03711.22
5.2.110.0030.03311.25
5.2.100.0030.03311.08
5.2.90.0000.03311.18
5.2.80.0030.03311.02
5.2.70.0070.03011.09
5.2.60.0000.03311.20
5.2.50.0070.02711.06
5.2.40.0070.02710.97
5.2.30.0100.02311.13
5.2.20.0100.02711.02
5.2.10.0070.03010.84
5.2.00.0030.03310.90
5.1.60.0070.02710.07
5.1.50.0030.0309.89
5.1.40.0070.0279.94
5.1.30.0070.02710.38
5.1.20.0100.02710.35
5.1.10.0030.03010.20
5.1.00.0100.02310.20
5.0.50.0000.0278.51
5.0.40.0070.0208.39
5.0.30.0070.0308.18
5.0.20.0070.0208.17
5.0.10.0030.0238.30
5.0.00.0070.0308.24
4.4.90.0070.0135.87
4.4.80.0000.0205.91
4.4.70.0070.0135.83
4.4.60.0030.0175.83
4.4.50.0070.0135.84
4.4.40.0070.0235.86
4.4.30.0030.0175.87
4.4.20.0000.0205.89
4.4.10.0030.0175.91
4.4.00.0070.0235.88
4.3.110.0030.0175.78
4.3.100.0000.0205.93
4.3.90.0030.0135.82
4.3.80.0030.0235.77
4.3.70.0000.0175.82
4.3.60.0030.0175.74
4.3.50.0030.0175.81
4.3.40.0070.0205.78
4.3.30.0100.0134.49
4.3.20.0000.0174.57
4.3.10.0030.0134.50
4.3.00.0070.01716.37

preferences:
58.98 ms | 401 KiB | 5 Q