3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = "a"; protected $b = "b"; public $c = "c"; } class B extends A implements Serializable { public function serialize() { $that = $this; return serialize($that); } public function unserialize($serialized) { } private $a = "a"; protected $b = "b"; public $c = "c"; } var_dump(json_encode(new A())); var_dump(json_encode(new B()));

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.0110.00718.71
8.3.30.0140.00018.96
8.3.20.0080.00020.27
8.3.10.0040.00423.52
8.3.00.0000.00819.13
8.2.170.0060.00822.96
8.2.160.0050.00820.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0000.00722.27
8.2.110.0060.00320.35
8.2.100.0120.00017.72
8.2.90.0080.00019.23
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0110.00017.80
8.2.50.0140.00018.07
8.2.40.0060.00319.76
8.2.30.0090.00019.79
8.2.20.0030.00617.61
8.2.10.0000.00717.88
8.2.00.0030.00717.61
8.1.270.0080.00023.70
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00422.18
8.1.230.0120.00017.42
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0070.00017.28
8.1.180.0040.00418.10
8.1.170.0000.00718.59
8.1.160.0030.00521.98
8.1.150.0070.00018.45
8.1.140.0050.00217.44
8.1.130.0040.00417.70
8.1.120.0040.00417.47
8.1.110.0050.00317.30
8.1.100.0070.00017.39
8.1.90.0040.00417.29
8.1.80.0000.00717.44
8.1.70.0000.00817.28
8.1.60.0040.00417.45
8.1.50.0030.00517.35
8.1.40.0000.00917.46
8.1.30.0060.00317.46
8.1.20.0040.00417.53
8.1.10.0000.00717.41
8.1.00.0060.00317.28
8.0.300.0030.00618.77
8.0.290.0050.00316.75
8.0.280.0030.00318.42
8.0.270.0070.00017.21
8.0.260.0030.00317.38
8.0.250.0000.00717.02
8.0.240.0070.00416.93
8.0.230.0040.00416.86
8.0.220.0040.00416.87
8.0.210.0000.00616.82
8.0.200.0000.00716.96
8.0.190.0000.00716.82
8.0.180.0030.00516.89
8.0.170.0040.00416.95
8.0.160.0040.00416.86
8.0.150.0060.00516.83
8.0.140.0000.00716.79
8.0.130.0050.00013.23
8.0.120.0000.00716.79
8.0.110.0040.00416.80
8.0.100.0000.00716.68
8.0.90.0040.00416.66
8.0.80.0110.00416.80
8.0.70.0000.00716.85
8.0.60.0040.00416.88
8.0.50.0040.00416.86
8.0.30.0100.01116.83
8.0.20.0130.00517.40
8.0.10.0030.00516.94
8.0.00.0080.01016.76
7.4.330.0050.00015.00
7.4.320.0070.00016.54
7.4.300.0050.00216.59
7.4.290.0030.00316.48
7.4.280.0050.00216.34
7.4.270.0040.00416.54
7.4.260.0080.00016.41
7.4.250.0000.00716.34
7.4.240.0040.00416.53
7.4.230.0000.00716.31
7.4.220.0060.01316.44
7.4.210.0050.00916.49
7.4.200.0070.00016.24
7.4.190.0040.00416.71
7.4.160.0070.01516.57
7.4.150.0110.00617.40
7.4.140.0100.00817.86
7.4.130.0060.01216.33
7.4.120.0110.00716.49
7.4.110.0120.00416.35
7.4.100.0050.01416.59
7.4.90.0090.00916.50
7.4.80.0030.01319.39
7.4.70.0090.00916.40
7.4.60.0060.01016.35
7.4.50.0060.00316.57
7.4.40.0130.00716.53
7.4.30.0160.00016.40
7.4.00.0060.00714.92
7.3.330.0000.00613.21
7.3.320.0030.00313.11
7.3.310.0000.00816.23
7.3.300.0030.00316.13
7.3.290.0070.01016.16
7.3.280.0080.00816.24
7.3.270.0060.01017.40
7.3.260.0090.00916.61
7.3.250.0090.01016.45
7.3.240.0060.01116.29
7.3.230.0120.00716.39
7.3.210.0100.00716.47
7.3.200.0090.01319.39
7.3.190.0140.00316.50
7.3.180.0030.01316.29
7.3.170.0060.01016.31
7.3.160.0080.00816.61
7.3.120.0080.00814.65
7.3.110.0060.00914.53
7.3.100.0100.01014.80
7.3.90.0070.01015.00
7.3.80.0130.00314.89
7.3.70.0090.00614.48
7.3.60.0080.00314.57
7.3.50.0030.00914.48
7.3.40.0090.00014.66
7.3.30.0090.00314.43
7.3.20.0030.01016.66
7.3.10.0000.01316.40
7.3.00.0080.01116.39
7.2.330.0120.00616.60
7.2.320.0070.01116.35
7.2.310.0070.01016.29
7.2.300.0000.01616.51
7.2.290.0070.01016.31
7.2.250.0060.00914.98
7.2.240.0140.00714.79
7.2.230.0070.01014.60
7.2.220.0110.00014.83
7.2.210.0070.01014.64
7.2.200.0060.00915.13
7.2.190.0070.01114.97
7.2.180.0090.00614.57
7.2.170.0070.00714.93
7.2.160.0000.00914.83
7.2.150.0040.00716.57
7.2.140.0030.01416.49
7.2.130.0120.00316.81
7.2.120.0000.01116.59
7.2.110.0070.00716.82
7.2.100.0060.00316.72
7.2.90.0060.01216.92
7.2.80.0070.00716.84
7.2.70.0070.00316.81
7.2.60.0040.01116.61
7.2.50.0030.01016.88
7.2.40.0030.01616.96
7.2.30.0060.01016.91
7.2.20.0060.00816.73
7.2.10.0030.00916.79
7.2.00.0060.00617.94
7.1.330.0040.01515.83
7.1.320.0070.01015.74
7.1.310.0050.00515.71
7.1.300.0080.00815.61
7.1.290.0070.00715.64
7.1.280.0000.01515.79
7.1.270.0090.00615.33
7.1.260.0100.01015.48
7.1.250.0030.00715.57
7.1.240.0060.00915.59
7.1.230.0070.00315.77
7.1.220.0030.01115.85
7.1.210.0030.01015.41
7.1.200.0000.01415.64
7.1.190.0030.01415.56
7.1.180.0060.00915.56
7.1.170.0070.01115.31
7.1.160.0000.01315.39
7.1.150.0060.00915.75
7.1.140.0090.00615.60
7.1.130.0040.00415.50
7.1.120.0030.00615.66
7.1.110.0000.00915.38
7.1.100.0050.00816.81
7.1.90.0100.01015.80
7.1.80.0090.00615.48
7.1.70.0040.00416.08
7.1.60.0090.00917.55
7.1.50.0070.01216.10
7.1.40.0140.00015.77
7.1.30.0000.01515.57
7.1.20.0030.00615.61
7.1.10.0060.00615.72
7.1.00.0050.04218.97
7.0.330.0090.00915.40
7.0.320.0030.00615.45
7.0.310.0030.00915.45
7.0.300.0030.01315.36
7.0.290.0090.00315.29
7.0.280.0060.00615.05
7.0.270.0030.00915.35
7.0.260.0000.01015.27
7.0.250.0060.00615.34
7.0.240.0090.00315.26
7.0.230.0030.01715.40
7.0.220.0000.01115.26
7.0.210.0000.01115.26
7.0.200.0210.00814.71
7.0.190.0070.00715.39
7.0.180.0120.00015.36
7.0.170.0000.01015.35
7.0.160.0030.00515.00
7.0.150.0110.00415.34
7.0.140.0020.04118.67
7.0.130.0070.00715.47
7.0.120.0030.00615.30
7.0.110.0110.04317.56
7.0.100.0090.04017.63
7.0.90.0020.04617.49
7.0.80.0020.04817.53
7.0.70.0100.03517.60
7.0.60.0070.04517.70
7.0.50.0070.04317.65
7.0.40.0120.03716.56
7.0.30.0070.04516.58
7.0.20.0090.04516.49
7.0.10.0020.04916.49
7.0.00.0100.04216.57
5.6.400.0160.00314.41
5.6.390.0030.00513.96
5.6.380.0030.00714.46
5.6.370.0060.00314.38
5.6.360.0070.01014.29
5.6.350.0080.00314.25
5.6.340.0030.00614.34
5.6.330.0100.00014.26
5.6.320.0070.01014.18
5.6.310.0100.00314.41
5.6.300.0130.00314.25
5.6.290.0030.00914.18
5.6.280.0050.03917.55
5.6.270.0070.00714.24
5.6.260.0060.03817.39
5.6.250.0090.04317.46
5.6.240.0090.03917.46
5.6.230.0070.04317.42
5.6.220.0130.02317.38
5.6.210.0070.04217.34
5.6.200.0100.03917.62
5.6.190.0020.04517.50
5.6.180.0070.04517.49
5.6.170.0050.04717.54
5.6.160.0060.04217.41
5.6.150.0070.04417.46
5.6.140.0020.05017.47
5.6.130.0120.03917.58
5.6.120.0120.03817.58
5.6.110.0070.02817.32
5.6.100.0030.04417.56
5.6.90.0120.03017.41
5.6.80.0070.03717.24
5.6.70.0050.04417.06
5.6.60.0060.04116.96
5.6.50.0090.03617.06
5.6.40.0050.03817.11
5.6.30.0100.04017.01
5.6.20.0030.04717.09
5.6.10.0080.04016.96
5.6.00.0110.02717.01
5.5.380.0070.04317.29
5.5.370.0120.03817.42
5.5.360.0080.03817.43
5.5.350.0060.02817.34
5.5.340.0070.04317.45
5.5.330.0030.04917.62
5.5.320.0050.04517.34
5.5.310.0080.04317.50
5.5.300.0080.03517.58
5.5.290.0110.02617.34
5.5.280.0140.03817.49
5.5.270.0080.04117.42
5.5.260.0050.03517.70
5.5.250.0120.04017.21
5.5.240.0070.04417.18
5.5.230.0090.02417.33
5.5.220.0050.04517.17
5.5.210.0040.03017.17
5.5.200.0070.04417.04
5.5.190.0050.03117.02
5.5.180.0080.04117.23
5.5.170.0090.00314.25
5.5.160.0090.03717.28
5.5.150.0020.04817.22
5.5.140.0060.03817.16
5.5.130.0050.04116.97
5.5.120.0070.04017.26
5.5.110.0100.03817.14
5.5.100.0130.03817.26
5.5.90.0030.04117.00
5.5.80.0120.03717.14
5.5.70.0090.04217.17
5.5.60.0070.04317.18
5.5.50.0120.03217.15
5.5.40.0080.04217.17
5.5.30.0070.04517.13
5.5.20.0080.03816.92
5.5.10.0080.03916.97
5.5.00.0030.04617.21
5.4.450.0080.03715.27
5.4.440.0040.04215.31
5.4.430.0100.03215.38
5.4.420.0050.04315.28
5.4.410.0070.04215.35
5.4.400.0050.02215.13
5.4.390.0070.04215.07
5.4.380.0020.03815.22
5.4.370.0060.03815.25
5.4.360.0080.04015.14
5.4.350.0050.03415.03
5.4.340.0070.04015.05
5.4.330.0000.01111.11
5.4.320.0030.04015.07
5.4.310.0050.04215.15
5.4.300.0060.03815.03
5.4.290.0030.02315.06
5.4.280.0070.03815.03
5.4.270.0050.02615.12
5.4.260.0020.04115.18
5.4.250.0050.04415.11
5.4.240.0070.04015.16
5.4.230.0070.04015.05
5.4.220.0030.04315.16
5.4.210.0060.02615.17
5.4.200.0130.02115.06
5.4.190.0070.04115.10
5.4.180.0100.03015.09
5.4.170.0050.03715.08
5.4.160.0110.03815.14
5.4.150.0070.02415.05
5.4.140.0070.03013.82
5.4.130.0050.02013.70
5.4.120.0100.03313.87
5.4.110.0080.03913.88
5.4.100.0060.02813.81
5.4.90.0030.03613.88
5.4.80.0030.04313.68
5.4.70.0030.03913.80
5.4.60.0110.03313.78
5.4.50.0060.03713.82
5.4.40.0030.04313.85
5.4.30.0120.03213.75
5.4.20.0070.03713.71
5.4.10.0070.02313.87
5.4.00.0040.04213.45
5.3.290.0100.04714.91
5.3.280.0070.07314.74
5.3.270.0100.03714.63
5.3.260.0130.07314.63
5.3.250.0030.05714.47
5.3.240.0130.07714.65
5.3.230.0000.07714.73
5.3.220.0130.04714.53
5.3.210.0200.06014.43
5.3.200.0070.07714.70
5.3.190.0130.07314.58
5.3.180.0100.08014.56
5.3.170.0070.05314.80
5.3.160.0070.07014.43
5.3.150.0030.05014.58
5.3.140.0070.06714.69
5.3.130.0030.07714.68
5.3.120.0070.07714.57
5.3.110.0070.08014.61
5.3.100.0100.05714.07
5.3.90.0030.07714.04
5.3.80.0070.05714.01
5.3.70.0100.06713.98
5.3.60.0100.07713.96
5.3.50.0070.06013.81
5.3.40.0030.07013.95
5.3.30.0070.07713.91
5.3.20.0070.05013.71
5.3.10.0070.07013.79
5.3.00.0100.06713.77
5.2.170.0170.05711.93
5.2.160.0030.05711.93
5.2.150.0130.05011.93
5.2.140.0030.06311.93
5.2.130.0100.05711.93
5.2.120.0100.04711.93
5.2.110.0070.06311.93
5.2.100.0030.06711.93
5.2.90.0070.06011.93
5.2.80.0030.05311.93
5.2.70.0000.06711.93
5.2.60.0100.04711.93
5.2.50.0030.06311.93
5.2.40.0100.04711.93
5.2.30.0000.08011.93
5.2.20.0030.04011.93
5.2.10.0100.03311.93
5.2.00.0070.04311.93
5.1.60.0070.05711.93
5.1.50.0070.05011.93
5.1.40.0070.05311.93
5.1.30.0070.05711.93
5.1.20.0130.05011.93
5.1.10.0000.04311.93
5.1.00.0030.02711.93
5.0.50.0030.04711.93
5.0.40.0030.04311.93
5.0.30.0000.07011.93
5.0.20.0070.04011.93
5.0.10.0000.04711.93
5.0.00.0100.05711.93
4.4.90.0030.03311.93
4.4.80.0030.03011.93
4.4.70.0000.02311.93
4.4.60.0070.03311.93
4.4.50.0000.03711.93
4.4.40.0000.05711.93
4.4.30.0000.03311.93
4.4.20.0070.03311.93
4.4.10.0030.02011.93
4.4.00.0000.06011.93
4.3.110.0030.03311.93
4.3.100.0070.03311.93
4.3.90.0030.03011.93
4.3.80.0070.05311.93
4.3.70.0070.03011.93
4.3.60.0030.03311.93
4.3.50.0030.03711.93
4.3.40.0070.04711.93
4.3.30.0030.03711.93
4.3.20.0070.03311.93
4.3.10.0030.03311.93
4.3.00.0000.03711.93

preferences:
42.47 ms | 400 KiB | 5 Q