3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ImplicitPropertyClass { public function __construct() { $this->implicitProperty = 'a'; } } class ExplicitPropertyClass { public $property; public function __construct() { $this->property = 'a'; } } $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.40.0060.01218.79
8.3.30.0100.00319.04
8.3.20.0080.00020.34
8.3.10.0040.00421.80
8.3.00.0060.00320.87
8.2.170.0000.01418.83
8.2.160.0030.01022.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00226.16
8.2.120.0070.00319.39
8.2.110.0050.00520.45
8.2.100.0070.00317.96
8.2.90.0000.00819.14
8.2.80.0030.00617.97
8.2.70.0080.00017.38
8.2.60.0000.01217.80
8.2.50.0040.00418.07
8.2.40.0000.00919.95
8.2.30.0000.00718.00
8.2.20.0060.00317.53
8.2.10.0040.00417.97
8.2.00.0000.00717.62
8.1.270.0080.00020.60
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.87
8.1.230.0070.00418.81
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0080.00017.23
8.1.190.0060.00317.10
8.1.180.0000.00718.10
8.1.170.0040.00418.51
8.1.160.0030.00521.96
8.1.150.0030.00718.75
8.1.140.0000.00719.09
8.1.130.0000.00717.83
8.1.120.0030.00617.47
8.1.110.0040.00417.30
8.1.100.0040.00417.40
8.1.90.0020.00517.30
8.1.80.0040.00417.39
8.1.70.0030.00317.29
8.1.60.0000.00817.49
8.1.50.0000.00917.54
8.1.40.0000.00717.54
8.1.30.0040.00417.62
8.1.20.0040.00417.56
8.1.10.0050.00217.54
8.1.00.0030.00617.49
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0080.00018.31
8.0.270.0030.00317.20
8.0.260.0000.00617.23
8.0.250.0000.00816.79
8.0.240.0000.00616.91
8.0.230.0000.00816.91
8.0.220.0030.00316.75
8.0.210.0000.00716.74
8.0.200.0000.00716.84
8.0.190.0050.00316.94
8.0.180.0030.00516.86
8.0.170.0030.00616.88
8.0.160.0040.00416.89
8.0.150.0050.00316.79
8.0.140.0030.00316.86
8.0.130.0060.00013.35
8.0.120.0000.00816.82
8.0.110.0000.00816.66
8.0.100.0000.00816.82
8.0.90.0070.00016.80
8.0.80.0030.01316.79
8.0.70.0000.00716.90
8.0.60.0040.00416.64
8.0.50.0040.00416.78
8.0.30.0120.01016.96
8.0.20.0090.01017.40
8.0.10.0000.00816.82
8.0.00.0080.00816.96
7.4.330.0030.00315.03
7.4.320.0030.00316.47
7.4.300.0030.00316.51
7.4.290.0060.00016.52
7.4.280.0070.00016.36
7.4.270.0070.00016.60
7.4.260.0060.00316.56
7.4.250.0040.00416.46
7.4.240.0020.00516.59
7.4.230.0000.00716.41
7.4.220.0030.01416.58
7.4.210.0060.00916.62
7.4.200.0070.00016.51
7.4.160.0060.00916.45
7.4.150.0100.01617.40
7.4.140.0130.00617.86
7.4.130.0060.01016.41
7.4.120.0080.00816.54
7.4.110.0070.01016.67
7.4.100.0100.01416.41
7.4.90.0070.01016.51
7.4.80.0100.01319.39
7.4.70.0150.00716.47
7.4.60.0030.01316.38
7.4.50.0040.00416.41
7.4.40.0060.00916.38
7.4.30.0150.01016.46
7.4.00.0070.01014.98
7.3.330.0000.00613.29
7.3.320.0060.00013.18
7.3.310.0000.00716.13
7.3.300.0070.00016.18
7.3.290.0000.00816.17
7.3.280.0080.00916.28
7.3.270.0150.00917.40
7.3.260.0070.01016.21
7.3.250.0130.00616.33
7.3.240.0030.01416.26
7.3.230.0070.01716.39
7.3.210.0100.00716.23
7.3.200.0090.00919.39
7.3.190.0100.00716.24
7.3.180.0040.01116.30
7.3.170.0120.00916.41
7.3.160.0000.01616.34
7.2.330.0180.00316.28
7.2.320.0100.01016.70
7.2.310.0180.00316.58
7.2.300.0100.00716.33
7.2.290.0140.00316.59
7.2.60.0060.00916.69
7.2.00.0060.00619.01
7.1.200.0000.01415.45
7.1.100.0110.00618.20
7.1.70.0040.00417.21
7.1.60.0110.01419.46
7.1.50.0190.00434.73
7.1.00.0070.07322.57
7.0.200.0150.00414.93
7.0.140.0070.05022.15
7.0.60.0100.04020.05
7.0.50.0100.07017.73
7.0.40.0200.07020.27
7.0.30.0300.06720.21
7.0.20.0200.04020.15
7.0.10.0230.07720.16
7.0.00.0030.07020.08
5.6.280.0100.07021.09
5.6.210.0100.06720.67
5.6.200.0070.07718.29
5.6.190.0200.07720.63
5.6.180.0230.04720.41
5.6.170.0330.07720.44
5.6.160.0130.08320.48
5.6.150.0030.08318.23
5.6.140.0030.08318.18
5.6.130.0070.08018.17
5.6.120.0030.05021.04
5.6.110.0100.08020.98
5.6.100.0070.08021.11
5.6.90.0100.04320.98
5.6.80.0170.04320.44
5.5.350.0330.05320.41
5.5.340.0100.04317.93
5.5.330.0070.05720.47
5.5.320.0100.06020.28
5.5.310.0270.03320.28
5.5.300.0030.07018.09
5.5.290.0070.03717.95
5.5.280.0030.08020.77
5.5.270.0070.06720.84
5.5.260.0030.07720.87
5.5.250.0130.07720.62
5.5.240.0030.04020.16
5.4.450.0630.05719.35
5.4.440.0070.06019.63
5.4.430.0200.05719.18
5.4.420.0100.06019.38
5.4.410.0070.06719.42
5.4.400.0200.05719.07
5.4.390.0900.05018.77
5.4.380.0870.04318.80
5.4.370.0830.04318.75
5.4.360.0830.04718.46
5.4.350.0930.08318.75
5.4.340.1030.06718.38
5.4.320.1000.06018.82
5.4.310.0970.06718.59
5.4.300.0930.04018.75
5.4.290.0900.06018.78
5.4.280.0970.06018.73
5.4.270.1030.05718.76
5.4.260.0930.06318.62
5.4.250.1100.07318.58
5.4.240.0730.05018.59
5.4.230.0770.05718.50
5.4.220.0900.07018.51
5.4.210.1070.05018.58
5.4.200.0670.06316.80
5.4.190.0870.06018.77
5.4.180.1130.07318.48
5.4.170.0900.05018.73
5.4.160.1230.05318.57
5.4.150.0970.05718.63
5.4.140.1000.07016.34
5.4.130.0900.07316.29
5.4.120.0800.05016.30
5.4.110.1030.05716.27
5.4.100.0870.06016.36
5.4.90.1000.05316.33
5.4.80.0830.05716.28
5.4.70.0930.05316.42
5.4.60.0930.05316.24
5.4.50.0930.04716.19
5.4.40.0900.05716.19
5.4.30.0930.05316.18
5.4.20.0700.05016.26
5.4.10.0830.05016.26
5.4.00.1030.04315.64
5.3.290.1030.05714.83
5.3.280.0630.06314.76
5.3.270.1000.05314.74
5.3.260.0930.06014.74
5.3.250.0870.05014.66
5.3.240.0900.05014.75
5.3.230.0670.06014.66
5.3.220.0770.06014.67
5.3.210.0870.06014.59
5.3.200.0830.04714.61
5.3.190.0970.05314.70
5.3.180.0800.05714.62
5.3.170.0070.05314.59
5.3.160.0200.06014.74
5.3.150.0930.05714.75
5.3.140.0630.05714.55
5.3.130.0900.06714.68
5.3.120.0930.05314.66
5.3.110.0970.06014.73
5.3.100.0770.05714.18
5.3.90.0730.06314.15
5.3.80.0770.05714.13
5.3.70.0970.05014.25
5.3.60.0970.04314.11
5.3.50.0930.07314.08
5.3.40.0870.05014.08
5.3.30.1030.03313.94
5.3.20.0730.06013.71
5.3.10.0870.06013.68
5.3.00.0930.07013.71
5.2.170.0870.05011.20
5.2.160.0670.04711.26
5.2.150.0830.03711.15
5.2.140.0770.04311.18
5.2.130.0630.04711.13
5.2.120.0630.04311.15
5.2.110.0870.04711.33
5.2.100.0470.05311.21
5.2.90.0830.03311.13
5.2.80.0930.04711.11
5.2.70.0730.04711.21
5.2.60.0830.05011.07
5.2.50.0670.05311.27
5.2.40.0730.04311.03
5.2.30.0430.05011.09
5.2.20.0570.05011.16
5.2.10.0670.05010.88
5.2.00.0730.05310.76
5.1.60.0630.05310.19
5.1.50.0600.05310.18
5.1.40.0730.04010.05
5.1.30.0570.03710.44
5.1.20.0700.03010.57
5.1.10.0470.04310.11
5.1.00.0330.03710.10
5.0.50.0270.0308.57
5.0.40.0330.0308.55
5.0.30.0230.0538.24
5.0.20.0230.0278.23
5.0.10.0230.0378.31
5.0.00.0370.0438.20
4.4.90.0300.0236.23
4.4.80.0230.0236.23
4.4.70.0200.0236.23
4.4.60.0400.0136.23
4.4.50.0300.0306.23
4.4.40.0200.0476.23
4.4.30.0300.0236.23
4.4.20.0270.0276.23
4.4.10.0430.0206.23
4.4.00.0200.0336.23
4.3.110.0370.0276.23
4.3.100.0300.0336.23
4.3.90.0300.0206.23
4.3.80.0270.0406.23
4.3.70.0300.0276.23
4.3.60.0200.0206.23
4.3.50.0300.0306.23
4.3.40.0230.0276.23
4.3.30.0270.0276.23
4.3.20.0070.0336.23
4.3.10.0100.0306.23
4.3.00.0000.03314.42

preferences:
41.34 ms | 400 KiB | 5 Q