3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const x = '3.1415'; } class B extends A { public function getX() { return $this->x; } } $b = new B; echo $b->getX();

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.0110.01116.50
8.3.50.0100.00721.09
8.3.40.0000.01518.71
8.3.30.0090.00618.81
8.3.20.0030.00520.29
8.3.10.0050.00323.61
8.3.00.0040.00421.80
8.2.180.0160.00318.54
8.2.170.0090.00622.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00420.98
8.2.120.0050.00226.35
8.2.110.0060.00319.25
8.2.100.0100.00317.93
8.2.90.0070.00019.05
8.2.80.0080.00017.97
8.2.70.0000.00817.25
8.2.60.0000.00717.93
8.2.50.0030.00518.09
8.2.40.0040.00422.19
8.2.30.0000.00819.30
8.2.20.0070.00017.56
8.2.10.0000.00717.90
8.2.00.0030.00517.86
8.1.280.0100.01025.92
8.1.270.0150.00022.04
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00322.50
8.1.230.0030.00717.76
8.1.220.0060.00317.74
8.1.210.0000.01018.77
8.1.200.0060.00317.23
8.1.190.0000.00816.88
8.1.180.0040.00418.10
8.1.170.0050.00318.41
8.1.160.0000.00720.62
8.1.150.0000.00718.88
8.1.140.0060.00319.57
8.1.130.0030.00517.63
8.1.120.0030.00317.45
8.1.110.0040.00417.39
8.1.100.0070.00017.36
8.1.90.0000.00817.24
8.1.80.0070.00017.26
8.1.70.0040.00417.37
8.1.60.0040.00417.48
8.1.50.0040.00417.53
8.1.40.0040.00417.43
8.1.30.0040.00417.60
8.1.20.0000.00817.66
8.1.10.0040.00417.63
8.1.00.0030.00617.50
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00718.36
8.0.270.0040.00417.23
8.0.260.0000.00817.24
8.0.250.0040.00417.05
8.0.240.0040.00416.96
8.0.230.0000.00716.96
8.0.220.0000.00716.86
8.0.210.0020.00516.76
8.0.200.0070.00016.98
8.0.190.0060.00316.97
8.0.180.0040.00316.92
8.0.170.0000.00816.82
8.0.160.0030.00316.97
8.0.150.0030.00316.85
8.0.140.0000.00816.87
8.0.130.0050.00013.27
8.0.120.0040.00416.75
8.0.110.0000.00716.90
8.0.100.0040.00416.83
8.0.90.0000.00716.87
8.0.80.0090.00616.84
8.0.70.0040.00416.79
8.0.60.0040.00416.71
8.0.50.0040.00416.71
8.0.30.0090.00817.11
8.0.20.0130.00917.40
8.0.10.0030.00417.07
8.0.00.0160.00316.82
7.4.330.0000.00516.82
7.4.320.0030.00316.32
7.4.300.0000.00716.54
7.4.290.0000.00916.42
7.4.280.0000.00816.59
7.4.270.0060.00016.60
7.4.260.0070.00016.38
7.4.250.0000.00716.48
7.4.240.0030.00416.61
7.4.230.0000.00716.70
7.4.220.0130.01116.63
7.4.210.0090.00616.54
7.4.200.0040.00416.48
7.4.160.0120.00316.57
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0110.01116.51
7.4.120.0090.01016.57
7.4.110.0060.01116.65
7.4.100.0140.01016.50
7.4.90.0100.00716.64
7.4.80.0130.00719.39
7.4.70.0070.01116.37
7.4.60.0070.01316.58
7.4.50.0070.00716.46
7.4.40.0090.00916.46
7.4.30.0100.01316.40
7.4.00.0070.01014.89
7.3.330.0000.00513.32
7.3.320.0030.00213.23
7.3.310.0000.00716.28
7.3.300.0070.00016.17
7.3.290.0000.00716.27
7.3.280.0110.00516.27
7.3.270.0110.00717.40
7.3.260.0090.01316.52
7.3.240.0100.00616.28
7.3.230.0070.01416.46
7.3.210.0100.00716.23
7.3.200.0120.00619.39
7.3.190.0120.00316.24
7.3.180.0140.00816.38
7.3.170.0120.00616.40
7.3.160.0070.01016.32
7.2.330.0120.00616.76
7.2.320.0120.00616.51
7.2.310.0030.01416.84
7.2.300.0130.00516.46
7.2.290.0160.00016.81
7.1.70.0040.00416.86
7.1.60.0070.01719.40
7.1.50.0160.01616.86
7.1.00.0070.03322.40
7.0.200.0520.00714.38
7.0.60.0170.08321.56
7.0.50.0070.06717.86
7.0.40.0100.08320.15
7.0.30.0370.04320.06
7.0.20.0200.07720.07
7.0.10.0070.08020.25
7.0.00.0100.04320.20
5.6.280.0030.03321.05
5.6.210.0230.06020.77
5.6.200.0100.08318.18
5.6.190.0030.07320.33
5.6.180.0430.06320.50
5.6.170.0270.05720.46
5.6.160.0030.08720.39
5.6.150.0100.07718.23
5.6.140.0100.07718.28
5.6.130.0100.08318.26
5.6.120.0030.09321.12
5.6.110.0000.09021.00
5.6.100.0170.07321.01
5.6.90.0130.08321.10
5.6.80.0100.08020.38
5.5.350.0330.07020.43
5.5.340.0000.05717.98
5.5.330.0030.06320.30
5.5.320.0330.06320.32
5.5.310.0370.04020.32
5.5.300.0130.07318.01
5.5.290.0030.08317.95
5.5.280.0100.07720.96
5.5.270.0170.07320.89
5.5.260.0130.08020.89
5.5.250.0100.04720.61
5.5.240.0200.03720.19

preferences:
32.13 ms | 401 KiB | 5 Q