3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ERROR | E_PARSE); class Definition implements Serializable { private $value; public function __construct($value) { $this->value = $value; } public function serialize() { return serialize($this->value); } public function unserialize($data) { $this->value = unserialize($value); } } $a=new stdClass(); $d=new Definition($a); var_dump(unserialize(serialize([$d,'This text will appear twice',$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.60.0120.00916.75
8.3.50.0140.00716.26
8.3.40.0100.00719.02
8.3.30.0070.01018.84
8.3.20.0030.00620.82
8.3.10.0040.00421.80
8.3.00.0080.00019.38
8.2.180.0100.01016.50
8.2.170.0190.00322.96
8.2.160.0000.01419.25
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0070.00019.33
8.2.120.0040.00426.35
8.2.110.0030.00720.97
8.2.100.0000.01118.03
8.2.90.0040.00419.40
8.2.80.0040.00420.07
8.2.70.0060.00317.92
8.2.60.0050.00317.63
8.2.50.0000.00718.10
8.2.40.0050.00220.55
8.2.30.0030.00519.31
8.2.20.0040.00418.05
8.2.10.0000.00718.17
8.2.00.0080.00017.85
8.1.280.0110.00425.92
8.1.270.0060.00322.15
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00319.22
8.1.230.0040.00722.75
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0000.00817.36
8.1.180.0080.00018.10
8.1.170.0000.00818.66
8.1.160.0000.00718.89
8.1.150.0000.00720.38
8.1.140.0040.00419.57
8.1.130.0030.00319.00
8.1.120.0040.00417.39
8.1.110.0040.00417.48
8.1.100.0040.00417.42
8.1.90.0040.00417.52
8.1.80.0000.00717.43
8.1.70.0030.00317.46
8.1.60.0070.00017.47
8.1.50.0000.00817.55
8.1.40.0060.00317.42
8.1.30.0040.00417.62
8.1.20.0070.00017.67
8.1.10.0040.00417.64
8.1.00.0060.00317.55
8.0.300.0000.00719.98
8.0.290.0000.00716.88
8.0.280.0090.00018.36
8.0.270.0050.00316.88
8.0.260.0030.00317.26
8.0.250.0030.00317.04
8.0.240.0000.00617.04
8.0.230.0050.00517.05
8.0.220.0070.00016.93
8.0.210.0000.00716.82
8.0.200.0000.00717.08
8.0.190.0020.00516.93
8.0.180.0040.00417.02
8.0.170.0070.00016.97
8.0.160.0030.00617.07
8.0.150.0000.00716.92
8.0.140.0000.00716.95
8.0.130.0030.00313.43
8.0.120.0070.00016.81
8.0.110.0000.00716.91
8.0.100.0040.00416.80
8.0.90.0000.00816.76
8.0.80.0080.01216.89
8.0.70.0000.00717.02
8.0.60.0030.00416.92
8.0.50.0000.00816.97
8.0.30.0110.00817.20
8.0.20.0070.01117.40
8.0.10.0040.00417.14
8.0.00.0060.00916.97
7.4.330.0070.00015.55
7.4.320.0060.00016.52
7.4.300.0060.00016.52
7.4.290.0030.00316.36
7.4.280.0080.00016.52
7.4.270.0000.00716.43
7.4.260.0000.00716.50
7.4.250.0000.00816.56
7.4.240.0030.00316.61
7.4.230.0030.00316.62
7.4.220.0130.00316.47
7.4.210.0030.01216.57
7.4.200.0030.00316.41
7.4.160.0050.01016.53
7.4.150.0160.00617.40
7.4.140.0080.01417.86
7.4.130.0090.00916.57
7.4.120.0120.00616.64
7.4.110.0110.00816.54
7.4.100.0040.01716.42
7.4.90.0170.00016.60
7.4.80.0060.01019.39
7.4.70.0080.00816.48
7.4.60.0110.00416.50
7.4.50.0030.01116.62
7.4.40.0120.00616.71
7.4.30.0100.00716.62
7.4.00.0000.01715.06
7.3.330.0050.00013.29
7.3.320.0000.00613.37
7.3.310.0000.00716.33
7.3.300.0000.00716.36
7.3.290.0030.00316.41
7.3.280.0080.00816.35
7.3.270.0060.01117.40
7.3.260.0080.00916.46
7.3.250.0090.00816.43
7.3.240.0100.00716.50
7.3.230.0160.00016.45
7.3.210.0070.00716.53
7.3.200.0160.00616.45
7.3.190.0060.01616.59
7.3.180.0100.00716.46
7.3.170.0190.00316.52
7.3.160.0120.00616.49
7.2.330.0150.00316.87
7.2.320.0030.02016.82
7.2.310.0110.00716.63
7.2.300.0140.00516.43
7.2.290.0070.01016.72
7.2.60.0080.00516.73
7.2.50.0070.00716.73
7.1.200.0000.01515.85
7.1.70.0040.00716.86
7.1.60.0100.00017.21
7.1.00.0070.07722.52
7.0.200.0030.00616.68
7.0.140.0070.05722.13
7.0.130.0100.05322.18
7.0.120.0100.05321.96
7.0.110.0000.06322.08
7.0.100.0000.06021.98
7.0.90.0100.05321.98
7.0.80.0100.05722.18
7.0.70.0070.05721.96
7.0.60.0030.06321.89
7.0.50.0070.07722.11
7.0.40.0100.05722.16
7.0.30.0100.05322.14
7.0.20.0070.06722.13
7.0.10.0130.07722.19
7.0.00.0100.07721.98
5.6.290.0070.05320.84
5.6.280.0030.06721.09
5.6.270.0030.06021.09
5.6.260.0070.05320.91
5.6.250.0070.05720.90
5.6.240.0070.08021.11
5.6.230.0070.05721.06
5.6.220.0070.07020.80
5.6.210.0130.05020.83
5.6.200.0030.06021.06
5.6.190.0200.05320.87
5.6.180.0070.06020.74
5.6.170.0100.06721.04
5.6.160.0170.05321.00
5.6.150.0070.07321.04
5.6.140.0100.05720.99
5.6.130.0000.06021.00
5.6.120.0200.05021.02
5.6.110.0130.05320.86
5.6.100.0130.05320.98
5.6.90.0100.05320.72
5.6.80.0130.05020.46
5.6.70.0030.05720.26
5.6.60.0130.05020.26
5.6.50.0100.04720.21
5.6.40.0100.07320.18
5.6.30.0130.07020.41
5.6.20.0100.05320.41
5.6.10.0130.08320.39
5.6.00.0100.05320.37

preferences:
64 ms | 400 KiB | 5 Q