3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestParent { protected $prop = "Are properties virtual?"; static $sprop = "How about static ones?"; } class Child extends TestParent { public function test() { echo $this->prop; echo self::$sprop; } } $c = new Child(); $c->test();

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.0140.00318.43
8.3.50.0160.00521.11
8.3.40.0060.00918.60
8.3.30.0100.00319.21
8.3.20.0040.00420.29
8.3.10.0050.00323.64
8.3.00.0000.00819.38
8.2.180.0070.01416.50
8.2.170.0090.00622.96
8.2.160.0100.00320.18
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00320.17
8.2.110.0070.00322.21
8.2.100.0090.00317.50
8.2.90.0000.00719.23
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0030.00618.03
8.2.50.0060.00618.07
8.2.40.0030.00519.88
8.2.30.0040.00418.11
8.2.20.0040.00417.73
8.2.10.0000.00817.98
8.2.00.0040.00417.53
8.1.280.0130.00725.92
8.1.270.0040.00423.89
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.79
8.1.230.0110.00018.97
8.1.220.0050.00317.74
8.1.210.0070.00418.77
8.1.200.0030.00617.00
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0000.00721.93
8.1.150.0030.00618.73
8.1.140.0040.00417.38
8.1.130.0070.00017.70
8.1.120.0000.00817.35
8.1.110.0030.00517.29
8.1.100.0000.00717.43
8.1.90.0070.00017.43
8.1.80.0040.00417.43
8.1.70.0070.00017.34
8.1.60.0040.00417.55
8.1.50.0050.00317.58
8.1.40.0040.00417.39
8.1.30.0000.00917.68
8.1.20.0050.00217.65
8.1.10.0000.00817.55
8.1.00.0040.00417.51
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0030.00418.39
8.0.270.0000.00717.24
8.0.260.0070.00017.35
8.0.250.0040.00417.02
8.0.240.0040.00416.84
8.0.230.0030.00416.86
8.0.220.0070.00016.80
8.0.210.0000.00716.78
8.0.200.0030.00316.84
8.0.190.0030.00316.75
8.0.180.0000.00816.73
8.0.170.0040.00416.73
8.0.160.0080.00016.85
8.0.150.0000.00716.66
8.0.140.0030.00316.72
8.0.130.0030.00313.26
8.0.120.0070.00016.76
8.0.110.0030.00516.66
8.0.100.0040.00416.65
8.0.90.0040.00416.86
8.0.80.0040.01116.86
8.0.70.0070.00016.89
8.0.60.0040.00416.77
8.0.50.0040.00416.88
8.0.30.0110.00917.01
8.0.20.0090.01117.40
8.0.10.0040.00416.97
8.0.00.0070.01016.75
7.4.330.0050.00015.02
7.4.320.0040.00416.45
7.4.300.0000.00716.48
7.4.290.0070.00016.50
7.4.280.0030.00616.59
7.4.270.0060.00016.64
7.4.260.0000.00816.59
7.4.250.0000.00716.53
7.4.240.0050.00216.51
7.4.230.0000.00716.57
7.4.220.0100.00716.53
7.4.210.0120.00316.52
7.4.200.0070.00016.66
7.4.160.0060.00916.75
7.4.150.0120.00917.40
7.4.140.0090.01017.86
7.4.130.0130.00616.52
7.4.120.0120.00516.51
7.4.110.0100.00716.64
7.4.100.0130.00316.52
7.4.90.0060.01016.38
7.4.80.0140.00719.39
7.4.70.0040.01216.42
7.4.60.0130.00916.56
7.4.50.0030.00616.47
7.4.40.0030.01316.54
7.4.30.0100.00616.61
7.4.00.0080.00814.85
7.3.330.0030.00313.32
7.3.320.0000.00513.29
7.3.310.0030.00316.35
7.3.300.0030.00316.19
7.3.290.0050.01216.32
7.3.280.0080.00916.26
7.3.270.0000.02117.40
7.3.260.0090.00616.35
7.3.250.0080.00916.35
7.3.240.0130.00916.40
7.3.230.0140.00916.47
7.3.210.0000.01616.37
7.3.200.0120.00919.39
7.3.190.0090.00916.26
7.3.180.0030.01316.55
7.3.170.0140.00916.39
7.3.160.0060.01016.18
7.3.120.0040.01414.84
7.3.110.0100.00614.77
7.3.100.0050.00815.02
7.3.90.0000.00914.65
7.3.80.0150.00015.16
7.3.70.0030.00914.75
7.3.60.0070.00714.66
7.3.50.0060.00614.50
7.3.40.0040.00814.65
7.3.30.0040.01114.70
7.3.20.0030.00616.64
7.3.10.0000.01716.58
7.3.00.0000.01416.27
7.2.330.0110.00816.42
7.2.320.0100.00716.38
7.2.310.0090.00916.62
7.2.300.0120.01116.87
7.2.290.0150.00916.80
7.2.250.0000.02014.98
7.2.240.0060.00614.95
7.2.230.0110.00714.94
7.2.220.0040.00814.89
7.2.210.0060.00614.77
7.2.200.0060.01014.76
7.2.190.0040.00815.11
7.2.180.0000.01215.20
7.2.170.0060.00314.70
7.2.00.0030.01019.18
7.1.330.0080.00815.79
7.1.320.0110.00315.71
7.1.310.0060.00315.70
7.1.300.0000.01515.69
7.1.290.0070.00715.35
7.1.280.0040.00715.46
7.1.270.0030.01015.32
7.1.260.0030.00715.75
7.1.100.0090.00317.85
7.1.70.0030.00616.91
7.1.60.0060.01819.32
7.1.50.0060.01916.92
7.1.00.0030.07722.35
7.0.200.0040.00416.71
7.0.140.0030.07321.95
7.0.60.0100.07319.97
7.0.50.0130.05717.82
7.0.40.0170.07720.02
7.0.30.0270.08320.26
7.0.20.0230.03320.06
7.0.10.0100.06020.25
7.0.00.0070.03720.25
5.6.280.0070.07021.04
5.6.210.0070.05320.50
5.6.200.0030.06018.18
5.6.190.0100.04720.41
5.6.180.0330.03320.48
5.6.170.0200.03720.57
5.6.160.0070.05320.54
5.6.150.0070.06018.29
5.6.140.0100.03718.18
5.6.130.0000.04318.12
5.6.120.0070.08321.14
5.6.110.0030.08320.98
5.6.100.0130.06720.98
5.6.90.0100.07321.00
5.6.80.0030.04020.43
5.6.70.4530.04020.35
5.5.350.0300.06320.32
5.5.340.0070.08017.98
5.5.330.0030.07320.26
5.5.320.0330.02720.32
5.5.310.0330.07020.23
5.5.300.0130.03718.06
5.5.290.0270.03718.08
5.5.280.0000.09320.77
5.5.270.0030.08720.77
5.5.260.0030.04320.89
5.5.250.0130.05020.59
5.5.240.3770.04020.35
5.4.450.0870.05719.71
5.4.440.0870.05719.70
5.4.430.0030.06019.61
5.4.420.0800.05719.19
5.4.410.0900.04319.51
5.4.400.0130.04719.30
5.4.390.0730.06019.14
5.4.380.0070.05719.13
5.4.370.0870.05019.02
5.4.360.0200.05019.01
5.4.350.0830.05719.29
5.4.340.0100.03312.02
5.4.320.0040.04112.50
5.4.310.0040.04212.50
5.4.300.0090.03312.50
5.4.290.0080.03512.50
5.4.280.0060.03512.39
5.4.270.0040.04012.39
5.4.260.0070.03612.39
5.4.250.0080.03912.39
5.4.240.0050.03512.39
5.4.230.0090.03412.39
5.4.220.0060.03712.39
5.4.210.0050.03512.39
5.4.200.0060.03712.39
5.4.190.0080.03212.38
5.4.180.0040.03612.38
5.4.170.0080.04112.39
5.4.160.0060.03512.39
5.4.150.0060.04812.39
5.4.140.0110.04812.07
5.4.130.0080.03612.05
5.4.120.0050.03612.02
5.4.110.0100.03112.01
5.4.100.0060.03512.01
5.4.90.0090.03512.02
5.4.80.0040.03812.01
5.4.70.0090.03112.01
5.4.60.0070.04012.01
5.4.50.0080.03812.01
5.4.40.0050.03512.00
5.4.30.0050.03512.00
5.4.20.0060.03511.99
5.4.10.0040.03611.99
5.4.00.0060.03611.48
5.3.290.0060.03912.80
5.3.280.0060.03812.71
5.3.270.0040.04112.72
5.3.260.0100.03612.72
5.3.250.0060.04312.72
5.3.240.0060.03612.72
5.3.230.0070.03512.71
5.3.220.0040.03812.68
5.3.210.0060.03912.68
5.3.200.0060.03512.68
5.3.190.0040.03912.68
5.3.180.0090.03712.67
5.3.170.0030.04112.67
5.3.160.0070.03712.68
5.3.150.0080.04012.67
5.3.140.0090.03412.66
5.3.130.0040.03912.66
5.3.120.0070.03712.66
5.3.110.0080.03612.66
5.3.100.0100.03312.11
5.3.90.0040.03912.10
5.3.80.0080.04112.09
5.3.70.0060.03912.09
5.3.60.0080.04412.07
5.3.50.0050.03612.02
5.3.40.0080.03312.02
5.3.30.0090.03111.98
5.3.20.0070.03311.76
5.3.10.0060.03411.73
5.3.00.0030.03811.71
5.2.170.0070.0319.21
5.2.160.0060.0289.22
5.2.150.0070.0289.21
5.2.140.0080.0339.21
5.2.130.0050.0299.17
5.2.120.0070.0269.18
5.2.110.0040.0299.18
5.2.100.0070.0269.17
5.2.90.0070.0369.18
5.2.80.0030.0369.17
5.2.70.0090.0259.17
5.2.60.0040.0309.13
5.2.50.0050.0299.09
5.2.40.0010.0329.07
5.2.30.0040.0299.05
5.2.20.0060.0279.04
5.2.10.0050.0278.94
5.2.00.0040.0298.80
5.1.60.0060.0218.09
5.1.50.0040.0248.09
5.1.40.0060.0228.06
5.1.30.0040.0258.41
5.1.20.0070.0228.43
5.1.10.0020.0278.16
5.1.00.0070.0288.16
5.0.50.0040.0256.64
5.0.40.0040.0176.50
5.0.30.0020.0406.31
5.0.20.0040.0196.28
5.0.10.0020.0216.26
5.0.00.0060.0346.25
4.4.90.0030.0174.78
4.4.80.0030.0144.75
4.4.70.0070.0164.75
4.4.60.0040.0184.75
4.4.50.0030.0184.77
4.4.40.0050.0324.71
4.4.30.0040.0224.76
4.4.20.0020.0214.84
4.4.10.0040.0134.85
4.4.00.0050.0284.76
4.3.110.0050.0184.67
4.3.100.0030.0194.66
4.3.90.0020.0184.64
4.3.80.0020.0294.59
4.3.70.0050.0174.63
4.3.60.0020.0194.63
4.3.50.0040.0184.63
4.3.40.0040.0274.54
4.3.30.0020.0163.30
4.3.20.0040.0153.28
4.3.10.0030.0153.23
4.3.00.0070.0276.99

preferences:
43.8 ms | 401 KiB | 5 Q