3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ImplicitPropertyClass { protected function on_start() { $this->implicitProperty = 'a'; } public function __construct() { $this->on_start(); } } class ExplicitPropertyClass { public $property; protected function on_start() { $this->property = 'a'; } public function __construct() { $this->on_start(); } } $a = new ImplicitPropertyClass(); $b = new ExplicitPropertyClass();

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.0170.00316.87
8.3.50.0070.01122.12
8.3.40.0090.00918.61
8.3.30.0120.00319.04
8.3.20.0050.00220.29
8.3.10.0030.00621.79
8.3.00.0040.00420.96
8.2.180.0080.00818.66
8.2.170.0110.00322.96
8.2.160.0100.00322.17
8.2.150.0050.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00317.80
8.2.110.0070.00320.38
8.2.100.0040.00717.91
8.2.90.0000.00819.25
8.2.80.0040.00417.97
8.2.70.0030.00917.25
8.2.60.0060.00317.80
8.2.50.0040.00918.07
8.2.40.0060.00318.16
8.2.30.0090.00017.99
8.2.20.0000.00817.54
8.2.10.0050.00317.98
8.2.00.0040.00417.47
8.1.280.0150.00625.92
8.1.270.0060.00320.68
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.87
8.1.230.0040.00719.10
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0050.00318.52
8.1.160.0070.00021.98
8.1.150.0030.00618.73
8.1.140.0070.00019.11
8.1.130.0050.00317.82
8.1.120.0090.00017.32
8.1.110.0040.00417.30
8.1.100.0000.00717.42
8.1.90.0000.00617.29
8.1.80.0070.00017.41
8.1.70.0030.00317.39
8.1.60.0040.00417.57
8.1.50.0000.00817.42
8.1.40.0040.00417.42
8.1.30.0030.00617.64
8.1.20.0000.00717.57
8.1.10.0040.00417.43
8.1.00.0000.00717.43
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0020.00518.29
8.0.270.0030.00317.25
8.0.260.0000.00617.23
8.0.250.0070.00016.85
8.0.240.0030.00316.89
8.0.230.0000.00716.80
8.0.220.0000.00716.69
8.0.210.0000.00716.71
8.0.200.0000.00616.81
8.0.190.0000.00916.93
8.0.180.0000.00716.90
8.0.170.0000.00816.92
8.0.160.0030.00416.82
8.0.150.0050.00216.85
8.0.140.0030.00316.78
8.0.130.0000.00613.34
8.0.120.0050.00316.75
8.0.110.0040.00416.72
8.0.100.0000.00816.81
8.0.90.0040.00416.79
8.0.80.0060.01016.70
8.0.70.0050.00216.66
8.0.60.0000.00716.86
8.0.50.0040.00416.73
8.0.30.0150.01017.06
8.0.20.0060.01217.40
8.0.10.0050.00316.82
8.0.00.0100.01016.63
7.4.330.0000.00615.03
7.4.320.0060.00016.35
7.4.300.0060.00016.57
7.4.290.0000.00816.41
7.4.280.0070.00016.40
7.4.270.0000.00716.52
7.4.260.0040.00416.41
7.4.250.0050.00316.45
7.4.240.0000.00716.55
7.4.230.0000.00716.70
7.4.220.0030.01416.66
7.4.210.0090.00516.63
7.4.200.0000.00716.62
7.4.160.0120.00316.34
7.4.150.0140.01117.40
7.4.140.0150.00217.86
7.4.130.0120.00816.47
7.4.120.0110.00816.48
7.4.110.0100.00716.42
7.4.100.0190.00316.38
7.4.90.0100.00916.40
7.4.80.0060.01219.39
7.4.70.0000.01816.35
7.4.60.0140.00316.52
7.4.50.0000.00416.23
7.4.40.0070.01016.25
7.4.30.0160.00316.40
7.4.00.0030.00915.05
7.3.330.0030.00313.17
7.3.320.0000.00613.29
7.3.310.0000.00716.15
7.3.300.0030.00316.24
7.3.290.0000.00716.18
7.3.280.0060.00616.29
7.3.270.0070.01717.40
7.3.260.0070.01016.52
7.3.250.0100.00716.40
7.3.240.0150.00816.32
7.3.230.0120.00916.39
7.3.210.0140.00416.37
7.3.200.0120.00919.39
7.3.190.0060.01216.30
7.3.180.0070.01316.62
7.3.170.0120.00816.27
7.3.160.0100.00616.25
7.2.330.0100.01316.39
7.2.320.0070.01016.46
7.2.310.0120.00316.30
7.2.300.0110.00616.80
7.2.290.0110.00716.68
7.2.60.0070.00416.89
7.1.200.0030.00915.75
7.1.100.0030.00618.27
7.1.70.0020.00517.22
7.1.60.0060.01819.46
7.1.50.0210.00034.57
7.1.00.0000.08022.28
7.0.200.0550.00314.89
7.0.140.0100.02722.18
7.0.60.0070.08019.95
7.0.50.0070.07317.84
7.0.40.0070.04020.30
7.0.30.0370.07320.26
7.0.20.0200.04020.24
7.0.10.0130.06320.06
7.0.00.0030.06720.30
5.6.280.0070.07021.10
5.6.210.0070.08020.55
5.6.200.0030.08318.29
5.6.190.0070.05720.33
5.6.180.0230.04320.48
5.6.170.0200.04020.60
5.6.160.0100.08020.71
5.6.150.0030.05018.16
5.6.140.0100.05318.18
5.6.130.0030.08718.18
5.6.120.0030.05321.13
5.6.110.0100.08320.99
5.6.100.0070.04021.04
5.6.90.0030.04021.11
5.6.80.0130.07320.39
5.5.350.0330.06720.45
5.5.340.0030.06717.96
5.5.330.0030.04320.13
5.5.320.0300.04720.28
5.5.310.0330.07320.34
5.5.300.0130.05717.95
5.5.290.0030.07717.99
5.5.280.0130.07720.80
5.5.270.0030.05720.76
5.5.260.0000.04320.79
5.5.250.0070.04020.69
5.5.240.0030.03720.27
5.4.450.0700.06019.59
5.4.440.0230.05019.20
5.4.430.0370.06319.40
5.4.420.0270.05719.63
5.4.410.0170.06319.61
5.4.400.0230.06319.15
5.4.390.0770.06018.60
5.4.380.1070.04018.70
5.4.370.0970.05718.50
5.4.360.0930.05318.84
5.4.350.1070.04718.46
5.4.340.0800.06318.46
5.4.320.1030.05318.57
5.4.310.1030.05718.52
5.4.300.0970.05018.49
5.4.290.0930.06718.73
5.4.280.0900.05018.72
5.4.270.0970.05018.57
5.4.260.0770.06318.77
5.4.250.1000.06718.75
5.4.240.1030.05318.49
5.4.230.0870.06318.79
5.4.220.0870.05318.77
5.4.210.1030.06318.71
5.4.200.1130.05016.53
5.4.190.1070.04718.44
5.4.180.0830.05718.74
5.4.170.0870.05718.55
5.4.160.1030.04018.78
5.4.150.0900.05018.74
5.4.140.0930.05016.30
5.4.130.0870.04716.21
5.4.120.0830.05316.22
5.4.110.1130.05016.21
5.4.100.0870.05316.29
5.4.90.0900.05016.36
5.4.80.0930.05016.44
5.4.70.0930.04316.42
5.4.60.1100.05016.22
5.4.50.1030.04016.27
5.4.40.1070.04316.15
5.4.30.0930.05016.39
5.4.20.1000.05316.25
5.4.10.0900.05716.25
5.4.00.1030.04315.68
5.3.290.0930.06314.71
5.3.280.0830.05714.73
5.3.270.0800.06014.77
5.3.260.0970.05014.68
5.3.250.1070.04714.59
5.3.240.1200.04014.73
5.3.230.1070.05014.73
5.3.220.1070.05314.60
5.3.210.1000.05314.75
5.3.200.0870.05714.67
5.3.190.1100.06714.75
5.3.180.1070.05014.70
5.3.170.1100.04714.60
5.3.160.0930.06014.54
5.3.150.1070.06014.60
5.3.140.0930.05714.68
5.3.130.1070.06014.76
5.3.120.0900.05314.61
5.3.110.0970.05014.71
5.3.100.1030.04714.14
5.3.90.0970.05714.13
5.3.80.0930.05714.19
5.3.70.1070.04314.15
5.3.60.0970.06014.13
5.3.50.0930.04314.00
5.3.40.0930.04014.06
5.3.30.0970.05313.89
5.3.20.0870.04713.75
5.3.10.0770.05713.73
5.3.00.1030.05013.66
5.2.170.0800.04311.20
5.2.160.0930.03011.25
5.2.150.0870.03711.25
5.2.140.0870.04711.27
5.2.130.0930.03711.24
5.2.120.0700.04711.15
5.2.110.0800.03711.17
5.2.100.0800.04011.16
5.2.90.0800.04011.05
5.2.80.0770.04311.08
5.2.70.0830.04011.20
5.2.60.0870.03711.12
5.2.50.0900.04711.07
5.2.40.0700.04011.11
5.2.30.0530.05011.04
5.2.20.0630.03710.99
5.2.10.0670.03311.05
5.2.00.0630.03710.81
5.1.60.0570.03010.04
5.1.50.0500.04010.19
5.1.40.0600.03710.10
5.1.30.0500.04310.41
5.1.20.0630.04010.48
5.1.10.0630.03710.18
5.1.00.0530.04010.15
5.0.50.0300.0378.76
5.0.40.0230.0338.61
5.0.30.0270.0538.33
5.0.20.0330.0278.38
5.0.10.0330.0278.39
5.0.00.0270.0438.17
4.4.90.0370.0136.23
4.4.80.0330.0176.23
4.4.70.0330.0176.23
4.4.60.0300.0236.23
4.4.50.0300.0206.23
4.4.40.0370.0306.23
4.4.30.0300.0236.23
4.4.20.0270.0276.23
4.4.10.0370.0236.23
4.4.00.0300.0406.23
4.3.110.0330.0206.23
4.3.100.0300.0206.23
4.3.90.0300.0236.23
4.3.80.0300.0376.23
4.3.70.0270.0206.23
4.3.60.0330.0176.23
4.3.50.0230.0276.23
4.3.40.0230.0376.23
4.3.30.0170.0206.23
4.3.20.0130.0276.23
4.3.10.0130.0276.23
4.3.00.0070.03714.42

preferences:
50.12 ms | 401 KiB | 5 Q