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 = new ryat(); echo(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.0110.00418.68
8.3.50.0110.00721.99
8.3.40.0110.01118.84
8.3.30.0110.00319.23
8.3.20.0140.00020.05
8.3.10.0040.00423.65
8.3.00.0080.00020.77
8.2.180.0040.01818.33
8.2.170.0000.01422.96
8.2.160.0030.01020.38
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00320.84
8.2.110.0070.00322.23
8.2.100.0040.00717.91
8.2.90.0000.00818.23
8.2.80.0060.00318.22
8.2.70.0050.00317.63
8.2.60.0060.00317.50
8.2.50.0030.00517.63
8.2.40.0040.00417.75
8.2.30.0040.00418.25
8.2.20.0040.00417.75
8.2.10.0000.00717.86
8.2.00.0000.00817.73
8.1.280.0060.00825.92
8.1.270.0000.00923.61
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00020.84
8.1.230.0090.00322.69
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0080.00019.25
8.1.160.0000.00721.88
8.1.150.0050.00318.55
8.1.140.0000.00717.31
8.1.130.0030.00317.84
8.1.120.0030.00317.38
8.1.110.0080.00017.26
8.1.100.0000.00817.39
8.1.90.0000.00717.44
8.1.80.0040.00417.28
8.1.70.0000.00717.33
8.1.60.0030.00617.60
8.1.50.0050.00317.49
8.1.40.0040.00417.59
8.1.30.0060.00317.60
8.1.20.0070.00017.66
8.1.10.0040.00417.46
8.1.00.0040.00417.43
8.0.300.0040.00419.85
8.0.290.0030.00616.88
8.0.280.0030.00318.38
8.0.270.0030.00317.17
8.0.260.0040.00417.17
8.0.250.0000.00617.05
8.0.240.0030.00316.88
8.0.230.0040.00316.79
8.0.220.0000.00716.89
8.0.210.0060.00016.77
8.0.200.0030.00316.99
8.0.190.0040.00416.88
8.0.180.0070.00016.80
8.0.170.0040.00416.95
8.0.160.0040.00416.88
8.0.150.0040.00416.86
8.0.140.0040.00416.74
8.0.130.0000.00713.38
8.0.120.0000.00816.74
8.0.110.0040.00416.79
8.0.100.0000.00716.90
8.0.90.0030.00316.77
8.0.80.0120.00916.79
8.0.70.0000.00716.75
8.0.60.0030.00616.88
8.0.50.0040.00416.86
8.0.30.0130.00717.16
8.0.20.0110.00817.40
8.0.10.0030.00516.98
8.0.00.0090.00916.90
7.4.330.0020.00215.00
7.4.320.0060.00016.33
7.4.300.0000.00616.41
7.4.290.0030.00316.50
7.4.280.0030.00316.58
7.4.270.0030.00516.64
7.4.260.0060.00316.60
7.4.250.0030.00316.55
7.4.240.0040.00316.59
7.4.230.0070.00016.68
7.4.220.0120.00616.52
7.4.210.0030.01016.61
7.4.200.0030.00316.42
7.4.190.0000.00716.73
7.4.160.0090.00616.38
7.4.150.0140.00717.40
7.4.140.0100.00717.86
7.4.130.0050.01216.53
7.4.120.0150.00616.54
7.4.110.0140.00916.57
7.4.100.0110.00716.63
7.4.90.0090.01216.55
7.4.80.0060.01619.39
7.4.70.0100.00616.56
7.4.60.0210.00316.49
7.4.50.0040.00416.18
7.4.40.0140.00316.63
7.4.30.0170.00016.68
7.4.00.0070.00714.77
7.3.330.0030.00313.36
7.3.320.0060.00013.11
7.3.310.0000.00816.17
7.3.300.0000.00616.26
7.3.290.0110.00416.32
7.3.280.0050.01216.30
7.3.270.0040.01317.40
7.3.260.0080.00816.62
7.3.250.0020.01416.30
7.3.240.0100.00716.36
7.3.230.0030.01616.39
7.3.210.0100.00716.36
7.3.200.0110.00619.39
7.3.190.0120.00816.30
7.3.180.0120.00316.37
7.3.170.0040.01116.37
7.3.160.0100.00616.46
7.3.120.0040.01214.88
7.3.110.0100.00615.02
7.3.100.0040.00914.91
7.3.90.0060.01015.00
7.3.80.0000.00914.68
7.3.70.0060.00914.86
7.3.60.0050.00814.84
7.3.50.0030.01014.88
7.3.40.0030.01014.70
7.3.30.0070.00714.79
7.3.20.0030.01216.36
7.3.10.0100.00016.66
7.3.00.0000.01016.47
7.2.330.0030.01616.34
7.2.320.0070.01416.63
7.2.310.0110.00516.38
7.2.300.0120.01316.46
7.2.290.0090.01216.42
7.2.240.0030.01314.97
7.2.230.0000.01315.01
7.2.220.0040.00415.13
7.2.210.0030.01315.23
7.2.200.0070.00414.98
7.2.190.0080.00815.12
7.2.180.0000.01314.83
7.2.170.0070.00715.06
7.2.160.0100.00314.95
7.2.150.0100.00616.78
7.2.140.0060.00916.74
7.2.130.0040.01216.90
7.2.120.0100.00716.91
7.2.110.0070.01016.60
7.2.100.0070.01116.82
7.2.90.0080.00416.94
7.2.80.0100.00316.95
7.2.70.0030.01217.02
7.2.60.0000.01316.98
7.2.50.0070.01016.77
7.2.40.0000.01417.00
7.2.30.0060.00916.96
7.2.20.0030.01316.75
7.2.10.0040.01116.96
7.2.00.0070.00818.07
7.1.330.0060.00915.65
7.1.320.0070.00715.77
7.1.310.0040.00815.88
7.1.300.0030.00615.85
7.1.290.0070.00715.57
7.1.280.0040.00715.85
7.1.270.0000.00915.52
7.1.260.0030.01315.50
7.1.250.0030.00815.69
7.1.200.0090.00315.79
7.1.100.0060.00618.37
7.1.70.0040.01116.82
7.1.60.0000.01819.70
7.1.50.0200.01334.76
7.1.00.0130.06722.36
7.0.200.0220.00416.37
7.0.140.0070.07022.18
7.0.100.0130.07020.17
7.0.90.0070.04319.99
7.0.80.0200.03719.86
7.0.70.0000.05019.90
7.0.60.0070.04019.90
7.0.50.0070.07320.29
7.0.40.0130.07020.09
7.0.30.0070.06319.96
7.0.20.0100.07020.00
7.0.10.0100.03320.09
7.0.00.0070.05720.03
5.6.280.0000.07720.82
5.6.250.0030.08020.57
5.6.240.0100.04020.60
5.6.230.0070.07320.66
5.6.220.0000.04320.65
5.6.210.0100.08020.66
5.6.200.0100.08021.12
5.6.190.0130.05721.01
5.6.180.0100.06321.06
5.6.170.0070.03721.05
5.6.160.0030.05721.02
5.6.150.0030.04021.02
5.6.140.0000.08721.16
5.6.130.0100.04721.13
5.6.120.0000.05321.06
5.6.110.0100.06320.95
5.6.100.0170.07721.00
5.6.90.0100.08321.00
5.6.80.0100.07720.47
5.6.70.0100.04720.40
5.6.60.0100.04320.48
5.6.50.0100.08020.32
5.6.40.0070.04320.39
5.6.30.0130.04020.38
5.6.20.0130.05320.38
5.6.10.0000.04320.44
5.6.00.0070.07720.38
5.5.380.0030.06720.34
5.5.370.0100.07720.52
5.5.360.0100.06320.35
5.5.350.0000.09320.45
5.5.340.0070.04020.88
5.5.330.0030.08020.89
5.5.320.0000.07720.78
5.5.310.0070.08020.64
5.5.300.0100.04020.93
5.5.290.0000.08020.73
5.5.280.0070.04720.79
5.5.270.0170.07020.62
5.5.260.0030.08320.86
5.5.250.0070.07020.73
5.5.240.0030.05020.26
5.5.230.0170.04320.16
5.5.220.0030.04320.11
5.5.210.0070.03720.16
5.5.200.0070.04720.13
5.5.190.0070.04020.26
5.5.180.0070.08020.08
5.5.160.0070.07020.26
5.5.150.0070.07720.14
5.5.140.0100.06320.26
5.5.130.0030.07720.21
5.5.120.0030.06720.12
5.5.110.0170.03020.21
5.5.100.0070.03720.06
5.5.90.0070.03719.95
5.5.80.0100.07720.06
5.5.70.0000.08720.15
5.5.60.0100.07020.09
5.5.50.0070.06020.17
5.5.40.0070.07720.12
5.5.30.0130.06720.05
5.5.20.0030.07020.15
5.5.10.0170.05319.96
5.5.00.0070.07020.03
5.4.450.0000.04319.36
5.4.440.0070.07019.36
5.4.430.0070.06319.46
5.4.420.0000.05019.46
5.4.410.0100.07319.09
5.4.400.0200.06719.23
5.4.390.0070.07018.90
5.4.380.0070.07319.13
5.4.370.0070.04019.03
5.4.360.0070.07318.85
5.4.350.0030.04019.03
5.4.340.0030.04718.88
5.4.320.0030.06719.09
5.4.310.0000.04719.03
5.4.300.0000.06019.05
5.4.290.0030.03719.16
5.4.280.0030.08019.02
5.4.270.0030.08019.20
5.4.260.0030.05318.85
5.4.250.0000.04019.11
5.4.240.0100.06318.94
5.4.230.0070.07019.04
5.4.220.0000.05719.17
5.4.210.0030.03719.15
5.4.200.0030.07719.04
5.4.190.0070.07319.13
5.4.180.0030.03719.17
5.4.170.0000.05719.17
5.4.160.0070.07318.89
5.4.150.0000.07719.01
5.4.140.0200.06016.52
5.4.130.0000.08016.47
5.4.120.0100.04316.38
5.4.110.0130.04316.41
5.4.100.0070.07316.49
5.4.90.0000.04716.53
5.4.80.0000.08016.30
5.4.70.0030.07316.51
5.4.60.0030.04316.32
5.4.50.0070.04316.46
5.4.40.0100.07016.52
5.4.30.0070.06716.40
5.4.20.0100.06716.31
5.4.10.0030.06316.36
5.4.00.0070.04015.64
5.3.290.0030.03714.75
5.3.280.0030.06314.58
5.3.270.0100.07014.55
5.3.260.0030.07714.62
5.3.250.0030.05314.74
5.3.240.0000.06014.66
5.3.230.0100.05314.53
5.3.220.0070.07714.66
5.3.210.0170.06014.56
5.3.200.0130.07014.54
5.3.190.0030.08014.57
5.3.180.0100.06714.62
5.3.170.0100.07314.67
5.3.160.0000.05014.58
5.3.150.0000.04714.57
5.3.140.0070.07714.68
5.3.130.0130.07314.62
5.3.120.0070.07714.48
5.3.110.0130.07014.62
5.3.100.0070.06014.07
5.3.90.0070.05713.99
5.3.80.0070.06714.02
5.3.70.0130.04014.16
5.3.60.0100.06714.12
5.3.50.0100.05013.85
5.3.40.0030.06313.87
5.3.30.0130.04014.03
5.3.20.0100.04313.66
5.3.10.0070.04713.56
5.3.00.0170.04713.65

preferences:
53.11 ms | 401 KiB | 5 Q