3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public int $prop = 0; public const HOGE = 'hoge'; } class Bar extends Foo { public int $prop = 10; public const HOGE = 'hoge_revised'; public function dump() { var_dump($this->prop); var_dump(self::HOGE); } } (new Bar)->dump();

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.120.0050.00624.23
8.4.110.0120.00719.10
8.4.100.0090.01118.71
8.4.90.0050.00520.39
8.4.80.0060.00318.84
8.4.70.0120.00720.63
8.4.60.0120.00919.01
8.4.50.0120.00920.48
8.4.40.0060.00317.71
8.4.30.0030.01220.42
8.4.20.0070.01320.71
8.4.10.0120.00621.99
8.3.250.0110.00917.11
8.3.240.0140.00516.80
8.3.230.0130.00716.61
8.3.220.0100.00819.04
8.3.210.0080.01016.43
8.3.200.0050.00516.49
8.3.190.0110.00616.92
8.3.180.0080.00819.11
8.3.170.0080.00817.04
8.3.160.0050.00318.35
8.3.150.0170.00318.40
8.3.140.0070.01116.49
8.3.130.0030.00616.60
8.3.120.0110.00418.90
8.3.110.0040.00420.94
8.3.100.0030.00616.32
8.3.90.0040.00426.77
8.3.80.0050.00516.38
8.3.70.0090.00616.58
8.3.60.0090.01316.63
8.3.50.0110.00419.96
8.3.40.0130.00318.69
8.3.30.0080.00818.58
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0080.00720.19
8.2.280.0130.00616.64
8.2.270.0140.00320.76
8.2.260.0110.00717.26
8.2.250.0080.00016.88
8.2.240.0030.00616.95
8.2.230.0030.00622.58
8.2.220.0080.00037.54
8.2.210.0090.00326.77
8.2.200.0060.00316.38
8.2.190.0180.00416.58
8.2.180.0100.00725.92
8.2.170.0110.00418.71
8.2.160.0030.01022.96
8.2.150.0040.01125.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00819.13
8.2.110.0060.00322.13
8.2.100.0030.00917.59
8.2.90.0000.00818.92
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0000.00817.91
8.2.50.0060.00318.07
8.2.40.0020.00518.10
8.2.30.0000.00817.94
8.2.20.0000.00720.52
8.2.10.0070.00017.80
8.2.00.0050.00319.03
8.1.330.0080.01122.01
8.1.320.0140.00616.23
8.1.310.0070.00016.64
8.1.300.0000.00918.66
8.1.290.0100.00030.84
8.1.280.0110.00425.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00620.47
8.1.230.0070.00417.70
8.1.220.0000.01017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0000.00816.97
8.1.180.0040.00418.10
8.1.170.0000.01618.34
8.1.160.0040.00418.77
8.1.150.0000.00718.45
8.1.140.0000.00717.32
8.1.130.0000.00718.70
8.1.120.0000.00717.30
8.1.110.0000.00817.30
8.1.100.0050.00317.34
8.1.90.0000.00717.34
8.1.80.0000.00817.36
8.1.70.0040.00417.22
8.1.60.0110.00017.52
8.1.50.0090.00517.47
8.1.40.0110.00717.29
8.1.30.0090.01017.40
8.1.20.0160.00317.54
8.1.10.0150.00417.46
8.1.00.0050.01017.20
8.0.300.0030.00519.77
8.0.290.0050.00316.58
8.0.280.0040.00418.30
8.0.270.0040.00416.63
8.0.260.0030.00318.39
8.0.250.0030.00316.90
8.0.240.0070.00016.85
8.0.230.0030.00316.84
8.0.220.0000.00716.76
8.0.210.0030.00516.83
8.0.200.0080.00816.75
8.0.190.0120.00316.77
8.0.180.0100.00516.64
8.0.170.0100.00716.63
8.0.160.0090.00616.68
8.0.150.0060.00916.68
8.0.140.0140.00416.66
8.0.130.0130.00316.54
8.0.120.0080.00816.66
8.0.110.0080.00616.78
8.0.100.0100.00316.64
8.0.90.0150.00016.79
8.0.80.0140.00016.70
8.0.70.0040.01216.67
8.0.60.0110.00416.53
8.0.50.0100.00316.77
8.0.30.0040.00816.78
8.0.20.0080.00316.79
8.0.10.0000.00816.70
7.4.330.0050.00015.55
7.4.320.0060.00016.49
7.4.300.0080.00016.26
7.4.290.0030.00616.52
7.4.280.0040.00916.52
7.4.270.0090.00916.43
7.4.260.0090.00816.40
7.4.250.0090.00916.24
7.4.240.0090.00916.46
7.4.230.0130.00516.44
7.4.220.0100.00616.36
7.4.210.0150.00016.33
7.4.200.0130.00316.41
7.4.190.0100.00716.45
7.4.180.0150.00016.38
7.4.160.0070.00716.54
7.4.150.0080.00416.13
7.4.140.0050.00916.37
7.4.130.0110.00416.21
7.4.120.0120.00016.21
7.4.110.0080.00316.21
7.4.100.0000.01016.44
7.4.90.0060.00616.25
7.4.80.0020.00916.07
7.4.70.0110.00016.00
7.4.60.0050.00516.07
7.4.50.0060.00716.30
7.4.40.0000.01316.25
7.4.30.0060.00616.36
7.4.20.0110.00316.37
7.4.10.0080.00616.16
7.4.00.0110.00416.33

preferences:
27.63 ms | 403 KiB | 5 Q