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; } $ryat = ''; class ryat { function __construct($array) { foreach($array as $key => $val) { $array[$key] = $val; var_dump($arry); } } } $a = new ryat($GLOBALS = array('ryat'=>'ryat')); $str = 'O:4:"ryat":0:{}'; echo $ryat; echo(serialize($a));

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.70.0100.01016.38
8.3.60.0070.01016.38
8.3.50.0100.00717.23
8.3.40.0000.01518.64
8.3.30.0100.00318.71
8.3.20.0050.00318.59
8.3.10.0000.00818.57
8.3.00.0040.00419.26
8.2.180.0070.01416.38
8.2.170.0090.01222.96
8.2.160.0090.00618.80
8.2.150.0100.01024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0040.00422.20
8.2.100.0070.00417.59
8.2.90.0070.00317.38
8.2.80.0060.00318.57
8.2.70.0030.00517.38
8.2.60.0080.00017.80
8.2.50.0030.00618.07
8.2.40.0040.00419.22
8.2.30.0080.00317.48
8.2.20.0050.00517.48
8.2.10.0000.00717.54
8.2.00.0000.00717.44
8.1.280.0110.00725.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.65
8.1.230.0090.00317.57
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.11
8.1.190.0030.00517.10
8.1.180.0050.00318.10
8.1.170.0050.00218.83
8.1.160.0040.00418.86
8.1.150.0050.00218.41
8.1.140.0030.00717.32
8.1.130.0000.00717.36
8.1.120.0000.00717.39
8.1.110.0000.00717.27
8.1.100.0040.00417.40
8.1.90.0000.00817.21
8.1.80.0050.00317.18
8.1.70.0000.00717.23
8.1.60.0000.00717.31
8.1.50.0070.00017.35
8.1.40.0030.00617.30
8.1.30.0050.00317.45
8.1.20.0040.00417.43
8.1.10.0050.00217.41
8.1.00.0040.00417.30
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.58
8.0.270.0040.00417.25
8.0.260.0030.00316.86
8.0.250.0040.00416.88
8.0.240.0060.00316.91
8.0.230.0000.00816.91
8.0.220.0080.00017.01
8.0.210.0030.00316.81
8.0.200.0030.00317.00
8.0.190.0040.00417.00
8.0.180.0030.00316.98
8.0.170.0000.00816.85
8.0.160.0080.00016.94
8.0.150.0000.00716.82
8.0.140.0070.00716.81
8.0.130.0040.00413.49
8.0.120.0030.00716.90
8.0.110.0050.00317.01
8.0.100.0040.00416.74
8.0.90.0000.00816.75
8.0.80.0030.01616.99
8.0.70.0040.00416.81
8.0.60.0080.00016.85
8.0.50.0000.00916.94
8.0.30.0200.00317.34
8.0.20.0080.01117.30
8.0.10.0000.00716.94
8.0.00.0050.01316.98
7.4.330.0000.00513.04
7.4.320.0030.00316.41
7.4.300.0030.00316.57
7.4.290.0000.00616.58
7.4.280.0070.00016.59
7.4.270.0030.00316.52
7.4.260.0030.00313.21
7.4.250.0040.00416.50
7.4.240.0040.00416.41
7.4.230.0030.00316.61
7.4.220.0150.00616.54
7.4.210.0030.01716.46
7.4.200.0000.00716.50
7.4.190.0000.00816.54
7.4.160.0070.00716.60
7.4.150.0060.01216.39
7.4.140.0100.01617.86
7.4.130.0060.01216.35
7.4.120.0110.00616.54
7.4.110.0250.00916.35
7.4.100.0140.00316.55
7.4.90.0060.01016.39
7.4.80.0070.01419.39
7.4.70.0090.01316.39
7.4.60.0100.00716.59
7.4.50.0000.00516.30
7.4.40.0060.00916.54
7.4.30.0130.00316.49
7.4.00.0070.01014.99
7.3.330.0030.00313.43
7.3.320.0030.00313.20
7.3.310.0030.00616.38
7.3.300.0030.00616.32
7.3.290.0100.00516.39
7.3.280.0110.01116.37
7.3.270.0040.01416.46
7.3.260.0150.00916.55
7.3.240.0100.00716.61
7.3.230.0100.00716.63
7.3.210.0060.01516.49
7.3.200.0130.00316.65
7.3.190.0060.01016.38
7.3.180.0110.00416.39
7.3.170.0090.00916.63
7.3.160.0030.01216.40
7.3.120.0050.01114.90
7.3.110.0100.00715.01
7.3.100.0060.01214.97
7.3.90.0090.00914.89
7.3.80.0040.00815.02
7.3.70.0070.01114.68
7.3.60.0100.00314.95
7.3.50.0070.00714.96
7.3.40.0000.01614.88
7.3.30.0120.00314.96
7.3.20.0070.00716.52
7.3.10.0070.00716.82
7.3.00.0040.01116.86
7.2.330.0100.00716.69
7.2.320.0090.00916.58
7.2.310.0030.01516.46
7.2.300.0090.00916.69
7.2.290.0030.01316.73
7.2.250.0030.01015.29
7.2.240.0070.01414.66
7.2.230.0030.01315.28
7.2.220.0000.01815.20
7.2.210.0060.00915.08
7.2.200.0100.00714.92
7.2.190.0000.01815.21
7.2.180.0100.00715.14
7.2.170.0110.00314.84
7.2.00.0060.00619.17
7.1.330.0030.01015.57
7.1.320.0030.01315.93
7.1.310.0060.00915.84
7.1.300.0130.00015.83
7.1.290.0060.01215.85
7.1.280.0030.00915.80
7.1.270.0030.01316.00
7.1.260.0000.00915.66
7.1.100.0060.00617.86
7.1.70.0000.01717.08
7.1.60.0070.01719.25
7.1.50.0030.01017.09
7.1.00.0070.06322.31
7.0.200.0090.00316.74
7.0.140.0070.07022.01
7.0.120.0030.07322.18
7.0.60.0070.08719.92
7.0.50.0100.04017.87
7.0.40.0100.03720.24
7.0.30.0530.07020.10
7.0.20.0300.08020.23
7.0.10.0030.06020.06
7.0.00.0000.04720.33
5.6.210.0100.07720.48
5.6.200.0130.07718.19
5.6.190.0070.05020.41
5.6.180.0500.04320.63
5.6.170.0200.08720.46
5.6.160.0070.08320.45
5.6.150.0000.05718.16
5.6.140.0170.07318.12
5.6.130.0130.06018.11
5.6.120.0030.04721.01
5.6.110.0070.08021.13
5.6.100.0070.08721.03
5.6.90.0130.03320.99
5.6.80.0100.03320.39
5.5.350.0100.09020.31
5.5.340.0170.07317.99
5.5.330.0070.05020.21
5.5.320.0070.04320.34
5.5.310.0230.06020.35
5.5.300.0100.05717.98
5.5.290.0070.04318.08
5.5.280.0130.07720.97
5.5.270.0070.03720.96
5.5.260.0100.05720.80
5.5.250.0000.04320.69
5.5.240.0200.03020.16
5.4.450.0130.04019.13
5.4.440.0230.04319.64
5.4.430.0230.03319.32
5.4.420.0100.04719.54
5.4.410.0330.04019.17
5.4.400.0100.04318.87
5.4.390.0230.06319.22
5.4.380.0230.04019.01
5.4.370.0200.05319.15
5.4.360.0200.06019.16
5.4.350.0300.05719.24
5.4.340.0270.07019.21
5.4.320.0270.07019.00
5.4.310.0200.05019.19
5.4.300.0130.07718.86
5.4.290.0270.06319.21
5.4.280.0230.04719.30
5.4.270.0200.08018.99
5.4.260.0170.05719.07
5.4.250.0230.04319.21
5.4.240.0200.03319.07
5.4.230.0200.03319.08
5.4.220.0330.06018.94
5.4.210.0230.03718.96
5.4.200.0200.07319.30
5.4.190.0170.03718.83
5.4.180.0230.06018.97
5.4.170.0170.08319.12
5.4.160.0200.04718.97
5.4.150.0270.06719.29
5.4.140.0130.04016.36
5.4.130.0170.03316.54
5.4.120.0170.03316.36
5.4.110.0200.03716.59
5.4.100.0330.06316.50
5.4.90.0170.04016.24
5.4.80.0270.03316.61
5.4.70.0170.04316.48
5.4.60.0230.07016.51
5.4.50.0200.04016.51
5.4.40.0170.04716.32
5.4.30.0170.04716.25
5.4.20.0230.03016.16
5.4.10.0230.03716.54
5.4.00.0230.03315.79
5.3.290.0270.06014.59
5.3.280.0170.05014.60
5.3.270.0300.04714.84
5.3.260.0270.04314.61
5.3.250.0370.06014.75
5.3.240.0570.06314.63
5.3.230.0300.06714.61
5.3.220.0230.06714.49
5.3.210.0270.08714.72
5.3.200.0270.03714.49
5.3.190.0270.06714.48
5.3.180.0270.07314.46
5.3.170.0300.07014.64
5.3.160.0270.07014.54
5.3.150.0330.06314.57
5.3.140.0230.06314.52
5.3.130.0270.04314.70
5.3.120.0200.07014.62
5.3.110.0270.07014.62
5.3.100.0230.04313.96
5.3.90.0330.06014.03
5.3.80.0230.05314.04
5.3.70.0330.06013.96
5.3.60.0270.07014.02
5.3.50.0270.04014.01
5.3.40.0200.05013.96
5.3.30.0200.04713.91
5.3.20.0170.07713.77
5.3.10.0270.05313.66
5.3.00.0300.04013.54
5.2.170.0230.03311.27
5.2.160.0170.03011.04
5.2.150.0130.04011.13
5.2.140.0200.05711.05
5.2.130.0270.03311.12
5.2.120.0270.05311.03
5.2.110.0070.03311.08
5.2.100.0170.05011.16
5.2.90.0230.05011.11
5.2.80.0330.04011.24
5.2.70.0170.06011.18
5.2.60.0300.05711.14
5.2.50.0170.03310.95
5.2.40.0200.05311.23
5.2.30.0170.03010.90
5.2.20.0100.03311.04
5.2.10.0130.05310.94
5.2.00.0130.02710.72
5.1.60.0170.02310.09
5.1.50.0070.02710.08
5.1.40.0130.0209.88
5.1.30.0200.02310.35
5.1.20.0100.02710.38
5.1.10.0130.02710.01
5.1.00.0100.0279.97
5.0.50.0070.0208.68
5.0.40.0070.0238.31
5.0.30.0000.0378.13
5.0.20.0070.0178.26
5.0.10.0030.0208.06
5.0.00.0030.0378.07
4.4.90.0030.0177.90
4.4.80.0030.0177.90
4.4.70.0070.0137.90
4.4.60.0030.0177.90
4.4.50.0030.0177.90
4.4.40.0030.0307.90
4.4.30.0030.0177.90
4.4.20.0070.0177.90
4.4.10.0070.0137.90
4.4.00.0070.0277.90
4.3.110.0030.0177.90
4.3.100.0000.0237.90
4.3.90.0070.0177.90
4.3.80.0100.0477.90
4.3.70.0100.0107.90
4.3.60.0030.0207.90
4.3.50.0030.0177.90
4.3.40.0000.0337.90
4.3.30.0030.0137.90
4.3.20.0000.0177.90
4.3.10.0000.0177.90
4.3.00.0000.0177.90

preferences:
39.13 ms | 401 KiB | 5 Q