3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Entry implements \Serializable { protected $id; protected $role; public function __construct($id, $role) { $this->id = $id; $this->role = $role; } public function serialize() { return serialize([$this->id, $this->role]); } public function unserialize($string) { list ($this->id, $this->role) = unserialize($string); } } class FieldEntry extends Entry implements \Serializable { protected $field; public function __construct($id, $role, $field) { parent::__construct($id, $role); $this->field = $field; } public function serialize() { return serialize([$this->field, parent::serialize()]); } public function unserialize($string) { list($this->field, $parentStr) = unserialize($string); parent::unserialize($parentStr); } } class Role { private $role; public function __construct($name) { $this->role = $name; } } $b = new Role('test'); $a = new FieldEntry(1, $b, 'name'); $a1 = new FieldEntry(2, $b, 'age'); $s = serialize( array( // Acl:serialize (line 260) [ // classFieldAces 'fieldOne' => [$a], 'fieldTwo' => [$a1], ] ) ); var_dump($s); $uns = unserialize($s); var_dump($uns[0]['fieldOne'][0], $uns[0]['fieldTwo'][0]);

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.0140.00716.88
8.3.50.0110.00821.14
8.3.40.0070.00718.64
8.3.30.0110.00718.72
8.3.20.0000.00720.39
8.3.10.0040.00423.61
8.3.00.0000.00817.89
8.2.180.0090.00618.23
8.2.170.0030.01322.96
8.2.160.0100.00720.50
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00917.75
8.2.110.0000.01021.18
8.2.100.0090.00318.03
8.2.90.0030.00517.97
8.2.80.0040.00418.28
8.2.70.0000.00817.75
8.2.60.0040.00417.63
8.2.50.0060.00317.63
8.2.40.0000.00819.66
8.2.30.0060.00420.73
8.2.20.0040.00417.85
8.2.10.0040.00418.03
8.2.00.0030.00618.15
8.1.280.0070.01125.92
8.1.270.0110.00423.85
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.10
8.1.230.0080.00420.90
8.1.220.0040.00417.76
8.1.210.0060.00319.00
8.1.200.0090.00017.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0000.00722.05
8.1.150.0040.00418.84
8.1.140.0030.00619.73
8.1.130.0040.00417.65
8.1.120.0000.00817.54
8.1.110.0000.00817.46
8.1.100.0000.00817.49
8.1.90.0050.00317.43
8.1.80.0000.00917.50
8.1.70.0050.00317.49
8.1.60.0000.00817.48
8.1.50.0000.00817.52
8.1.40.0030.00517.52
8.1.30.0000.00817.76
8.1.20.0040.00417.66
8.1.10.0040.00417.45
8.1.00.0030.00617.54
8.0.300.0000.00820.20
8.0.290.0070.00016.63
8.0.280.0000.00718.39
8.0.270.0040.00417.30
8.0.260.0060.00017.25
8.0.250.0000.00816.95
8.0.240.0070.00017.11
8.0.230.0000.00717.02
8.0.220.0030.00316.98
8.0.210.0070.00216.89
8.0.200.0000.00717.10
8.0.190.0030.00516.95
8.0.180.0050.00316.86
8.0.170.0050.00217.03
8.0.160.0000.00817.09
8.0.150.0000.00716.98
8.0.140.0000.00716.96
8.0.130.0030.00313.50
8.0.120.0060.00316.99
8.0.110.0000.00816.82
8.0.100.0000.00716.77
8.0.90.0030.00516.93
8.0.80.0080.00817.02
8.0.70.0040.00416.86
8.0.60.0040.00416.80
8.0.50.0040.00416.88
8.0.30.0070.00917.14
8.0.20.0130.00517.40
8.0.10.0000.00816.91
8.0.00.0070.01216.81
7.4.330.0030.00315.14
7.4.320.0030.00316.68
7.4.300.0030.00316.53
7.4.290.0000.00716.61
7.4.280.0050.00316.52
7.4.270.0030.00516.60
7.4.260.0070.00016.62
7.4.250.0040.00416.60
7.4.240.0000.00716.58
7.4.230.0000.00716.47
7.4.220.0150.00416.74
7.4.210.0110.00416.61
7.4.200.0030.00516.66
7.4.160.0080.00816.53
7.4.150.0070.01317.40
7.4.140.0150.00817.86
7.4.130.0180.00216.61
7.4.120.0160.00416.63
7.4.110.0060.01216.61
7.4.100.0100.01316.60
7.4.90.0100.00716.65
7.4.80.0060.01319.39
7.4.70.0110.00816.62
7.4.60.0060.01116.70
7.4.50.0030.00516.43
7.4.40.0080.01216.23
7.4.30.0120.01216.53
7.4.00.0090.00615.04
7.3.330.0030.00313.43
7.3.320.0000.00613.30
7.3.310.0070.00016.50
7.3.300.0070.00016.38
7.3.290.0090.00816.44
7.3.280.0150.00516.48
7.3.270.0030.01417.40
7.3.260.0160.01016.54
7.3.250.0100.00916.47
7.3.240.0090.01116.43
7.3.230.0110.00716.43
7.3.210.0070.01116.44
7.3.200.0120.00916.43
7.3.190.0040.01516.50
7.3.180.0130.00316.53
7.3.170.0070.01516.51
7.3.160.0100.00716.50
7.3.120.0060.01214.54
7.3.110.0000.01514.71
7.3.100.0030.01314.74
7.3.90.0060.00915.01
7.3.80.0110.00714.87
7.3.70.0040.00814.74
7.3.60.0030.01314.96
7.3.50.0080.00414.95
7.3.40.0080.00814.68
7.3.30.0080.00314.91
7.3.20.0040.01116.34
7.3.10.0090.00616.78
7.3.00.0050.00516.68
7.2.330.0070.01316.79
7.2.320.0080.01116.37
7.2.310.0160.00316.52
7.2.300.0150.00916.97
7.2.290.0000.02116.93
7.2.250.0130.00715.16
7.2.240.0060.01215.20
7.2.230.0060.01215.16
7.2.220.0060.00915.11
7.2.210.0040.01115.32
7.2.200.0000.01615.00
7.2.190.0000.01715.06
7.2.180.0070.00715.12
7.2.170.0070.00415.23
7.2.60.0220.00016.67
7.2.00.0120.00619.23
7.1.330.0120.00315.78
7.1.320.0090.00315.94
7.1.310.0090.00815.78
7.1.300.0090.00615.70
7.1.290.0160.00015.58
7.1.280.0060.00615.99
7.1.270.0060.00615.83
7.1.260.0070.00715.61
7.1.200.0040.01115.91
7.1.100.0030.01018.22
7.1.70.0000.01017.15
7.1.60.0060.00619.50
7.1.50.0100.01017.05
7.1.00.0000.08022.48
7.0.200.0060.00915.11
7.0.60.0000.06319.84
7.0.50.0170.07017.91
7.0.40.0030.04720.30
7.0.30.0330.07720.26
7.0.20.0170.04020.24
7.0.10.0070.08720.07
7.0.00.0230.07020.10
5.6.280.0000.03721.11
5.6.210.0030.08720.73
5.6.200.0170.06318.19
5.6.190.0070.04020.61
5.6.180.0330.05720.60
5.6.170.0200.08020.46
5.6.160.0070.08320.50
5.6.150.0000.04318.16
5.6.140.0030.08718.19
5.6.130.0030.04018.21
5.6.120.0030.08320.98
5.6.110.0200.07321.02
5.6.100.0100.05020.90
5.6.90.0070.06021.01
5.6.80.0130.06720.42
5.5.350.0330.06320.35
5.5.340.0030.04017.98
5.5.330.0200.07020.37
5.5.320.0230.04020.30
5.5.310.0370.07020.34
5.5.300.0070.08017.98
5.5.290.0100.07317.97
5.5.280.0200.04020.70
5.5.270.0000.06020.88
5.5.260.0100.08020.96
5.5.250.0000.04320.72
5.5.240.0100.06720.37
5.4.450.0730.05719.38
5.4.440.0900.06319.55
5.4.430.0970.06719.57
5.4.420.0700.07319.34
5.4.410.0770.06019.04
5.4.400.0900.07019.08
5.4.390.0770.08319.29
5.4.380.0870.05019.09
5.4.370.0830.05018.80
5.4.360.1000.07719.02
5.4.350.0830.06019.24
5.4.340.0830.07319.09
5.4.320.0770.06018.80
5.4.310.0870.06318.97
5.4.300.1070.07018.95
5.4.290.0830.07019.10
5.4.280.1100.05319.11
5.4.270.0870.07318.97
5.4.260.0900.06019.02
5.4.250.0870.06318.83
5.4.240.0770.07019.14
5.4.230.0600.06019.11
5.4.220.0770.04318.96
5.4.210.1030.06719.08
5.4.200.0970.07319.08
5.4.190.1070.07019.06
5.4.180.0900.07319.10
5.4.170.0530.05719.07
5.4.160.0500.04718.90
5.4.150.0830.05319.18
5.4.140.1030.05316.32
5.4.130.0830.06016.36
5.4.120.0830.06316.43
5.4.110.0870.05016.61
5.4.100.0870.05316.52
5.4.90.0730.05316.63
5.4.80.0730.05316.51
5.4.70.0030.05016.18
5.4.60.0200.06316.30
5.4.50.0130.04016.52
5.4.40.0300.06716.24
5.4.30.0000.06316.54
5.4.20.0070.04016.27
5.4.10.0300.03716.41

preferences:
56.57 ms | 401 KiB | 5 Q