3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { protected $foo = 'Base'; } class Other extends Base { protected $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.130.0060.00317.86
8.4.120.0120.00920.70
8.4.110.0130.00822.59
8.4.100.0070.01017.91
8.4.90.0140.00618.67
8.4.80.0130.00718.07
8.4.70.0120.00918.04
8.4.60.0110.00518.68
8.4.50.0120.00919.67
8.4.40.0100.00919.66
8.4.30.0040.00817.64
8.4.20.0130.00318.66
8.4.10.0060.00317.80
8.3.260.0160.00416.79
8.3.250.0100.00818.82
8.3.240.0130.00616.60
8.3.230.0080.00616.59
8.3.220.0030.00417.00
8.3.210.0140.00516.60
8.3.200.0030.00516.72
8.3.190.0100.01016.93
8.3.180.0110.00816.77
8.3.170.0070.01018.85
8.3.160.0090.00916.68
8.3.150.0030.00620.61
8.3.140.0140.00417.38
8.3.130.0030.00518.46
8.3.120.0030.00620.65
8.3.110.0080.00816.71
8.3.100.0000.00916.61
8.3.90.0020.00518.18
8.3.80.0070.00417.97
8.3.70.0090.00616.61
8.3.60.0090.00616.63
8.3.50.0090.01321.04
8.3.40.0110.01118.80
8.3.30.0110.00718.61
8.3.20.0030.00520.86
8.3.10.0080.00021.86
8.3.00.0000.00819.78
8.2.290.0050.00420.51
8.2.280.0040.00320.53
8.2.270.0100.00717.23
8.2.260.0040.01122.21
8.2.250.0040.00418.81
8.2.240.0030.00617.35
8.2.230.0040.00420.94
8.2.220.0030.00624.06
8.2.210.0090.00626.77
8.2.200.0090.00018.66
8.2.190.0110.00316.58
8.2.180.0110.00716.50
8.2.170.0120.00622.96
8.2.160.0070.00720.36
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00819.27
8.2.120.0040.00426.35
8.2.110.0050.00519.27
8.2.100.0040.00717.78
8.2.90.0000.00819.05
8.2.80.0040.00419.41
8.2.70.0050.00317.91
8.2.60.0030.00517.80
8.2.50.0050.00318.10
8.2.40.0000.00720.42
8.2.30.0040.00419.25
8.2.20.0040.00417.91
8.2.10.0020.00517.86
8.2.00.0050.00217.66
8.1.330.0100.00821.67
8.1.320.0120.00716.29
8.1.310.0030.01416.89
8.1.300.0030.00616.04
8.1.290.0110.00030.84
8.1.280.0180.00325.92
8.1.270.0040.00421.95
8.1.260.0050.00226.35
8.1.250.0060.00328.09
8.1.240.0070.01422.00
8.1.230.0110.00022.65
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0040.00422.12
8.1.150.0070.00018.82
8.1.140.0000.00719.51
8.1.130.0030.00319.07
8.1.120.0040.00417.40
8.1.110.0030.00617.42
8.1.100.0040.00417.37
8.1.90.0000.01017.27
8.1.80.0000.00817.29
8.1.70.0040.00417.29
8.1.60.0050.00317.58
8.1.50.0030.00917.50
8.1.40.0040.00417.41
8.1.30.0050.00317.61
8.1.20.0040.00417.62
8.1.10.0000.00717.57
8.1.00.0040.00417.41
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.31
8.0.270.0000.00817.23
8.0.260.0030.00317.18
8.0.250.0040.00416.86
8.0.240.0040.00416.97
8.0.230.0000.00916.93
8.0.220.0000.00716.84
8.0.210.0040.00416.78
8.0.200.0070.00016.96
8.0.190.0030.00616.81
8.0.180.0000.00716.83
8.0.170.0030.00416.93
8.0.160.0050.00216.82
8.0.150.0080.00016.79
8.0.140.0040.00816.87
8.0.130.0000.00613.27
8.0.120.0050.00316.81
8.0.110.0050.00316.91
8.0.100.0040.00416.87
8.0.90.0040.00416.88
8.0.80.0070.00716.93
8.0.70.0040.00416.68
8.0.60.0070.00016.75
8.0.50.0030.00516.75
8.0.30.0100.00917.02
8.0.20.0110.00817.40
8.0.10.0040.00416.83
8.0.00.0160.00316.61
7.4.330.0000.00515.55
7.4.320.0070.00016.52
7.4.300.0000.00716.49
7.4.290.0000.00816.59
7.4.280.0000.00716.55
7.4.270.0030.00316.55
7.4.260.0030.00316.42
7.4.250.0030.00316.58
7.4.240.0040.00416.57
7.4.230.0030.00316.38
7.4.220.0100.01316.48
7.4.210.0090.00616.45
7.4.200.0030.00316.48
7.4.160.0050.01216.53
7.4.150.0110.00717.40
7.4.140.0060.01117.86
7.4.130.0110.00816.42
7.4.120.0100.00816.45
7.4.110.0130.00516.51
7.4.100.0090.00916.62
7.4.90.0070.01016.45
7.4.80.0150.00619.39
7.4.70.0030.01316.60
7.4.60.0090.00916.48
7.4.50.0040.01116.38
7.4.40.0150.00616.36
7.4.30.0140.00516.38
7.4.00.0080.01015.01
7.3.330.0030.00313.39
7.3.320.0050.00013.39
7.3.310.0080.00016.21
7.3.300.0000.00716.28
7.3.290.0140.00216.36
7.3.280.0080.01016.36
7.3.270.0090.00917.40
7.3.260.0130.00916.37
7.3.250.0110.01016.30
7.3.240.0130.00516.37
7.3.230.0070.01116.43
7.3.210.0130.00316.30
7.3.200.0090.00916.52
7.3.190.0060.01616.27
7.3.180.0030.01416.43
7.3.170.0030.01516.59
7.3.160.0060.01316.50
7.3.120.0090.00914.86
7.3.110.0080.00814.68
7.3.100.0040.00814.68
7.3.90.0030.01314.95
7.3.80.0120.00315.02
7.3.70.0030.01014.58
7.3.60.0030.00914.64
7.3.50.0030.00914.72
7.3.40.0040.01114.79
7.3.30.0070.00714.90
7.3.20.0100.00016.68
7.3.10.0030.01016.42
7.3.00.0020.01216.30
7.2.330.0130.00316.39
7.2.320.0070.01116.66
7.2.310.0030.01416.55
7.2.300.0140.00816.74
7.2.290.0120.00616.65
7.2.250.0110.00715.29
7.2.240.0100.01014.84
7.2.230.0060.00614.61
7.2.220.0060.00614.81
7.2.210.0060.00615.19
7.2.200.0060.00915.14
7.2.190.0030.00714.89
7.2.180.0000.01114.75
7.2.170.0070.00714.74
7.2.130.0090.00516.31
7.2.120.0090.00316.30
7.2.110.0030.01216.20
7.2.100.0150.00716.30
7.2.90.0160.01016.86
7.2.80.0070.01016.49
7.2.70.0120.00616.34
7.2.60.0100.00916.65
7.2.50.0000.01916.87
7.2.40.0090.00916.66
7.2.30.0180.01316.31
7.2.20.0180.00916.28
7.2.10.0060.01016.65
7.2.00.0110.00718.02
7.1.330.0000.01415.71
7.1.320.0030.01015.52
7.1.310.0030.00615.51
7.1.300.0030.01015.59
7.1.290.0070.00715.64
7.1.280.0030.01215.72
7.1.270.0090.00315.72
7.1.260.0030.01015.45
7.1.250.0070.01115.24
7.1.200.0060.00915.68
7.1.100.0030.00918.10
7.1.70.0040.00416.75
7.1.60.0140.01017.18
7.1.50.0060.01516.58
7.1.00.0100.06722.68
7.0.200.0060.00916.55
7.0.140.0070.06322.15
7.0.130.0200.05722.12
7.0.120.0170.06321.97
7.0.110.0100.06722.10
7.0.100.0100.05322.07
7.0.90.0070.06022.16
7.0.80.0170.07722.00
7.0.70.0130.05722.16
7.0.60.0070.06722.08
7.0.50.0100.05722.21
7.0.40.0130.06722.00
7.0.30.0130.06322.01
7.0.20.0100.07322.14
7.0.10.0070.07321.95
7.0.00.0170.06321.98
5.6.290.0070.05720.81
5.6.280.0130.05320.79
5.6.270.0100.06020.91
5.6.260.0030.06020.91
5.6.250.0170.05020.91
5.6.240.0170.08320.90
5.6.230.0070.06720.78
5.6.220.0130.05320.97
5.6.210.0170.06320.92
5.6.200.0030.07021.09
5.6.190.0070.06321.06
5.6.180.0170.06721.04
5.6.170.0230.06720.86
5.6.160.0270.04321.05
5.6.150.0170.06320.78
5.6.140.0100.06320.89
5.6.130.0070.06720.82
5.6.120.0170.05321.05
5.6.110.0100.06020.81
5.6.100.0100.06320.73
5.6.90.0000.07020.86
5.6.80.0170.05020.20
5.6.70.0070.06020.37
5.6.60.0200.04720.42
5.6.50.0170.04720.11
5.6.40.0130.05720.10
5.6.30.0100.05320.23
5.6.20.0230.05320.08
5.6.10.0030.06020.39
5.6.00.0100.05320.37

preferences:
32.49 ms | 403 KiB | 5 Q