3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected $foo = 'Base'; } class Other extends Base { public function __construct() { $this->foo = 'Other'; } } class Child extends Base { public function bar() { $otherBase = new Other(); echo $otherBase->foo; } } $child = new Child(); $child->bar();

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.0060.00524.13
8.4.110.0030.00522.66
8.4.100.0070.00317.76
8.4.90.0150.00617.58
8.4.80.0070.00217.73
8.4.70.0060.00217.68
8.4.60.0150.00620.47
8.4.50.0110.00820.46
8.4.40.0070.01419.39
8.4.30.0070.00417.50
8.4.20.0100.00718.64
8.4.10.0060.00917.68
8.3.250.0080.00418.88
8.3.240.0150.00516.86
8.3.230.0110.00816.82
8.3.220.0110.00817.13
8.3.210.0130.00616.54
8.3.200.0090.01016.46
8.3.190.0120.00617.35
8.3.180.0090.00916.53
8.3.170.0070.01116.99
8.3.160.0190.00020.21
8.3.150.0090.00919.07
8.3.140.0110.00717.39
8.3.130.0080.00018.38
8.3.120.0060.00318.91
8.3.110.0070.01120.94
8.3.100.0040.00716.90
8.3.90.0130.00718.47
8.3.80.0060.00317.97
8.3.70.0120.00318.43
8.3.60.0110.01116.50
8.3.50.0210.01521.24
8.3.40.0070.00718.88
8.3.30.0070.01418.54
8.3.20.0080.00020.74
8.3.10.0000.00821.72
8.3.00.0080.00019.78
8.2.290.0110.00622.47
8.2.280.0120.00818.48
8.2.270.0070.01117.20
8.2.260.0060.00316.57
8.2.250.0000.00816.60
8.2.240.0120.00618.78
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0110.00726.77
8.2.200.0090.00016.34
8.2.190.0120.00318.30
8.2.180.0070.01016.50
8.2.170.0120.00322.96
8.2.160.0110.00420.30
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.92
8.2.110.0000.00920.99
8.2.100.0060.00619.45
8.2.90.0030.00617.97
8.2.80.0080.00018.03
8.2.70.0050.00317.80
8.2.60.0000.00718.09
8.2.50.0060.00318.10
8.2.40.0060.00319.47
8.2.30.0000.00819.35
8.2.20.0000.00818.03
8.2.10.0040.00417.89
8.2.00.0040.00417.57
8.1.330.0160.00418.52
8.1.320.0100.01116.28
8.1.310.0110.00418.58
8.1.300.0030.00620.38
8.1.290.0040.00418.88
8.1.280.0090.00925.92
8.1.270.0040.00422.20
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00322.52
8.1.230.0080.00320.96
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0030.00618.10
8.1.170.0090.00018.43
8.1.160.0040.00422.05
8.1.150.0040.00418.86
8.1.140.0000.00719.41
8.1.130.0070.00019.07
8.1.120.0070.00017.34
8.1.110.0030.00517.40
8.1.100.0030.00517.39
8.1.90.0030.00717.38
8.1.80.0040.00417.41
8.1.70.0050.00517.29
8.1.60.0030.00617.45
8.1.50.0040.00817.56
8.1.40.0040.00417.51
8.1.30.0000.00817.62
8.1.20.0040.00417.48
8.1.10.0050.00317.61
8.1.00.0000.00817.50
8.0.300.0000.00719.77
8.0.290.0040.00416.75
8.0.280.0040.00418.43
8.0.270.0000.00717.31
8.0.260.0070.00017.18
8.0.250.0070.00016.89
8.0.240.0000.00616.91
8.0.230.0050.00216.78
8.0.220.0040.00416.81
8.0.210.0050.00216.77
8.0.200.0030.00316.89
8.0.190.0050.00316.84
8.0.180.0000.00716.91
8.0.170.0000.00716.74
8.0.160.0040.00316.91
8.0.150.0030.00316.81
8.0.140.0040.00416.79
8.0.130.0030.00313.29
8.0.120.0040.00416.77
8.0.110.0000.00716.66
8.0.100.0000.00816.60
8.0.90.0040.00416.63
8.0.80.0150.00016.89
8.0.70.0040.00416.70
8.0.60.0000.00716.68
8.0.50.0070.00016.65
8.0.30.0120.00717.04
8.0.20.0110.00817.42
8.0.10.0000.00716.90
8.0.00.0130.01016.77
7.4.330.0000.00515.55
7.4.320.0060.00016.36
7.4.300.0030.00316.60
7.4.290.0080.00016.62
7.4.280.0040.00416.38
7.4.270.0070.00016.58
7.4.260.0040.00416.38
7.4.250.0040.00416.36
7.4.240.0030.00316.60
7.4.230.0050.00216.39
7.4.220.0140.00416.71
7.4.210.0100.00616.39
7.4.200.0070.00016.70
7.4.160.0120.00616.49
7.4.150.0140.00317.40
7.4.140.0080.00917.86
7.4.130.0090.00716.56
7.4.120.0110.00716.47
7.4.110.0160.00616.50
7.4.100.0040.01316.39
7.4.90.0160.00316.39
7.4.80.0130.00319.39
7.4.70.0120.00416.51
7.4.60.0100.00616.56
7.4.50.0030.01316.50
7.4.40.0100.01216.61
7.4.30.0090.00616.37
7.4.00.0100.00714.88
7.3.330.0040.00213.30
7.3.320.0030.00313.12
7.3.310.0000.00516.32
7.3.300.0030.00316.25
7.3.290.0060.00816.28
7.3.280.0120.00616.30
7.3.270.0110.00917.40
7.3.260.0070.01016.31
7.3.250.0150.00216.35
7.3.240.0130.00816.47
7.3.230.0100.01016.39
7.3.210.0100.01316.31
7.3.200.0090.00616.26
7.3.190.0180.00316.57
7.3.180.0030.01316.38
7.3.170.0030.01516.46
7.3.160.0070.01016.38
7.2.330.0090.00916.65
7.2.320.0160.00016.82
7.2.310.0030.01416.81
7.2.300.0060.01616.42
7.2.290.0110.00716.40
7.2.60.0030.00716.94
7.1.200.0000.00715.39
7.1.70.0000.00817.28
7.1.60.0000.01117.32
7.1.00.0130.05322.48
7.0.200.0030.01316.50
7.0.140.0100.06321.96
7.0.130.0130.05022.18
7.0.120.0030.06022.18
7.0.110.0070.06321.96
7.0.100.0130.06721.96
7.0.90.0070.07021.96
7.0.80.0130.05322.12
7.0.70.0170.05322.11
7.0.60.0070.06322.12
7.0.50.0070.06722.21
7.0.40.0130.05322.02
7.0.30.0070.05722.14
7.0.20.0070.05721.98
7.0.10.0100.06721.96
7.0.00.0130.05322.16
5.6.290.0070.06020.81
5.6.280.0100.05320.93
5.6.270.0130.05020.79
5.6.260.0070.05720.90
5.6.250.0070.08320.89
5.6.240.0130.05720.99
5.6.230.0130.06021.13
5.6.220.0100.06720.97
5.6.210.0170.08321.01
5.6.200.0230.07021.01
5.6.190.0100.06721.06
5.6.180.0070.05721.07
5.6.170.0130.06021.04
5.6.160.0230.06321.09
5.6.150.0230.06020.92
5.6.140.0130.05720.98
5.6.130.0000.08720.82
5.6.120.0070.06020.85
5.6.110.0000.06720.87
5.6.100.0070.05721.07
5.6.90.0100.05321.06
5.6.80.0130.04720.13
5.6.70.0070.06020.45
5.6.60.0070.07720.43
5.6.50.0130.05320.25
5.6.40.0130.07720.25
5.6.30.0070.08320.14
5.6.20.0130.05020.44
5.6.10.0030.06020.26
5.6.00.0100.05320.22

preferences:
28.63 ms | 403 KiB | 5 Q