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)); $this->name = unserialize($serialized); } } $a = new A('ReflectionClass'); $serialized = serialize($a); var_dump($serialized); $unserialized = unserialize($serialized); var_dump($unserialized == $a); var_dump($unserialized === $a); var_dump($unserialized->getConstants());

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.0090.01216.88
8.3.50.0090.01116.57
8.3.40.0090.00618.75
8.3.30.0140.00018.84
8.3.20.0030.00518.82
8.3.10.0040.00420.57
8.3.00.0050.00319.38
8.2.180.0120.00916.88
8.2.170.0100.00722.96
8.2.160.0040.01120.47
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0060.00319.89
8.2.110.0030.00619.30
8.2.100.0000.01218.03
8.2.90.0000.00920.74
8.2.80.0080.00018.05
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0080.00318.07
8.2.40.0030.00518.09
8.2.30.0040.00418.04
8.2.20.0000.00817.76
8.2.10.0040.00417.71
8.2.00.0070.00417.79
8.1.280.0030.01425.92
8.1.270.0000.00824.66
8.1.260.0090.00626.35
8.1.250.0080.00028.09
8.1.240.0040.00917.45
8.1.230.0090.00317.42
8.1.220.0000.00817.74
8.1.210.0030.00618.91
8.1.200.0000.00917.35
8.1.190.0040.00417.55
8.1.180.0050.00318.10
8.1.170.0030.00618.88
8.1.160.0040.00418.85
8.1.150.0000.00718.62
8.1.140.0070.00017.37
8.1.130.0080.00017.82
8.1.120.0070.00017.31
8.1.110.0030.00617.44
8.1.100.0000.00717.51
8.1.90.0040.00417.45
8.1.80.0000.00817.45
8.1.70.0000.00717.44
8.1.60.0060.00317.56
8.1.50.0040.00417.46
8.1.40.0050.00317.50
8.1.30.0040.00417.51
8.1.20.0100.00017.64
8.1.10.0040.00417.47
8.1.00.0060.00317.50
8.0.300.0000.00819.94
8.0.290.0070.00016.75
8.0.280.0000.00718.31
8.0.270.0070.00017.19
8.0.260.0000.00716.86
8.0.250.0000.00716.82
8.0.240.0030.00616.95
8.0.230.0070.00016.96
8.0.220.0000.00716.85
8.0.210.0030.00316.77
8.0.200.0060.00016.93
8.0.190.0050.00316.83
8.0.180.0040.00416.93
8.0.170.0050.00316.93
8.0.160.0030.00316.88
8.0.150.0000.00816.77
8.0.140.0070.00016.90
8.0.130.0000.00613.31
8.0.120.0040.00416.85
8.0.110.0040.00416.85
8.0.100.0000.00716.91
8.0.90.0000.00816.88
8.0.80.0160.00016.89
8.0.70.0050.00316.84
8.0.60.0040.00416.77
8.0.50.0000.00716.81
8.0.30.0090.00916.94
8.0.20.0110.01016.94
8.0.10.0000.00716.86
8.0.00.0080.00916.61
7.4.330.0050.00012.93
7.4.320.0000.00616.35
7.4.300.0000.00716.41
7.4.290.0000.00816.46
7.4.280.0000.00716.43
7.4.270.0040.00416.52
7.4.260.0000.00513.13
7.4.250.0000.00816.55
7.4.240.0000.00716.38
7.4.230.0030.00316.61
7.4.220.0070.01116.52
7.4.210.0080.00916.43
7.4.200.0030.00316.32
7.4.190.0070.00016.57
7.4.160.0150.00016.25
7.4.150.0150.00316.39
7.4.140.0090.00916.50
7.4.130.0100.00816.49
7.4.120.0100.00716.33
7.4.110.0070.01016.49
7.4.100.0030.01316.56
7.4.90.0070.01016.34
7.4.80.0030.01916.42
7.4.70.0130.00316.08
7.4.60.0080.00816.39
7.4.50.0030.00516.31
7.4.40.0070.01016.42
7.4.30.0080.00816.29
7.4.10.0030.01114.95
7.4.00.0060.01014.81
7.3.330.0030.00313.35
7.3.320.0030.00313.21
7.3.310.0030.00316.26
7.3.300.0000.00716.31
7.3.290.0030.01016.44
7.3.280.0080.00916.42
7.3.270.0150.00316.38
7.3.260.0140.00716.48
7.3.250.0130.00716.43
7.3.240.0140.00516.68
7.3.230.0160.00016.61
7.3.210.0060.01616.47
7.3.200.0120.00619.39
7.3.190.0120.00816.36
7.3.180.0060.01216.57
7.3.170.0060.01116.47
7.3.160.0060.00916.47
7.3.130.0090.00614.88
7.3.120.0090.00914.96
7.3.110.0000.01914.75
7.3.100.0000.01315.08
7.3.90.0060.00914.57
7.3.80.0030.01214.95
7.3.70.0000.01414.67
7.3.60.0000.01614.62
7.3.50.0000.00814.73
7.3.40.0000.01214.74
7.3.30.0040.01114.72
7.3.20.0000.01016.70
7.3.10.0090.00616.40
7.3.00.0090.00616.46
7.2.330.0030.01416.65
7.2.320.0080.00916.80
7.2.310.0040.01516.71
7.2.300.0130.00616.77
7.2.290.0110.00716.48
7.2.260.0030.01315.14
7.2.250.0120.00314.92
7.2.240.0070.01014.97
7.2.230.0070.00714.86
7.2.220.0030.01215.33
7.2.210.0130.00315.28
7.2.200.0060.01314.90
7.2.190.0030.00615.00
7.2.180.0030.00915.02
7.2.170.0000.01315.23
7.2.160.0130.00015.18
7.2.150.0070.01016.77
7.2.140.0030.00617.14
7.2.130.0060.00916.94
7.2.120.0000.01016.86
7.2.110.0000.01517.07
7.2.100.0070.01116.86
7.2.90.0070.00716.88
7.2.80.0060.00916.93
7.2.70.0120.00317.00
7.2.60.0100.00616.92
7.2.50.0030.00617.18
7.2.40.0040.00716.80
7.2.30.0150.00316.97
7.2.20.0050.00616.92
7.2.10.0100.00316.98
7.2.00.0000.01316.89
7.1.330.0100.00015.63
7.1.320.0000.01015.73
7.1.310.0060.00315.77
7.1.300.0070.01015.41
7.1.290.0060.00615.68
7.1.280.0080.00415.56
7.1.270.0030.00915.55
7.1.260.0060.00615.70
7.1.250.0130.00315.91
7.1.240.0030.01015.87
7.1.230.0030.00915.73
7.1.220.0060.00615.86
7.1.210.0090.00615.54
7.1.200.0100.00115.67
7.1.190.0070.01015.40
7.1.180.0060.00615.46
7.1.170.0070.00315.55
7.1.160.0120.00315.82
7.1.150.0090.00615.89
7.1.140.0040.00715.79
7.1.130.0120.00315.63
7.1.120.0040.00715.75
7.1.110.0070.00315.88
7.1.100.0030.00916.94
7.1.90.0070.00715.45
7.1.80.0030.01315.89
7.1.70.0030.01116.47
7.1.60.0090.00317.60
7.1.50.0050.01116.21
7.1.40.0100.00015.75
7.1.30.0060.00315.77
7.1.20.0030.00615.50
7.1.10.0040.00815.75
7.1.00.0020.04018.98
7.0.330.0060.00615.49
7.0.320.0070.00715.46
7.0.310.0070.00715.52
7.0.300.0100.00315.40
7.0.290.0060.00615.50
7.0.280.0030.01315.21
7.0.270.0050.00915.18
7.0.260.0030.01015.42
7.0.250.0140.00015.27
7.0.240.0000.01215.22
7.0.230.0060.00615.52
7.0.220.0040.00715.51
7.0.210.0000.01615.43
7.0.200.0120.00615.04
7.0.190.0070.01015.52
7.0.180.0030.00915.51
7.0.170.0030.00615.45
7.0.160.0090.00315.16
7.0.150.0070.00715.34
7.0.140.0060.03618.62
7.0.130.0030.01015.21
7.0.120.0080.03818.72
7.0.110.0060.00615.45
7.0.100.0030.00614.99
7.0.90.0040.01115.43
7.0.80.0000.01015.45
7.0.70.0030.01015.59
7.0.60.0030.02517.71
7.0.50.0140.03816.57
7.0.40.0090.04716.84
7.0.30.0150.02916.81
7.0.20.0210.04116.77
7.0.10.0070.04816.92
7.0.00.0050.02916.74
5.6.400.0060.00314.38
5.6.390.0100.00714.71
5.6.380.0040.01114.31
5.6.370.0030.01014.66
5.6.360.0100.00314.41
5.6.350.0110.00714.49
5.6.340.0000.01314.34
5.6.330.0080.00814.42
5.6.320.0000.01314.26
5.6.310.0110.00414.59
5.6.300.0060.00914.41
5.6.290.0040.00414.21
5.6.280.0050.04217.76
5.6.270.0000.01714.53
5.6.260.0030.01014.46
5.6.250.0070.00714.82
5.6.240.0070.01014.23
5.6.230.0100.00714.32
5.6.220.0070.01014.48
5.6.210.0050.03317.46
5.6.200.0120.03716.42
5.6.190.0040.02417.51
5.6.180.1300.02917.61
5.6.170.0150.02517.46
5.6.160.0100.03817.49
5.6.150.0070.02216.29
5.6.140.0080.03316.24
5.6.130.0020.03016.16
5.6.120.0070.03717.66
5.6.110.0040.04717.71
5.6.100.0180.03517.64
5.6.90.0000.05117.63
5.6.80.0080.04017.54
5.6.70.0060.00314.29
5.6.60.0030.00614.29
5.6.50.0000.01114.46
5.6.40.0030.01014.23
5.6.30.0000.01414.25
5.6.20.0070.00714.38
5.6.10.0030.01314.20
5.6.00.0030.01014.23
5.5.380.0040.01114.50
5.5.370.0030.01314.26
5.5.360.0040.00714.01
5.5.350.0200.03917.49
5.5.340.0080.04016.13
5.5.330.0030.04217.43
5.5.320.0230.03617.44
5.5.310.0120.03917.30
5.5.300.0120.04016.11
5.5.290.0020.04716.19
5.5.280.0050.03117.62
5.5.270.0030.03117.60
5.5.260.0090.03517.50
5.5.250.0060.03517.34
5.5.240.0130.03717.23
5.5.230.0070.00714.28
5.5.220.0110.00314.06
5.5.210.0030.00714.30
5.5.200.0030.01414.35
5.5.190.0000.00814.07
5.5.180.0030.00614.17
5.5.170.0000.01414.15
5.5.160.0100.00614.25
5.5.150.0030.00613.88
5.5.140.0040.01114.53
5.5.130.0030.01414.08
5.5.120.0070.00714.22
5.5.110.0070.01014.11
5.5.100.0170.00014.05
5.5.90.0110.00714.09
5.5.80.0000.01314.21
5.5.70.0030.01314.11
5.5.60.0060.00614.06
5.5.50.0030.01314.06
5.5.40.0060.01014.38
5.5.30.0070.01013.84
5.5.20.0060.01214.39
5.5.10.0000.00914.23
5.5.00.0140.00014.29
5.4.450.0050.02615.82
5.4.440.0070.03915.75
5.4.430.0050.03615.82
5.4.420.0070.04415.94
5.4.410.0080.03315.81
5.4.400.0030.02415.65
5.4.390.0050.04415.74
5.4.380.0050.02915.76
5.4.370.0050.02215.73
5.4.360.0080.03315.74
5.4.350.0040.02815.78
5.4.340.0030.03015.62
5.4.330.0000.00612.31
5.4.320.0030.02215.74
5.4.310.0050.03615.70
5.4.300.0030.02715.70
5.4.290.0030.02215.71
5.4.280.0050.04215.71
5.4.270.0050.03815.73
5.4.260.0050.02015.65
5.4.250.0100.02015.65
5.4.240.0040.02415.59
5.4.230.0050.02215.77
5.4.220.0020.02415.73
5.4.210.0070.01815.71
5.4.200.0080.01815.77
5.4.190.0050.02015.76
5.4.180.0000.02415.75
5.4.170.0130.02015.65
5.4.160.0060.02015.57
5.4.150.0050.02315.75
5.4.140.0030.02114.39
5.4.130.0000.02214.37
5.4.120.0070.01814.34
5.4.110.0020.02614.37
5.4.100.0030.02014.38
5.4.90.0040.01914.37
5.4.80.0040.02414.40
5.4.70.0050.02214.32
5.4.60.0090.01814.42
5.4.50.0030.02014.30
5.4.40.0030.02114.38
5.4.30.0060.02014.38
5.4.20.0030.02014.38
5.4.10.0060.02014.38
5.4.00.0060.02014.10
5.3.290.0060.03113.52
5.3.280.0050.02313.46
5.3.270.0030.02713.47
5.3.260.0040.02013.48
5.3.250.0030.02213.41
5.3.240.0050.02513.43
5.3.230.0050.03113.47
5.3.220.0050.01813.46
5.3.210.0000.02513.54
5.3.200.0070.01713.46
5.3.190.0040.02013.39
5.3.180.0050.02013.41
5.3.170.0000.02613.48
5.3.160.0000.02513.39
5.3.150.0030.02213.45
5.3.140.0030.02013.48
5.3.130.0000.02713.47
5.3.120.0050.02013.45
5.3.110.0010.02113.46
5.3.100.0010.02413.23
5.3.90.0010.02313.18
5.3.80.0050.01813.20
5.3.70.0040.03613.18
5.3.60.0050.02713.20
5.3.50.0000.04513.18
5.3.40.0090.03413.22
5.3.30.0070.03713.15
5.3.20.0050.03513.02
5.3.10.0030.04012.94
5.3.00.0070.02712.98
5.2.170.0070.04311.06
5.2.160.0000.06311.22
5.2.150.0070.06011.24
5.2.140.0030.04011.24
5.2.130.0030.03711.08
5.2.120.0070.04011.05
5.2.110.0000.06011.10
5.2.100.0030.03711.13
5.2.90.0070.06011.28
5.2.80.0000.04011.13
5.2.70.0130.02711.29
5.2.60.0030.06011.03
5.2.50.0100.02711.20
5.2.40.0000.03311.01
5.2.30.0130.05710.99
5.2.20.0030.05310.97
5.2.10.0030.03010.94
5.2.00.0070.04310.79
5.1.60.0030.04010.10
5.1.50.0030.03010.02
5.1.40.0030.0509.97
5.1.30.0000.04310.36
5.1.20.0000.03710.39
5.1.10.0070.05310.25
5.1.00.0030.04310.16
5.0.50.0000.0478.54
5.0.40.0030.0278.45
5.0.30.0030.0638.21
5.0.20.0030.0378.12
5.0.10.0030.0208.23
5.0.00.0130.0278.15
4.4.90.0000.0377.95
4.4.80.0070.0137.95
4.4.70.0130.0277.95
4.4.60.0000.0277.95
4.4.50.0000.0177.95
4.4.40.0070.0507.95
4.4.30.0030.0207.95
4.4.20.0030.0207.95
4.4.10.0030.0207.95
4.4.00.0070.0437.95
4.3.110.0030.0207.95
4.3.100.0030.0277.95
4.3.90.0030.0307.95
4.3.80.0070.0507.95
4.3.70.0070.0237.95
4.3.60.0000.0177.95
4.3.50.0030.0137.95
4.3.40.0000.0537.95
4.3.30.0000.0277.95
4.3.20.0030.0177.95
4.3.10.0000.0207.95
4.3.00.0000.0177.95

preferences:
47.31 ms | 401 KiB | 5 Q