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.01016.63
8.3.40.0090.00618.60
8.3.30.0120.00318.46
8.3.20.0000.00818.89
8.3.10.0070.00021.73
8.3.00.0050.00320.84
8.2.180.0140.00318.54
8.2.170.0080.00822.96
8.2.160.0070.00720.32
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.64
8.2.120.0080.00026.35
8.2.110.0030.00622.08
8.2.100.0080.00317.72
8.2.90.0080.00017.63
8.2.80.0040.00817.97
8.2.70.0090.00018.05
8.2.60.0050.00317.93
8.2.50.0040.00418.10
8.2.40.0040.00420.63
8.2.30.0040.00419.23
8.2.20.0000.00718.05
8.2.10.0040.00417.90
8.2.00.0040.00417.52
8.1.280.0120.00625.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0050.00522.50
8.1.230.0070.00420.96
8.1.220.0090.00018.77
8.1.210.0000.00818.83
8.1.200.0000.01017.23
8.1.190.0030.00817.23
8.1.180.0070.00418.10
8.1.170.0060.00318.82
8.1.160.0000.00718.74
8.1.150.0030.00618.45
8.1.140.0040.00419.50
8.1.130.0080.00017.67
8.1.120.0040.00417.38
8.1.110.0080.00017.46
8.1.100.0080.00017.39
8.1.90.0040.00417.43
8.1.80.0000.00717.45
8.1.70.0000.00717.35
8.1.60.0040.00417.64
8.1.50.0030.00517.48
8.1.40.0000.00817.51
8.1.30.0080.00017.53
8.1.20.0040.00417.47
8.1.10.0000.00717.52
8.1.00.0030.00617.53
8.0.300.0050.00219.89
8.0.290.0050.00316.63
8.0.280.0070.00018.31
8.0.270.0070.00017.26
8.0.260.0000.00617.24
8.0.250.0030.00316.89
8.0.240.0070.00016.85
8.0.230.0080.00016.91
8.0.220.0030.00316.80
8.0.210.0030.00316.76
8.0.200.0030.00316.95
8.0.190.0040.00416.94
8.0.180.0000.00716.96
8.0.170.0070.00016.80
8.0.160.0040.00416.86
8.0.150.0030.00316.76
8.0.140.0040.00416.82
8.0.130.0000.00513.32
8.0.120.0050.00316.86
8.0.110.0030.00516.99
8.0.100.0040.00416.85
8.0.90.0000.00716.77
8.0.80.0180.00016.86
8.0.70.0000.00816.71
8.0.60.0080.00016.82
8.0.50.0040.00416.73
8.0.30.0080.01117.15
8.0.20.0120.00717.40
8.0.10.0070.00017.04
8.0.00.0070.01016.55
7.4.330.0000.00515.55
7.4.320.0040.00416.33
7.4.300.0000.00616.57
7.4.290.0000.00716.51
7.4.280.0000.00816.52
7.4.270.0000.00716.52
7.4.260.0060.00316.52
7.4.250.0000.00716.40
7.4.240.0000.00716.52
7.4.230.0000.00816.59
7.4.220.0100.00716.52
7.4.210.0080.00816.55
7.4.200.0000.00716.33
7.4.160.0100.00516.58
7.4.150.0090.01217.40
7.4.140.0080.00917.86
7.4.130.0130.00616.50
7.4.120.0090.00916.44
7.4.110.0130.00316.61
7.4.100.0100.00716.47
7.4.90.0320.02216.54
7.4.80.0070.01419.39
7.4.70.0120.00916.43
7.4.60.0120.00316.62
7.4.50.0060.00916.73
7.4.40.0070.01016.44
7.4.30.0030.01616.68
7.4.00.0060.01014.71
7.3.330.0060.00013.30
7.3.320.0030.00213.11
7.3.310.0030.00316.36
7.3.300.0060.00016.35
7.3.290.0030.00316.21
7.3.280.0090.00816.25
7.3.270.0090.00917.40
7.3.260.0130.00716.43
7.3.250.0080.01216.28
7.3.240.0100.00616.43
7.3.230.0130.00316.39
7.3.210.0090.00916.20
7.3.200.0130.00316.61
7.3.190.0030.01316.32
7.3.180.0110.00616.42
7.3.170.0110.01216.50
7.3.160.0130.00716.31
7.2.330.0070.01016.44
7.2.320.0130.00316.84
7.2.310.0160.00716.37
7.2.300.0100.01316.38
7.2.290.0140.00416.43
7.2.60.0030.01016.68
7.2.50.0000.01216.69
7.1.200.0060.00615.61
7.1.70.0030.00716.63
7.1.60.0070.00417.22
7.1.00.0030.07722.35
7.0.200.0330.00414.76
7.0.130.0070.06022.07
7.0.120.0130.07722.02
7.0.110.0100.07022.15
7.0.100.0030.06022.20
7.0.90.0030.06722.08
7.0.80.0030.06322.19
7.0.70.0100.05722.14
7.0.60.0130.05322.18
7.0.50.0100.05722.02
7.0.40.0130.05322.03
7.0.30.0100.07721.98
7.0.20.0130.08022.11
7.0.10.0100.07722.20
7.0.00.0100.06022.11
5.6.280.0000.07021.10
5.6.270.0230.06020.90
5.6.260.0170.05720.79
5.6.250.0170.05021.09
5.6.240.0000.07021.04
5.6.230.0070.06321.06
5.6.220.0000.07021.08
5.6.210.0100.08021.07
5.6.200.0070.06320.81
5.6.190.0030.06320.86
5.6.180.0130.06321.04
5.6.170.0230.07020.75
5.6.160.0170.06021.02
5.6.150.0100.06320.80
5.6.140.0130.07021.04
5.6.130.0170.07720.93
5.6.120.0130.05320.75
5.6.110.0070.06320.98
5.6.100.0070.06020.98
5.6.90.0070.05720.81
5.6.80.0100.05720.48
5.6.70.0070.05320.13
5.6.60.0170.04720.32
5.6.50.0030.05720.43
5.6.40.0070.05720.30
5.6.30.0100.06320.40
5.6.20.0100.07020.39
5.6.10.0070.07720.29
5.6.00.0070.08020.40

preferences:
63.36 ms | 400 KiB | 5 Q