3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_unserialize($data) { $array = unserialize($data); if(!is_array($array)) { $array = array(); } return $array; } class ryat { function __destruct() { phpinfo(); } } $str = 'O:4:"ryat":0:{}'; my_serialize($str);

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.0150.00716.60
8.3.50.0100.00517.39
8.3.40.0090.00618.72
8.3.30.0060.00918.83
8.3.20.0080.00018.82
8.3.10.0050.00318.87
8.3.00.0100.00019.51
8.2.180.0000.01516.85
8.2.170.0180.00322.96
8.2.160.0100.00618.79
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0040.00719.14
8.2.100.0080.00417.84
8.2.90.0000.00817.91
8.2.80.0080.00017.97
8.2.70.0070.00417.93
8.2.60.0050.00317.97
8.2.50.0060.00318.10
8.2.40.0090.00021.16
8.2.30.0000.00719.18
8.2.20.0000.00917.49
8.2.10.0040.00417.67
8.2.00.0000.00817.59
8.1.280.0070.01125.92
8.1.270.0070.00723.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.84
8.1.230.0000.01122.74
8.1.220.0040.00417.79
8.1.210.0000.00820.12
8.1.200.0040.00417.23
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0030.00518.57
8.1.160.0000.00719.06
8.1.150.0050.00218.56
8.1.140.0080.00017.43
8.1.130.0000.00717.29
8.1.120.0040.00417.30
8.1.110.0050.00317.28
8.1.100.0030.00417.35
8.1.90.0040.00417.45
8.1.80.0030.00517.28
8.1.70.0070.00017.39
8.1.60.0030.00517.53
8.1.50.0040.00417.43
8.1.40.0000.00917.39
8.1.30.0060.00317.50
8.1.20.0050.00517.53
8.1.10.0040.00417.58
8.1.00.0000.00817.50
8.0.300.0040.00419.91
8.0.290.0060.00316.63
8.0.280.0040.00418.33
8.0.270.0030.00317.17
8.0.260.0000.00616.76
8.0.250.0000.00716.99
8.0.240.0000.00816.90
8.0.230.0070.00016.87
8.0.220.0000.00716.79
8.0.210.0040.00416.93
8.0.200.0030.00316.98
8.0.190.0080.00016.78
8.0.180.0030.00316.79
8.0.170.0000.00816.97
8.0.160.0050.00217.00
8.0.150.0030.00516.87
8.0.140.0080.00316.86
8.0.130.0030.00613.30
8.0.120.0060.00316.85
8.0.110.0080.00016.88
8.0.100.0050.00316.84
8.0.90.0000.00716.66
8.0.80.0120.00316.86
8.0.70.0050.00216.88
8.0.60.0000.00816.69
8.0.50.0030.00516.85
8.0.30.0040.01116.92
8.0.20.0130.00717.20
8.0.10.0040.00416.91
8.0.00.0100.00816.87
7.4.330.0030.00312.95
7.4.320.0060.00016.35
7.4.300.0000.00616.50
7.4.290.0000.00616.49
7.4.280.0050.00216.61
7.4.270.0050.00216.48
7.4.260.0000.00513.19
7.4.250.0030.00616.63
7.4.240.0000.00716.61
7.4.230.0030.00316.58
7.4.220.0130.00716.69
7.4.210.0100.01016.54
7.4.200.0030.00316.30
7.4.190.0000.00916.64
7.4.160.0100.00616.34
7.4.150.0130.00716.68
7.4.140.0100.01317.86
7.4.130.0110.01216.50
7.4.120.0070.01016.29
7.4.110.0160.00616.54
7.4.100.0040.01216.41
7.4.90.0070.01016.42
7.4.80.0070.01019.39
7.4.70.0090.00916.57
7.4.60.0140.00316.54
7.4.50.0000.00516.13
7.4.40.0030.01016.59
7.4.30.0180.00316.47
7.4.00.0000.01614.73
7.3.330.0000.00713.30
7.3.320.0050.00013.13
7.3.310.0030.00316.32
7.3.300.0050.00516.16
7.3.290.0070.00716.29
7.3.280.0000.01416.36
7.3.270.0140.00416.29
7.3.260.0060.01116.39
7.3.240.0100.00716.25
7.3.230.0050.01116.54
7.3.210.0170.00416.45
7.3.200.0130.00316.56
7.3.190.0090.00816.56
7.3.180.0100.00616.45
7.3.170.0030.01316.44
7.3.160.0100.00616.49
7.3.120.0000.01614.96
7.3.110.0100.00314.63
7.3.100.0080.00314.52
7.3.90.0110.00414.81
7.3.80.0060.01014.76
7.3.70.0100.00314.78
7.3.60.0060.01214.82
7.3.50.0030.01414.82
7.3.40.0110.00414.87
7.3.30.0000.01114.57
7.3.20.0030.00716.75
7.3.10.0030.01216.53
7.3.00.0030.00916.68
7.2.330.0070.01016.50
7.2.320.0030.01316.25
7.2.310.0070.01016.56
7.2.300.0080.00816.41
7.2.290.0120.00616.59
7.2.240.0040.01414.86
7.2.230.0040.00814.95
7.2.220.0030.01314.51
7.2.210.0070.01015.02
7.2.200.0070.00314.96
7.2.190.0060.00914.86
7.2.180.0120.00614.91
7.2.170.0070.00714.68
7.2.160.0040.01114.95
7.2.150.0060.01016.83
7.2.140.0000.01116.59
7.2.130.0040.01116.82
7.2.120.0060.00916.54
7.2.110.0130.00016.66
7.2.100.0030.01316.62
7.2.90.0090.00616.84
7.2.80.0040.01116.94
7.2.70.0040.01216.81
7.2.60.0460.00915.76
7.2.50.0090.00616.95
7.2.40.0040.01116.63
7.2.30.0090.00616.93
7.2.20.0030.00716.55
7.2.10.0140.00016.85
7.2.00.0030.00817.91
7.1.330.0070.01015.77
7.1.320.0090.00615.59
7.1.310.0030.01015.57
7.1.300.0030.01015.68
7.1.290.0070.00715.71
7.1.280.0060.00315.56
7.1.270.0030.01315.62
7.1.260.0000.01615.70
7.1.250.0060.00915.65
7.1.200.0030.00615.70
7.1.100.0060.00617.93
7.1.70.0080.00017.11
7.1.60.0090.01619.25
7.1.50.0130.01316.89
7.1.00.0000.04022.28
7.0.200.0190.00416.61
7.0.140.0030.07322.18
7.0.120.0070.07022.18
7.0.60.0100.08320.04
7.0.50.0070.08017.96
7.0.40.0070.04020.30
7.0.30.0170.05020.34
7.0.20.0230.07020.19
7.0.10.0230.03320.09
7.0.00.0100.08320.15
5.6.210.0100.06720.48
5.6.200.0170.03318.25
5.6.190.0100.05320.48
5.6.180.0270.03320.30
5.6.170.0200.05320.40
5.6.160.0100.04020.61
5.6.150.0100.04018.28
5.6.140.0000.04718.11
5.6.130.0170.07018.12
5.6.120.0070.03721.02
5.6.110.0130.05321.00
5.6.100.0030.04721.14
5.6.90.0100.08021.00
5.6.80.0070.08320.36
5.6.70.3530.03720.42
5.5.350.0200.05020.34
5.5.340.0070.05318.04
5.5.330.0030.05320.47
5.5.320.0200.04720.15
5.5.310.0270.08020.34
5.5.300.0030.08017.95
5.5.290.0100.04717.94
5.5.280.0130.08020.77
5.5.270.0070.07020.95
5.5.260.0070.08020.80
5.5.250.0070.04020.62
5.5.240.0070.04320.13
5.4.450.0100.05019.49
5.4.440.0030.07019.47
5.4.430.0000.05019.56
5.4.420.0070.05319.52
5.4.410.0100.07719.34
5.4.400.0030.03719.15
5.4.390.0030.04719.15
5.4.380.0000.07319.24
5.4.370.0130.05318.85
5.4.360.0130.07319.24
5.4.350.0070.08019.12
5.4.340.0070.05319.14
5.4.320.0070.04019.12
5.4.310.0070.07718.86
5.4.300.0070.03718.98
5.4.290.0100.06319.26
5.4.280.0030.06318.99
5.4.270.0030.07718.87
5.4.260.0100.05719.24
5.4.250.0130.05019.19
5.4.240.0100.07019.14
5.4.230.0100.07018.85
5.4.220.0100.03718.84
5.4.210.0070.04019.00
5.4.200.0000.04319.13
5.4.190.0070.06719.00
5.4.180.0070.05018.93
5.4.170.0100.03718.91
5.4.160.0000.04319.09
5.4.150.0170.06018.85
5.4.140.0030.05016.46
5.4.130.0030.06716.45
5.4.120.0030.04716.30
5.4.110.0100.07016.46
5.4.100.0070.07716.43
5.4.90.0030.06016.52
5.4.80.0100.06716.33
5.4.70.0000.08016.31
5.4.60.0030.07016.43
5.4.50.0100.07316.40
5.4.40.0070.05316.43
5.4.30.0100.06316.39
5.4.20.0100.04316.38
5.4.10.0130.04016.64
5.4.00.0000.06715.82
5.3.290.0130.07014.72
5.3.280.0100.04014.75
5.3.270.0170.07014.66
5.3.260.0030.08314.63
5.3.250.0070.07314.66
5.3.240.0100.07014.62
5.3.230.0100.07714.50
5.3.220.0130.07314.57
5.3.210.0030.06714.62
5.3.200.0070.06314.61
5.3.190.0000.06714.56
5.3.180.0030.08014.57
5.3.170.0170.06714.56
5.3.160.0070.07314.61
5.3.150.0070.07314.59
5.3.140.0130.04314.57
5.3.130.0100.04714.62
5.3.120.0100.07714.69
5.3.110.0070.08014.59
5.3.100.0000.07014.09
5.3.90.0070.04314.07
5.3.80.0130.03713.99
5.3.70.0070.04714.05
5.3.60.0130.05714.06
5.3.50.0000.04313.87
5.3.40.0130.06713.98
5.3.30.0070.04313.93
5.3.20.0100.04713.73
5.3.10.0030.06313.62
5.3.00.0070.07713.67
5.2.170.0100.03011.14
5.2.160.0000.05311.18
5.2.150.0070.03311.04
5.2.140.0000.03711.15
5.2.130.0000.03711.12
5.2.120.0070.04011.16
5.2.110.0100.05011.16
5.2.100.0030.04011.02
5.2.90.0030.06711.10
5.2.80.0100.04011.11
5.2.70.0100.05311.15
5.2.60.0070.05311.20
5.2.50.0070.06011.05
5.2.40.0130.05711.01
5.2.30.0000.04011.03
5.2.20.0030.04711.02
5.2.10.0000.06310.89
5.2.00.0030.05710.77
5.1.60.0000.0439.96
5.1.50.0000.0539.90
5.1.40.0000.0409.89
5.1.30.0070.05710.35
5.1.20.0130.05010.32
5.1.10.0030.06010.21
5.1.00.0000.0639.98
5.0.50.0100.0338.53
5.0.40.0070.0238.39
5.0.30.0000.0708.27
5.0.20.0000.0308.22
5.0.10.0000.0238.33
5.0.00.0000.0338.16
4.4.90.0000.0377.96
4.4.80.0000.0437.96
4.4.70.0100.0277.96
4.4.60.0000.0377.96
4.4.50.0070.0337.96
4.4.40.0000.0577.96
4.4.30.0000.0207.96
4.4.20.0000.0377.96
4.4.10.0100.0277.96
4.4.00.0070.0307.96
4.3.110.0000.0237.96
4.3.100.0000.0177.96
4.3.90.0000.0207.96
4.3.80.0030.0237.96
4.3.70.0030.0137.96
4.3.60.0000.0337.96
4.3.50.0000.0277.96
4.3.40.0000.0377.96
4.3.30.0000.0207.96
4.3.20.0000.0207.96
4.3.10.0000.0377.96
4.3.00.0030.0277.96

preferences:
44.81 ms | 401 KiB | 5 Q