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]); } } 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()]); } } class Role { protected $name; public function __construct($name) { $this->name = $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.0120.00916.50
8.3.50.0100.00721.22
8.3.40.0080.00818.70
8.3.30.0140.00018.71
8.3.20.0070.00020.25
8.3.10.0000.00823.64
8.3.00.0080.00017.80
8.2.180.0120.00918.54
8.2.170.0040.01122.96
8.2.160.0100.00720.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00517.63
8.2.110.0050.00522.25
8.2.100.0040.00817.93
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0000.00817.38
8.2.60.0000.01017.80
8.2.50.0090.00018.07
8.2.40.0090.00019.32
8.2.30.0040.00420.70
8.2.20.0000.00817.59
8.2.10.0040.00418.07
8.2.00.0040.00418.00
8.1.280.0060.00925.92
8.1.270.0040.00423.98
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0070.00322.48
8.1.230.0080.00419.14
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0050.00317.00
8.1.180.0060.00318.10
8.1.170.0050.00320.50
8.1.160.0040.00421.90
8.1.150.0040.00418.84
8.1.140.0090.00019.59
8.1.130.0040.00417.71
8.1.120.0000.00817.33
8.1.110.0000.00717.39
8.1.100.0000.00717.41
8.1.90.0070.00017.40
8.1.80.0070.00317.31
8.1.70.0040.00417.44
8.1.60.0050.00317.55
8.1.50.0000.00817.37
8.1.40.0050.00317.50
8.1.30.0040.00417.51
8.1.20.0000.00817.47
8.1.10.0040.00417.32
8.1.00.0020.00517.32
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0030.00317.15
8.0.260.0060.00017.26
8.0.250.0040.00416.87
8.0.240.0030.00316.98
8.0.230.0030.00316.86
8.0.220.0030.00316.80
8.0.210.0000.00716.82
8.0.200.0030.00317.03
8.0.190.0050.00316.84
8.0.180.0040.00416.96
8.0.170.0000.00716.82
8.0.160.0040.00416.80
8.0.150.0000.00716.82
8.0.140.0000.00716.85
8.0.130.0000.00613.31
8.0.120.0040.00416.92
8.0.110.0030.00616.83
8.0.100.0000.00716.89
8.0.90.0000.00717.02
8.0.80.0090.00616.90
8.0.70.0000.00716.94
8.0.60.0000.00716.94
8.0.50.0040.00416.95
8.0.30.0090.01117.00
8.0.20.0120.00617.40
8.0.10.0040.00416.90
8.0.00.0110.00816.71
7.4.330.0060.00015.08
7.4.320.0060.00016.39
7.4.300.0000.00716.53
7.4.290.0000.00816.45
7.4.280.0000.00816.41
7.4.270.0070.00316.49
7.4.260.0040.00416.52
7.4.250.0040.00416.49
7.4.240.0040.00316.44
7.4.230.0070.00016.36
7.4.220.0160.00316.53
7.4.210.0070.00716.53
7.4.200.0030.00316.63
7.4.160.0130.01016.37
7.4.150.0060.01617.40
7.4.140.0090.01117.86
7.4.130.0070.01016.46
7.4.120.0130.00516.40
7.4.110.0030.01416.56
7.4.100.0060.01816.61
7.4.90.0100.00716.46
7.4.80.0070.01019.39
7.4.70.0070.01016.46
7.4.60.0080.00816.30
7.4.50.0000.00816.43
7.4.40.0140.00416.47
7.4.30.0060.01616.52
7.4.00.0100.00314.98
7.3.330.0050.00013.27
7.3.320.0030.00313.10
7.3.310.0040.00416.26
7.3.300.0000.00716.27
7.3.290.0060.00916.24
7.3.280.0080.01016.19
7.3.270.0100.00717.40
7.3.260.0130.00416.21
7.3.250.0090.00916.39
7.3.240.0110.00616.35
7.3.230.0140.00316.39
7.3.210.0060.01016.39
7.3.200.0030.01616.42
7.3.190.0030.01316.49
7.3.180.0060.00916.49
7.3.170.0030.01716.41
7.3.160.0080.00816.22
7.3.120.0030.01014.90
7.3.110.0000.01414.72
7.3.100.0030.01014.61
7.3.90.0000.01714.51
7.3.80.0040.00814.84
7.3.70.0030.01014.64
7.3.60.0030.00914.76
7.3.50.0000.00814.65
7.3.40.0050.00814.54
7.3.30.0110.00314.71
7.3.20.0030.00716.66
7.3.10.0140.00016.68
7.3.00.0080.00416.64
7.2.330.0090.00916.67
7.2.320.0100.01016.59
7.2.310.0140.00316.66
7.2.300.0120.00516.49
7.2.290.0040.01416.57
7.2.240.0000.01114.98
7.2.230.0000.01715.11
7.2.220.0070.00314.67
7.2.210.0030.01314.53
7.2.200.0000.01014.86
7.2.190.0030.01314.88
7.2.180.0040.01114.86
7.2.170.0100.00314.99
7.2.160.0060.01214.99
7.2.150.0040.01116.96
7.2.140.0040.00916.66
7.2.130.0090.00916.70
7.2.120.0100.00716.90
7.2.110.0080.00616.84
7.2.100.0090.00916.89
7.2.90.0090.00616.88
7.2.80.0000.01516.90
7.2.70.0070.01016.62
7.2.60.0070.00716.86
7.2.50.0060.00916.71
7.2.40.0120.01016.65
7.2.30.0110.01416.80
7.2.20.0150.01116.54
7.2.10.0150.00916.82
7.2.00.0070.01417.79
7.1.330.0090.00615.75
7.1.320.0000.01415.58
7.1.310.0060.00315.59
7.1.300.0090.00615.68
7.1.290.0040.00815.71
7.1.280.0060.00815.39
7.1.270.0000.01215.80
7.1.260.0110.00415.50
7.1.250.0090.00615.79
7.1.200.0030.00715.80
7.1.100.0060.00617.83
7.1.70.0000.00816.99
7.1.60.0000.01519.50
7.1.50.0090.01516.98
7.1.00.0070.07322.57
7.0.200.0160.00814.86
7.0.60.0070.05019.91
7.0.50.0070.05317.87
7.0.40.0070.08020.27
7.0.30.0230.03720.17
7.0.20.0230.05320.15
7.0.10.0000.04720.23
7.0.00.0170.08020.18
5.6.280.0030.04021.09
5.6.210.0070.07320.48
5.6.200.0130.07318.28
5.6.190.0000.06320.47
5.6.180.0270.07020.63
5.6.170.0370.03720.56
5.6.160.0070.08720.39
5.6.150.0000.04318.15
5.6.140.0170.07018.18
5.6.130.0100.05318.16
5.6.120.0230.06721.01
5.6.110.0070.06321.05
5.6.100.0100.06320.90
5.6.90.0000.04720.98
5.6.80.0130.06720.52
5.5.350.0130.07320.36
5.5.340.0070.04018.09
5.5.330.0030.05720.07
5.5.320.2970.04020.32
5.5.310.0400.07320.29
5.5.300.0030.07317.98
5.5.290.0070.08317.97
5.5.280.0130.04020.99
5.5.270.0100.07020.87
5.5.260.0030.07020.77
5.5.250.0070.08720.48
5.5.240.0000.04720.38
5.4.450.0270.06719.47
5.4.440.0230.07019.47
5.4.430.0230.05019.28
5.4.420.0230.06719.47
5.4.410.0130.05719.05
5.4.400.0400.04319.16
5.4.390.0770.08019.28
5.4.380.0900.04719.32
5.4.370.0730.05019.15
5.4.360.0100.06319.05
5.4.350.0100.05319.30
5.4.340.0300.05719.06
5.4.320.0200.05719.13
5.4.310.0230.04019.38
5.4.300.0330.05719.14
5.4.290.0800.05319.28
5.4.280.0870.06019.23
5.4.270.1030.03318.87
5.4.260.0770.05319.12
5.4.250.0770.05719.28
5.4.240.0670.05719.24
5.4.230.0170.05018.83
5.4.220.0270.05719.29
5.4.210.0300.04318.88
5.4.200.0070.06019.25
5.4.190.0100.05719.27
5.4.180.0170.06019.25
5.4.170.0200.06019.29
5.4.160.0200.05019.03
5.4.150.0130.05719.12
5.4.140.0100.05316.40
5.4.130.0400.04316.48
5.4.120.0670.05016.36
5.4.110.0670.05016.33
5.4.100.0600.06316.68
5.4.90.0800.05716.57
5.4.80.0070.06316.64
5.4.70.0370.06716.59
5.4.60.0000.07716.43
5.4.50.0070.06716.43
5.4.40.0330.06316.43
5.4.30.0330.06016.16
5.4.20.0030.05716.16

preferences:
74.09 ms | 401 KiB | 5 Q