3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = 'This is $a from A'; public $b = 'This is $b from A'; public function __sleep(): array { var_dump(array_keys(get_object_vars($this))); return []; } } class B extends A { public $a = 'This is $a from B'; } $b = new B; serialize($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.4.10.0060.01222.39
8.3.140.0060.00316.69
8.3.130.0030.01318.51
8.3.120.0000.00819.00
8.3.110.0080.00820.94
8.3.100.0000.01016.68
8.3.90.0000.01126.77
8.3.80.0100.00019.36
8.3.70.0110.00718.45
8.3.60.0110.00416.50
8.3.50.0060.00718.30
8.3.40.0040.01118.84
8.3.30.0170.00318.32
8.3.20.0050.00321.89
8.3.10.0090.00021.92
8.3.00.0050.00222.45
8.2.250.0040.00416.80
8.2.240.0040.00417.13
8.2.230.0080.00022.58
8.2.220.0080.00324.06
8.2.210.0000.00826.77
8.2.200.0090.00018.88
8.2.190.0090.00616.58
8.2.180.0120.00318.55
8.2.170.0050.01118.96
8.2.160.0120.00322.96
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0050.00321.02
8.2.110.0030.00720.51
8.2.100.0080.00417.91
8.2.90.0000.00817.75
8.2.80.0030.00617.97
8.2.70.0070.00317.50
8.2.60.0000.00817.50
8.2.50.0060.00317.55
8.2.40.0000.00918.04
8.2.30.0040.00419.03
8.2.20.0040.00418.11
8.2.10.0000.00719.11
8.2.00.0080.00019.12
8.1.300.0060.00318.17
8.1.290.0090.00030.84
8.1.280.0150.00025.92
8.1.270.0040.00423.77
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0090.00023.85
8.1.230.0040.00819.21
8.1.220.0000.00917.74
8.1.210.0060.00320.98
8.1.200.0000.00817.35
8.1.190.0040.00417.10
8.1.180.0000.00918.10
8.1.170.0000.00917.62
8.1.160.0050.00318.91
8.1.150.0040.00418.87
8.1.140.0060.00319.12
8.1.130.0040.00417.39
8.1.120.0090.00317.31
8.1.110.0060.00317.29
8.1.100.0040.00417.38
8.1.90.0040.00417.24
8.1.80.0040.00417.32
8.1.70.0070.00017.36
8.1.60.0080.00017.57
8.1.50.0060.00617.41
8.1.40.0040.00417.50
8.1.30.0000.00717.66
8.1.20.0000.01017.50
8.1.10.0000.00917.48
8.1.00.0030.00617.30
8.0.300.0000.00719.66
8.0.290.0030.00516.63
8.0.280.0070.00018.38
8.0.270.0080.00016.80
8.0.260.0000.00816.71
8.0.250.0070.00016.77
8.0.240.0070.00016.94
8.0.230.0030.00316.93
8.0.220.0030.00316.72
8.0.210.0070.00016.82
8.0.200.0000.00616.90
8.0.190.0040.00416.91
8.0.180.0050.00216.89
8.0.170.0030.00616.76
8.0.160.0050.00216.88
8.0.150.0040.00416.80
8.0.140.0020.00516.85
8.0.130.0030.00313.29
8.0.120.0000.00816.90
8.0.110.0070.00016.84
8.0.100.0000.00716.88
8.0.90.0040.00416.77
8.0.80.0110.00516.81
8.0.70.0070.00016.87
8.0.60.0030.00516.71
8.0.50.0000.00716.68
8.0.30.0100.00716.95
8.0.20.0100.01017.11
8.0.10.0000.00716.86
8.0.00.0000.01816.73
7.4.330.0000.00515.55
7.4.320.0060.00016.47
7.4.300.0000.00616.42
7.4.290.0030.00316.64
7.4.280.0050.00316.61
7.4.270.0090.00016.50
7.4.260.0000.00613.27
7.4.250.0000.00716.48
7.4.240.0030.00516.55
7.4.230.0050.00216.63
7.4.220.0030.00316.47
7.4.210.0070.00916.54
7.4.200.0030.00316.55
7.4.130.0090.00916.50
7.4.120.0150.00916.32
7.4.110.0100.01116.41
7.4.100.0140.01016.39
7.4.90.0110.01116.40
7.4.80.0080.01217.13
7.4.70.0120.00916.40
7.4.60.0130.00916.40
7.4.50.0130.00716.45
7.4.40.0150.00716.57
7.4.30.0150.00616.47
7.4.20.0170.00916.33
7.4.10.0190.00916.36
7.4.00.0090.00916.06
7.3.330.0000.00716.35
7.3.320.0030.00313.27
7.3.310.0030.00316.24
7.3.300.0060.00016.24
7.3.290.0100.00616.22
7.3.280.0110.00316.21
7.3.260.0100.01016.36
7.3.240.0100.00916.29
7.3.230.0100.01116.26
7.3.220.0160.00816.22
7.3.210.0160.00616.33
7.3.200.0120.01016.23
7.3.190.0150.00516.22
7.3.180.0130.00816.16
7.3.170.0130.00916.42
7.3.160.0120.01016.38
7.3.150.0120.01016.28
7.3.140.0110.01316.39
7.3.130.0130.00916.31
7.3.120.0120.01116.38
7.3.110.0110.01015.57
7.3.100.0110.01115.56
7.3.90.0130.00915.56
7.3.80.0130.01015.69
7.3.70.0110.00915.58
7.3.60.0100.01115.59
7.3.50.0130.00915.61
7.3.40.0120.01115.58
7.3.30.0120.00815.52
7.3.20.0100.01015.58
7.3.10.0120.00815.62
7.3.00.0110.01015.63
7.2.340.0140.00916.49
7.2.330.0110.01016.50
7.2.320.0100.01216.48
7.2.310.0160.00716.49
7.2.300.0170.00616.34
7.2.290.0120.00716.39
7.2.280.0100.01316.42
7.2.270.0190.00516.45
7.2.260.0180.00616.41
7.2.250.0200.00516.50
7.2.240.0080.01415.78
7.2.230.0160.00715.85
7.2.220.0120.01015.71
7.2.210.0150.00815.78
7.2.200.0120.00915.69
7.2.190.0120.01015.71
7.2.180.0110.01015.68
7.2.170.0120.01215.81
7.2.160.0130.00815.74
7.2.150.0160.00815.79
7.2.140.0110.01015.76
7.2.130.0130.00915.79
7.2.120.0130.00815.78
7.2.110.0120.00715.71
7.2.100.0100.01315.91
7.2.90.0130.01015.85
7.2.80.0170.00615.63
7.2.70.0170.00815.72
7.2.60.0140.01115.78
7.2.50.0150.00715.72
7.2.40.0100.01115.77
7.2.30.0130.00815.81
7.2.20.0130.00915.63
7.2.10.0110.00915.71
7.2.00.0140.00715.89
7.1.330.0150.00814.85
7.1.320.0170.00814.83
7.1.310.0110.01114.83
7.1.300.0150.00914.79
7.1.290.0160.00814.88
7.1.280.0160.00914.77
7.1.270.0140.00914.87
7.1.260.0140.00814.79
7.1.250.0150.00814.81
7.1.240.0170.00514.98
7.1.230.0150.00815.10
7.1.220.0170.01015.10
7.1.210.0160.00815.04
7.1.200.0170.00815.11
7.1.190.0170.00815.13
7.1.180.0190.00615.11
7.1.170.0150.01015.02
7.1.160.0280.01215.07
7.1.150.0150.00915.11
7.1.140.0130.01015.18
7.1.130.0170.00615.09
7.1.120.0160.00815.06
7.1.110.0200.00715.04
7.1.100.0210.00515.05
7.1.90.0110.01215.07
7.1.80.0130.01014.99
7.1.70.0180.00915.00
7.1.60.0150.00815.02
7.1.50.0160.00815.06
7.1.40.0150.00815.14
7.1.30.0300.00615.15
7.1.20.0170.00715.13
7.1.10.0200.00914.96
7.1.00.0140.01215.14

preferences:
69.19 ms | 403 KiB | 5 Q