3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A extends \ReflectionClass implements \Serializable { public function serialize() { return serialize($this->name); } public function unserialize($serialized) { $this->__construct(unserialize($serialized)); } } $a = new A('stdClass'); $serialized = serialize($a); var_dump($serialized); $unserialized = unserialize($serialized); var_dump($unserialized);

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.40.0100.01018.79
8.3.30.0060.00919.09
8.3.20.0040.00420.20
8.3.10.0000.00723.48
8.3.00.0070.00417.63
8.2.170.0070.00722.96
8.2.160.0100.00320.34
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.01326.16
8.2.120.0040.00422.25
8.2.110.0060.00322.06
8.2.100.0060.00617.91
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0030.00518.26
8.2.30.0040.00418.02
8.2.20.0040.00417.63
8.2.10.0030.00617.71
8.2.00.0070.00017.81
8.1.270.0050.00222.19
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00323.79
8.1.230.0110.00019.04
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00917.53
8.1.180.0040.00418.10
8.1.170.0030.00718.56
8.1.160.0000.00722.02
8.1.150.0000.00718.64
8.1.140.0000.00817.45
8.1.130.0070.00017.87
8.1.120.0030.00517.48
8.1.110.0040.00417.46
8.1.100.0040.00417.52
8.1.90.0030.00417.46
8.1.80.0000.00717.48
8.1.70.0030.00317.41
8.1.60.0030.00617.55
8.1.50.0040.00417.57
8.1.40.0040.00417.47
8.1.30.0040.00417.61
8.1.20.0030.00517.49
8.1.10.0040.00417.56
8.1.00.0040.00417.59
8.0.300.0040.00418.77
8.0.290.0000.00716.91
8.0.280.0000.00718.38
8.0.270.0030.00317.13
8.0.260.0030.00316.73
8.0.250.0070.00016.96
8.0.240.0030.00416.88
8.0.230.0000.01016.91
8.0.220.0040.00416.78
8.0.210.0020.00516.79
8.0.200.0030.00316.84
8.0.190.0040.00416.95
8.0.180.0090.00316.80
8.0.170.0050.00316.91
8.0.160.0110.00016.81
8.0.150.0030.00316.73
8.0.140.0070.00016.77
8.0.130.0000.00813.30
8.0.120.0000.00716.85
8.0.110.0040.00416.88
8.0.100.0070.00016.78
8.0.90.0050.00316.86
8.0.80.0030.01216.95
8.0.70.0000.00716.88
8.0.60.0040.00416.91
8.0.50.0050.00216.80
8.0.30.0110.00817.05
8.0.20.0100.00717.40
8.0.10.0040.00417.08
8.0.00.0140.00716.79
7.4.330.0020.00215.04
7.4.320.0030.00316.59
7.4.300.0030.00316.45
7.4.290.0040.00416.34
7.4.280.0030.00316.43
7.4.270.0060.00016.44
7.4.260.0030.00316.48
7.4.250.0030.00316.40
7.4.240.0070.00016.43
7.4.230.0030.00516.28
7.4.220.0070.01016.39
7.4.210.0060.00916.55
7.4.200.0070.00016.36
7.4.190.0030.00316.64
7.4.160.0060.00916.41
7.4.150.0160.00317.40
7.4.140.0050.01117.86
7.4.130.0120.01016.58
7.4.120.0130.00716.69
7.4.110.0130.00316.42
7.4.100.0080.01616.30
7.4.90.0030.01316.41
7.4.80.0130.00419.39
7.4.70.0070.01016.36
7.4.60.0150.00016.36
7.4.50.0020.00216.43
7.4.40.0130.00322.77
7.4.30.0030.01216.55
7.4.00.0030.01414.74
7.3.330.0050.00013.29
7.3.320.0000.00613.13
7.3.310.0000.00716.35
7.3.300.0050.00216.31
7.3.290.0100.00616.31
7.3.280.0070.01216.33
7.3.270.0040.01317.40
7.3.260.0140.00316.30
7.3.250.0150.00616.60
7.3.240.0150.00316.41
7.3.230.0150.00616.39
7.3.210.0070.01016.51
7.3.200.0130.00619.39
7.3.190.0080.01216.52
7.3.180.0030.01416.64
7.3.170.0040.01516.29
7.3.160.0100.00716.43
7.3.120.0070.01014.74
7.2.330.0060.01116.48
7.2.320.0130.00416.70
7.2.310.0150.00916.46
7.2.300.0070.01116.49
7.2.290.0090.00916.70
7.2.00.0040.00819.25
7.1.100.0030.00917.99
7.1.70.0000.00717.03
7.1.60.0140.01119.31
7.1.50.0030.01216.57
7.1.00.0070.07322.33
7.0.200.0080.00816.82
7.0.140.0030.07321.92
7.0.60.0030.07019.94
7.0.50.0070.08017.88
7.0.40.0030.04320.18
7.0.30.0430.05720.26
7.0.20.0300.05020.15
7.0.10.0070.08720.16
7.0.00.0000.07320.09
5.6.280.0070.07021.16
5.6.210.0030.06320.72
5.6.200.0070.08718.18
5.6.190.0100.04020.41
5.6.180.0470.05720.34
5.6.170.0130.05320.51
5.6.160.0030.08020.46
5.6.150.0070.08018.14
5.6.140.0070.08318.17
5.6.130.0070.06018.13
5.6.120.0170.07020.98
5.6.110.0070.07020.99
5.6.100.0100.04021.19
5.6.90.0030.08721.01
5.6.80.0100.05720.49
5.5.350.3870.03720.46
5.5.340.0070.08017.94
5.5.330.0130.04720.25
5.5.320.0100.08020.34
5.5.310.0330.08320.27
5.5.300.0130.07717.95
5.5.290.0170.06017.98
5.5.280.0070.08720.74
5.5.270.0030.06720.87
5.5.260.0030.07720.85
5.5.250.0030.07720.69
5.5.240.0230.06320.16
5.4.450.0070.04719.48
5.4.440.0170.03719.48
5.4.430.0200.04719.63
5.4.420.0230.03719.41
5.4.410.0130.03719.14
5.4.400.0130.04319.25
5.4.390.0100.04019.23
5.4.380.0130.03719.22
5.4.370.0200.04319.24
5.4.360.0200.03019.15
5.4.350.0170.03718.87
5.4.340.0230.03019.22
5.4.320.0270.06719.09
5.4.310.0230.07318.87
5.4.300.0200.05019.14
5.4.290.0370.05319.31
5.4.280.0300.07019.22
5.4.270.0270.04019.09
5.4.260.0300.06719.22
5.4.250.0270.05019.08
5.4.240.0130.04319.18
5.4.230.0270.07319.09
5.4.220.0200.08019.30
5.4.210.0370.03719.19
5.4.200.0300.06319.21
5.4.190.0300.05719.14
5.4.180.0230.07019.18
5.4.170.0330.05319.14
5.4.160.0430.03318.83
5.4.150.0330.05719.14
5.4.140.0230.07316.30
5.4.130.0300.04716.35
5.4.120.0230.07316.38
5.4.110.0170.07016.28
5.4.100.0230.06716.28
5.4.90.0230.04016.54
5.4.80.0270.06316.28
5.4.70.0230.07016.44
5.4.60.0200.07016.38
5.4.50.0300.05016.53
5.4.40.0230.06716.32
5.4.30.0270.06316.43
5.4.20.0130.06716.54
5.4.10.0270.05716.53
5.4.00.0330.06015.95
5.3.290.0230.05314.65
5.3.280.0170.04714.53
5.3.270.0200.07714.84
5.3.260.0470.03014.63
5.3.250.0270.04314.54
5.3.240.0200.06714.73
5.3.230.0200.07014.70
5.3.220.0370.05714.56
5.3.210.0230.07314.59
5.3.200.0200.06314.50
5.3.190.0200.07314.57
5.3.180.0200.05014.58
5.3.170.0200.08014.55
5.3.160.0200.06714.70
5.3.150.0270.06714.58
5.3.140.0200.04014.79
5.3.130.0200.07714.46
5.3.120.0200.07014.57
5.3.110.0230.07314.60
5.3.100.0200.07313.96
5.3.90.0230.07314.12
5.3.80.0200.05014.19
5.3.70.0230.06314.04
5.3.60.0230.04314.10
5.3.50.0330.05713.88
5.3.40.0130.04014.01
5.3.30.0170.05713.85
5.3.20.0270.06313.63
5.3.10.0130.04313.60
5.3.00.0200.05713.74
5.2.170.0100.04013.39
5.2.160.0230.02013.39
5.2.150.0130.04013.39
5.2.140.0170.06013.39
5.2.130.0100.05713.39
5.2.120.0130.05013.39
5.2.110.0100.06313.39
5.2.100.0200.05713.39
5.2.90.0170.05013.39
5.2.80.0170.03313.39
5.2.70.0200.06013.39
5.2.60.0130.05313.39
5.2.50.0230.05013.39
5.2.40.0170.05713.39
5.2.30.0200.05313.39
5.2.20.0100.06313.39
5.2.10.0100.04313.39
5.2.00.0170.03713.39
5.1.60.0130.05013.39
5.1.50.0130.04713.39
5.1.40.0170.03313.39
5.1.30.0130.04313.39
5.1.20.0170.03313.39
5.1.10.0070.05313.39
5.1.00.0100.05713.39
5.0.50.0100.04313.39
5.0.40.0070.03313.39
5.0.30.0000.05713.39
5.0.20.0200.03013.39
5.0.10.0130.03313.39
5.0.00.0100.03713.39
4.4.90.0030.03013.39
4.4.80.0030.03013.39
4.4.70.0070.02713.39
4.4.60.0030.03313.39
4.4.50.0030.02713.39
4.4.40.0070.04313.39
4.4.30.0000.03313.39
4.4.20.0100.02313.39
4.4.10.0030.04013.39
4.4.00.0030.05713.39
4.3.110.0100.03313.39
4.3.100.0030.03313.39
4.3.90.0070.03313.39
4.3.80.0070.05013.39
4.3.70.0070.03313.39
4.3.60.0070.03313.39
4.3.50.0130.02713.39
4.3.40.0070.05713.39
4.3.30.0030.03713.39
4.3.20.0000.02313.39
4.3.10.0030.03713.39
4.3.00.0070.02013.39

preferences:
44.95 ms | 400 KiB | 5 Q