3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $b = 'foo'; } class B extends A { public function __sleep() { return array('b'); } } class C extends A implements Serializable { public function unserialize($serialized) { /*... */ } public function serialize() { $b = new ReflectionProperty('C', 'b'); $b->setAccessible(true); return serialize(array('b' => $b->getValue($this))); } } var_dump(serialize(new A())); var_dump(serialize(new B())); var_dump(serialize(new C()));

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.0100.01016.88
8.3.50.0100.01021.89
8.3.40.0090.00618.91
8.3.30.0040.01118.82
8.3.20.0050.00320.02
8.3.10.0040.00423.52
8.3.00.0080.00019.00
8.2.180.0110.00416.88
8.2.170.0070.01422.96
8.2.160.0130.00320.52
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0030.00626.16
8.2.120.0040.00420.89
8.2.110.0000.00920.46
8.2.100.0000.01217.82
8.2.90.0030.00619.08
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0030.00520.01
8.2.30.0000.00818.18
8.2.20.0000.00817.67
8.2.10.0050.00318.12
8.2.00.0030.00717.73
8.1.280.0140.00025.92
8.1.270.0040.00423.98
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0070.00417.42
8.1.220.0000.00917.74
8.1.210.0040.00718.77
8.1.200.0060.00317.36
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0030.00718.60
8.1.160.0070.00022.02
8.1.150.0000.00718.60
8.1.140.0050.00217.34
8.1.130.0030.00317.70
8.1.120.0000.00717.48
8.1.110.0100.00017.46
8.1.100.0040.00417.30
8.1.90.0040.00417.42
8.1.80.0070.00017.40
8.1.70.0000.00817.39
8.1.60.0030.00517.53
8.1.50.0050.00317.43
8.1.40.0030.00817.54
8.1.30.0060.00317.63
8.1.20.0000.00817.61
8.1.10.0040.00417.44
8.1.00.0040.00417.46
8.0.300.0020.00518.77
8.0.290.0080.00016.75
8.0.280.0040.00418.42
8.0.270.0050.00317.23
8.0.260.0000.00617.20
8.0.250.0030.00316.96
8.0.240.0050.00216.89
8.0.230.0070.00016.87
8.0.220.0020.00516.92
8.0.210.0000.00816.87
8.0.200.0000.00716.96
8.0.190.0050.00516.91
8.0.180.0070.00016.88
8.0.170.0040.00317.04
8.0.160.0040.00416.94
8.0.150.0000.00716.91
8.0.140.0080.00016.82
8.0.130.0000.00613.38
8.0.120.0040.00416.77
8.0.110.0040.00416.80
8.0.100.0060.00316.96
8.0.90.0000.00816.87
8.0.80.0090.00916.90
8.0.70.0000.00716.79
8.0.60.0080.00016.98
8.0.50.0070.00016.94
8.0.30.0070.01017.04
8.0.20.0090.01017.40
8.0.10.0040.00416.97
8.0.00.0080.01116.82
7.4.330.0050.00015.01
7.4.320.0030.00316.46
7.4.300.0060.00016.46
7.4.290.0030.00316.48
7.4.280.0030.00516.44
7.4.270.0000.00716.46
7.4.260.0030.00416.45
7.4.250.0020.00516.55
7.4.240.0040.00316.53
7.4.230.0040.00416.36
7.4.220.0060.01116.49
7.4.210.0070.00916.47
7.4.200.0070.00016.55
7.4.190.0070.00016.52
7.4.160.0090.01216.75
7.4.150.0100.00717.40
7.4.140.0140.00317.86
7.4.130.0100.00716.57
7.4.120.0080.00916.66
7.4.110.0110.01116.66
7.4.100.0100.00716.46
7.4.90.0080.00816.43
7.4.80.0120.00819.39
7.4.70.0100.00716.63
7.4.60.0120.00616.41
7.4.50.0000.00416.59
7.4.40.0070.01516.43
7.4.30.0080.00916.52
7.4.00.0030.01315.04
7.3.330.0030.00313.40
7.3.320.0030.00313.36
7.3.310.0030.00516.29
7.3.300.0000.00716.24
7.3.290.0030.01216.36
7.3.280.0080.01016.38
7.3.270.0070.01017.40
7.3.260.0130.00416.40
7.3.250.0080.01116.34
7.3.240.0200.00016.29
7.3.230.0060.01216.58
7.3.210.0030.01816.63
7.3.200.0060.01219.39
7.3.190.0120.00916.63
7.3.180.0090.00616.33
7.3.170.0060.01016.47
7.3.160.0070.00716.55
7.3.120.0030.01014.95
7.2.330.0170.00716.64
7.2.320.0060.01616.63
7.2.310.0110.00516.33
7.2.300.0090.00916.53
7.2.290.0090.00916.30
7.2.80.0080.00316.58
7.2.60.0070.00716.94
7.2.00.0030.01019.20
7.1.200.0110.00515.55
7.1.100.0070.01018.01
7.1.70.0060.00317.25
7.1.60.0110.01419.46
7.1.50.0070.01716.89
7.1.00.0030.07722.30
7.0.200.0000.01016.73
7.0.140.0070.07022.18
7.0.60.0170.07319.86
7.0.50.0070.08717.86
7.0.40.0030.05717.72
7.0.30.0070.05017.85
7.0.20.0100.08017.71
7.0.10.0130.06717.78
7.0.00.0130.03317.68
5.6.280.0030.07321.05
5.6.210.0070.08720.47
5.6.200.0030.09018.12
5.6.190.0070.05018.23
5.6.180.0100.08318.21
5.6.170.0130.03318.23
5.6.160.0100.03718.29
5.6.150.0130.07318.29
5.6.140.0100.07318.16
5.6.130.0130.08018.11
5.6.120.0030.07318.24
5.6.110.0070.08018.27
5.6.100.0030.08318.22
5.6.90.0070.08318.10
5.6.80.0030.04317.60
5.6.70.0100.08017.53
5.6.60.0070.07717.55
5.6.50.0030.08317.57
5.6.40.0070.06317.59
5.6.30.0000.08317.55
5.6.20.0070.06317.58
5.6.10.0130.03317.50
5.6.00.0100.05017.63
5.5.350.0100.04720.33
5.5.340.0070.05718.03
5.5.330.0070.06718.02
5.5.320.0000.06317.98
5.5.310.0100.07717.95
5.5.300.0070.05018.03
5.5.290.0070.08017.94
5.5.280.0070.08018.04
5.5.270.0030.06318.01
5.5.260.0030.06018.07
5.5.250.0070.04717.77
5.5.240.0000.08717.38
5.5.230.0000.05317.38
5.5.220.0030.08317.41
5.5.210.0070.06717.46
5.5.200.0100.05317.31
5.5.190.0130.04317.36
5.5.180.0030.06717.36
5.5.160.0030.06017.44
5.5.150.0030.07317.30
5.5.140.0030.05317.32
5.5.130.0070.05317.30
5.5.120.0170.04017.32
5.5.110.0130.07717.29
5.5.100.0070.06717.23
5.5.90.0070.05017.33
5.5.80.0030.08317.20
5.5.70.0070.08017.32
5.5.60.0030.04017.26
5.5.50.0030.03717.23
5.5.40.0000.04717.21
5.5.30.0030.05717.22
5.5.20.0000.07717.18
5.5.10.0100.07317.16
5.5.00.0100.05017.27
5.4.450.0030.08719.47
5.4.440.0070.06319.42
5.4.430.0030.08319.27
5.4.420.0000.05319.29
5.4.410.0130.04019.17
5.4.400.0100.07718.89
5.4.390.0000.08319.05
5.4.380.0070.03719.05
5.4.370.0070.05319.09
5.4.360.0100.07718.98
5.4.350.0000.05319.05
5.4.340.0130.07019.02
5.4.320.0030.05319.12
5.4.310.0100.07319.13
5.4.300.0030.05718.89
5.4.290.0100.05719.05
5.4.280.0070.06718.88
5.4.270.0130.06318.88
5.4.260.0130.05019.09
5.4.250.0070.07719.26
5.4.240.0030.06319.01
5.4.230.0070.07019.11
5.4.220.0070.06319.04
5.4.210.0100.04718.97
5.4.200.0000.07019.04
5.4.190.0070.06319.14
5.4.180.0100.03719.02
5.4.170.0030.04719.13
5.4.160.0000.05319.13
5.4.150.0030.08319.04
5.4.140.0100.07016.51
5.4.130.0070.07716.43
5.4.120.0030.04016.51
5.4.110.0070.07016.44
5.4.100.0100.07016.48
5.4.90.0030.04016.48
5.4.80.0070.06716.39
5.4.70.0070.03316.35
5.4.60.0030.04016.43
5.4.50.0270.03716.36
5.4.40.0100.07316.34
5.4.30.0100.07016.46
5.4.20.0030.04716.32
5.4.10.0130.06716.41
5.4.00.0030.04715.80
5.3.290.0170.06714.78
5.3.280.0030.04014.61
5.3.270.0100.06014.58
5.3.260.0070.07714.83
5.3.250.0000.07714.66
5.3.240.0070.07714.61
5.3.230.0100.06714.65
5.3.220.0030.03714.68
5.3.210.0030.08314.60
5.3.200.0100.06014.79
5.3.190.0030.03714.54
5.3.180.0170.06314.52
5.3.170.0070.03714.62
5.3.160.0030.04014.54
5.3.150.0000.04314.60
5.3.140.0100.07014.61
5.3.130.0000.06014.60
5.3.120.0100.07314.57
5.3.110.0100.03714.52
5.3.100.0070.07714.00
5.3.90.0070.07714.09
5.3.80.0000.07014.05
5.3.70.0030.06014.11
5.3.60.0100.03314.04
5.3.50.0100.06314.01
5.3.40.0030.07713.95
5.3.30.0100.07013.96
5.3.20.0100.06713.73
5.3.10.0030.07313.64
5.3.00.0030.07013.53
5.2.170.0070.05011.36
5.2.160.0030.06711.15
5.2.150.0030.03711.06
5.2.140.0070.04311.16
5.2.130.0070.06011.18
5.2.120.0070.06011.13
5.2.110.0030.03711.03
5.2.100.0070.06311.15
5.2.90.0000.04310.96
5.2.80.0030.03011.14
5.2.70.0100.05711.17
5.2.60.0000.04711.11
5.2.50.0000.04311.07
5.2.40.0100.02311.05
5.2.30.0000.03311.05
5.2.20.0030.03010.99
5.2.10.0030.06310.88
5.2.00.0070.05010.76
5.1.60.0100.03310.05
5.1.50.0030.0279.98
5.1.40.0070.0539.98
5.1.30.0030.05310.30
5.1.20.0030.05310.43
5.1.10.0100.05310.15
5.1.00.0070.05710.12
5.0.50.0070.0438.47
5.0.40.0030.0478.46
5.0.30.0070.0638.27
5.0.20.0030.0408.14
5.0.10.0030.0408.40
5.0.00.0030.0678.26
4.4.90.0000.0307.84
4.4.80.0000.0377.84
4.4.70.0030.0377.84
4.4.60.0030.0307.84
4.4.50.0070.0337.84
4.4.40.0000.0307.84
4.4.30.0000.0307.84
4.4.20.0000.0407.84
4.4.10.0030.0377.84
4.4.00.0030.0537.84
4.3.110.0030.0377.84
4.3.100.0100.0237.84
4.3.90.0000.0337.84
4.3.80.0030.0507.84
4.3.70.0030.0377.84
4.3.60.0000.0377.84
4.3.50.0000.0377.84
4.3.40.0030.0507.84
4.3.30.0030.0337.84
4.3.20.0000.0307.84
4.3.10.0070.0337.84
4.3.00.0000.0307.84

preferences:
38.86 ms | 401 KiB | 5 Q