3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Widget implements Serializable { public $references = array(); public function serialize() { $vars = get_object_vars($this); $serialized = serialize($vars); return $serialized; } public function unserialize($serialized) { $array = unserialize($serialized); foreach($array as $k => $v) $this->$k = $v; } } class Placeholder { public $id; public function __construct($id) { $this->id = $id; } } unserialize('a:4:{i:0;C:6:"Widget":70:{a:1:{s:10:"references";a:1:{i:0;O:11:"Placeholder":1:{s:2:"id";i:1;}}}}i:1;C:6:"Widget":70:{a:1:{s:10:"references";a:1:{i:0;O:11:"Placeholder":1:{s:2:"id";i:2;}}}}i:2;C:6:"Widget":38:{a:1:{s:10:"references";a:1:{i:0;r:5;}}}i:3;C:6:"Widget":38:{a:1:{s:10:"references";a:1:{i:0;r:5;}}}}');

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.00418.43
8.3.50.0140.00721.09
8.3.40.0070.00718.59
8.3.30.0150.00018.85
8.3.20.0040.00418.77
8.3.10.0060.00321.00
8.3.00.0040.00423.48
8.2.180.0040.01818.54
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00326.16
8.2.120.0040.00421.18
8.2.110.0060.00320.34
8.2.100.0040.00717.91
8.2.90.0090.00019.05
8.2.80.0000.00719.41
8.2.70.0040.00417.50
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0030.00618.09
8.2.30.0070.00019.44
8.2.20.0020.00517.73
8.2.10.0030.00517.62
8.2.00.0040.00417.77
8.1.280.0070.01025.92
8.1.270.0070.00023.99
8.1.260.0150.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00622.46
8.1.230.0060.00620.91
8.1.220.0030.00618.77
8.1.210.0080.00018.89
8.1.200.0040.00417.38
8.1.190.0030.00617.53
8.1.180.0000.00818.10
8.1.170.0030.00618.61
8.1.160.0050.00218.91
8.1.150.0040.00418.57
8.1.140.0070.00017.40
8.1.130.0070.00017.47
8.1.120.0000.00717.51
8.1.110.0000.00817.53
8.1.100.0070.00017.38
8.1.90.0030.00317.37
8.1.80.0000.00717.50
8.1.70.0070.00017.39
8.1.60.0030.00617.61
8.1.50.0040.00417.50
8.1.40.0030.00617.54
8.1.30.0000.00817.66
8.1.20.0030.00617.69
8.1.10.0000.00717.40
8.1.00.0040.00417.47
8.0.300.0080.00019.98
8.0.290.0040.00417.05
8.0.280.0030.00318.47
8.0.270.0040.00416.93
8.0.260.0030.00316.95
8.0.250.0070.00017.05
8.0.240.0040.00417.04
8.0.230.0050.00316.91
8.0.220.0070.00016.89
8.0.210.0030.00516.85
8.0.200.0030.00317.05
8.0.190.0000.00717.02
8.0.180.0040.00416.91
8.0.170.0000.00717.02
8.0.160.0030.00317.07
8.0.150.0000.00716.99
8.0.140.0030.00616.96
8.0.130.0050.00013.34
8.0.120.0000.00816.83
8.0.110.0040.00416.82
8.0.100.0000.00717.04
8.0.90.0080.00017.03
8.0.80.0090.01216.88
8.0.70.0040.00417.01
8.0.60.0000.00716.93
8.0.50.0000.00716.87
8.0.30.0120.00717.11
8.0.20.0110.00717.40
8.0.10.0040.00417.09
8.0.00.0070.01516.87
7.4.330.0050.00016.89
7.4.320.0000.00716.54
7.4.300.0000.00616.58
7.4.290.0000.00716.55
7.4.280.0090.00016.54
7.4.270.0030.00316.50
7.4.260.0050.00013.32
7.4.250.0060.00316.63
7.4.240.0070.00016.64
7.4.230.0030.00316.40
7.4.220.0080.01116.33
7.4.210.0080.00616.60
7.4.200.0070.00016.41
7.4.190.0030.00316.77
7.4.160.0190.00316.68
7.4.150.0070.01117.40
7.4.140.0130.00517.86
7.4.130.0160.00316.58
7.4.120.0120.00716.46
7.4.110.0060.01116.39
7.4.100.0130.01016.68
7.4.90.0100.01316.45
7.4.80.0170.00319.39
7.4.70.0160.00616.52
7.4.60.0100.00716.66
7.4.50.0000.00916.36
7.4.40.0060.00922.77
7.4.30.0030.01616.66
7.4.00.0040.01415.08
7.3.330.0030.00313.39
7.3.320.0060.00013.20
7.3.310.0030.00316.36
7.3.300.0040.00416.39
7.3.290.0090.01016.43
7.3.280.0130.00316.35
7.3.270.0130.00417.40
7.3.260.0090.01118.24
7.3.250.0090.01016.60
7.3.240.0190.00316.59
7.3.230.0070.01116.52
7.3.210.0080.00816.22
7.3.200.0100.00919.39
7.3.190.0160.00716.55
7.3.180.0090.00916.53
7.3.170.0060.00916.45
7.3.160.0110.00516.37
7.3.120.0100.00714.95
7.3.10.0080.00816.34
7.3.00.0150.00316.70
7.2.330.0070.01016.57
7.2.320.0160.00316.80
7.2.310.0030.01416.68
7.2.300.0100.00716.73
7.2.290.0120.00616.61
7.2.130.0030.01016.89
7.2.120.0110.00516.61
7.2.110.0130.00716.56
7.2.100.0090.00816.67
7.2.90.0060.00916.55
7.2.80.0080.01016.80
7.2.70.0120.00816.98
7.2.60.0110.00716.73
7.2.50.0070.00717.02
7.2.40.0050.00916.89
7.2.30.0080.00816.97
7.2.20.0110.00316.96
7.2.10.0070.00716.99
7.2.00.0110.00717.70
7.1.250.0080.00815.54
7.1.240.0090.00315.81
7.1.230.0100.00315.53
7.1.220.0070.00715.82
7.1.210.0040.01115.76
7.1.200.0040.01115.93
7.1.190.0060.01016.00
7.1.180.0090.00315.94
7.1.170.0030.01215.82
7.1.160.0110.00015.75
7.1.150.0110.00315.75
7.1.140.0000.01415.97
7.1.130.0110.00415.72
7.1.120.0030.01015.46
7.1.110.0090.00615.76
7.1.100.0030.00916.83
7.1.90.0000.01515.73
7.1.80.0060.00915.88
7.1.70.0070.00416.43
7.1.60.0050.00917.45
7.1.50.0080.01016.33
7.1.40.0000.01115.47
7.1.30.0060.00615.78
7.1.20.0120.00315.69
7.1.10.0040.01115.73
7.1.00.0050.02719.07
7.0.320.0040.00715.30
7.0.310.0030.01015.29
7.0.300.0040.00415.51
7.0.290.0040.00815.45
7.0.280.0060.01015.38
7.0.270.0070.00715.27
7.0.260.0030.00515.53
7.0.250.0000.01315.52
7.0.240.0040.01115.14
7.0.230.0060.00615.57
7.0.220.0090.00615.56
7.0.210.0040.00815.26
7.0.200.0040.00516.15
7.0.190.0030.01015.43
7.0.180.0070.00715.49
7.0.170.0000.01115.55
7.0.160.0110.00015.45
7.0.150.0040.00815.55
7.0.140.0040.04218.68
7.0.130.0030.01215.52
7.0.120.0040.00415.30
7.0.110.0040.00815.20
7.0.100.0100.00315.52
7.0.90.0100.00315.18
7.0.80.0070.04017.80
7.0.70.0060.03117.74
7.0.60.0100.03517.58
7.0.50.0030.04517.96
7.0.40.0090.03716.78
7.0.30.0080.04116.66
7.0.20.0070.02216.85
7.0.10.0020.02616.81
7.0.00.0050.04316.79
5.6.380.0030.01014.33
5.6.370.0000.01014.64
5.6.360.0040.00814.79
5.6.350.0060.00914.66
5.6.340.0070.00714.11
5.6.330.0070.00714.22
5.6.320.0070.00714.31
5.6.310.0060.00614.39
5.6.300.0090.00314.30
5.6.290.0040.01114.80
5.6.280.0070.03817.73
5.6.270.0060.00614.42
5.6.260.0030.00714.18
5.6.250.0080.00014.64
5.6.240.0060.00614.51
5.6.230.0050.02017.57
5.6.220.0030.02417.46
5.6.210.0070.03917.37
5.6.200.0070.03917.84
5.6.190.0070.04217.91
5.6.180.0070.02217.87
5.6.170.0130.03817.74
5.6.160.0110.01817.71
5.6.150.0070.03317.53
5.6.140.0080.03817.69
5.6.130.0060.02017.62
5.6.120.0030.02517.69
5.6.110.0080.02017.73
5.6.100.0050.02217.77
5.6.90.0100.03517.77
5.6.80.0060.02317.26
5.6.70.0090.02217.44
5.6.60.0060.04317.24
5.6.50.0050.02417.38
5.6.40.0050.02417.27
5.6.30.0110.03717.45
5.6.20.0040.02617.39
5.6.10.0100.04217.46
5.6.00.0060.03517.28
5.5.380.0070.00411.14
5.5.370.0070.03815.72
5.5.360.0020.02515.88
5.5.350.0040.02415.81
5.5.340.0090.04016.08
5.5.330.0080.02215.94
5.5.320.0070.02216.04
5.5.310.0090.03716.10
5.5.300.0020.02216.08
5.5.290.0100.01516.19
5.5.280.0030.04016.07
5.5.270.0110.03515.99
5.5.260.0050.02516.08
5.5.250.0050.02915.96
5.5.240.0060.04315.62
5.5.230.0060.02515.62
5.5.220.0040.04215.72
5.5.210.0030.02515.79
5.5.200.0040.02415.65
5.5.190.0050.02815.70
5.5.180.0060.02215.70
5.5.170.0040.01114.38
5.5.160.0080.04115.72
5.5.150.0050.02015.54
5.5.140.0050.02015.69
5.5.130.0080.01815.63
5.5.120.0050.04315.56
5.5.110.0000.03215.64
5.5.100.0070.02915.76
5.5.90.0070.02815.53
5.5.80.0100.03315.52
5.5.70.0090.03415.62
5.5.60.0070.02015.55
5.5.50.0050.02015.54
5.5.40.0040.04215.65
5.5.30.0070.03415.37
5.5.20.0050.02915.47
5.5.10.0070.02715.53
5.5.00.0100.03915.51
5.4.450.0020.02215.22
5.4.440.0020.02715.22
5.4.430.0050.02415.22
5.4.420.0050.02115.12
5.4.410.0020.03615.18
5.4.400.0050.02315.09
5.4.390.0020.02215.16
5.4.380.0060.03314.96
5.4.370.0090.02114.88
5.4.360.0020.02215.28
5.4.350.0060.02015.26
5.4.340.0090.02515.14
5.4.330.0080.00011.22
5.4.320.0060.04515.12
5.4.310.0050.01914.81
5.4.300.0050.04114.99
5.4.290.0050.02215.10
5.4.280.0050.04315.06
5.4.270.0080.04115.13
5.4.260.0040.02415.03
5.4.250.0030.02315.05
5.4.240.0050.02014.93
5.4.230.0020.02515.21
5.4.220.0060.02215.13
5.4.210.0080.01814.96
5.4.200.0080.03515.17
5.4.190.0030.02314.96
5.4.180.0030.02314.85
5.4.170.0050.01815.08
5.4.160.0040.02115.01
5.4.150.0070.02315.10
5.4.140.0070.03713.78
5.4.130.0050.03213.67
5.4.120.0020.02213.76
5.4.110.0040.02213.62
5.4.100.0030.02013.75
5.4.90.0020.02113.84
5.4.80.0000.02213.66
5.4.70.0050.04313.78
5.4.60.0030.03113.75
5.4.50.0070.02213.62
5.4.40.0050.02113.71
5.4.30.0050.02613.67
5.4.20.0100.03713.52
5.4.10.0080.04013.67
5.4.00.0070.04013.53
5.3.290.0040.01912.72
5.3.280.0050.02212.64
5.3.270.0090.03212.57
5.3.260.0050.01712.70
5.3.250.0050.01812.52
5.3.240.0060.03212.57
5.3.230.0050.02512.67
5.3.220.0040.02112.46
5.3.210.0010.04412.50
5.3.200.0000.02112.48
5.3.190.0050.04212.49
5.3.180.0110.03112.61
5.3.170.0080.03012.57
5.3.160.0060.02212.68
5.3.150.0030.02312.70
5.3.140.0050.02612.50
5.3.130.0090.03312.59
5.3.120.0080.01812.59
5.3.110.0050.02012.58
5.3.100.0060.01312.27
5.3.90.0070.03812.40
5.3.80.0040.03912.30
5.3.70.0010.02612.20
5.3.60.0070.01912.30
5.3.50.0040.04212.18
5.3.40.0070.03012.33
5.3.30.0030.03812.26
5.3.20.0050.03512.08
5.3.10.0020.04212.07
5.3.00.0080.03312.07
5.2.170.0050.03210.77
5.2.160.0000.02310.71
5.2.150.0030.03510.78
5.2.140.0050.01510.78
5.2.130.0000.01810.79
5.2.120.0020.01710.74
5.2.110.0020.01310.67
5.2.100.0090.01210.76
5.2.90.0090.00710.83
5.2.80.0020.01510.67
5.2.70.0020.01610.73
5.2.60.0030.01310.69
5.2.50.0030.01510.73
5.2.40.0050.01310.67
5.2.30.0030.01410.67
5.2.20.0010.03310.67
5.2.10.0060.03110.67
5.2.00.0020.02310.67
5.1.60.0020.01210.67
5.1.50.0030.01210.67
5.1.40.0060.02610.67
5.1.30.0020.02910.67
5.1.20.0030.02310.67
5.1.10.0050.01010.67
5.1.00.0020.01910.67
5.0.50.0000.01710.67
5.0.40.0040.02010.67
5.0.30.0000.01710.67
5.0.20.0060.01310.67
5.0.10.0030.00810.67
5.0.00.0000.01710.67
4.4.90.0000.02010.67
4.4.80.0000.01610.67
4.4.70.0010.01110.67
4.4.60.0030.01510.67
4.4.50.0030.01710.67
4.4.40.0020.01310.67
4.4.30.0020.00810.67
4.4.20.0000.02010.67
4.4.10.0050.01210.67
4.4.00.0020.01210.67
4.3.110.0010.00810.67
4.3.100.0000.02010.67
4.3.90.0030.00810.67
4.3.80.0020.01210.67
4.3.70.0020.00810.67
4.3.60.0020.00810.67
4.3.50.0010.02010.67
4.3.40.0020.01210.67
4.3.30.0010.00810.67
4.3.20.0000.01010.67
4.3.10.0010.00810.67
4.3.00.0000.01810.67

preferences:
49.12 ms | 401 KiB | 5 Q