3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ protected $a = array('a' => 'a'); protected $b = array('b' => 'b'); protected $c = 11+ self::$d; protected $d = 1; }

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)
5.4.320.0070.04719.12
5.4.310.0030.03719.01
5.4.300.3870.03719.06
5.4.290.3530.03719.15
5.4.280.3930.04319.01
5.4.270.3470.03719.15
5.4.260.3630.03719.07
5.4.250.4700.04019.15
5.4.240.3730.03018.89
5.4.230.3270.03719.00
5.4.220.3600.04019.05
5.4.210.3800.03319.16
5.4.200.0070.07718.95
5.4.190.4670.03319.00
5.4.180.4530.04018.88
5.4.170.4200.04019.06
5.4.160.4170.03019.04
5.4.150.3930.04019.15
5.4.140.4170.03716.34
5.4.130.4230.03316.39
5.4.120.4330.03316.38
5.4.110.3970.03716.44
5.4.100.4500.03016.19
5.4.90.4170.03316.42
5.4.80.3870.03716.38
5.4.70.4000.03316.48
5.4.60.3770.03016.29
5.4.50.4670.02716.43
5.4.40.3600.03716.45
5.4.30.3900.03716.30
5.4.20.3700.03716.49
5.4.10.4400.04316.57
5.4.00.4670.03015.86
5.3.290.0100.04014.69
5.3.280.2970.03314.59
5.3.270.4430.04014.65
5.3.260.3930.03714.64
5.3.250.4030.03314.67
5.3.240.4100.03314.63
5.3.230.4270.03314.74
5.3.220.4270.03714.55
5.3.210.4270.04314.62
5.3.200.3700.04314.56
5.3.190.4600.03714.59
5.3.180.4500.05314.55
5.3.170.4030.03714.61
5.3.160.4030.04014.61
5.3.150.4800.04014.59
5.3.140.4170.03014.54
5.3.130.4030.03714.61
5.3.120.4070.04014.46
5.3.110.4400.04014.70
5.3.100.4700.03713.93
5.3.90.4200.03714.06
5.3.80.3130.03713.98
5.3.70.3570.03314.07
5.3.60.4000.03714.00
5.3.50.4370.03713.89
5.3.40.3900.03713.83
5.3.30.4770.03313.93
5.3.20.4630.04013.65
5.3.10.3830.03313.54
5.3.00.4500.03313.59
5.2.170.3870.03011.15
5.2.160.3870.03311.11
5.2.150.3870.03711.29
5.2.140.3830.03311.21
5.2.130.3930.02310.99
5.2.120.3300.02710.99
5.2.110.3500.02311.24
5.2.100.3830.03011.16
5.2.90.3570.03311.11
5.2.80.3900.02311.16
5.2.70.3800.02311.09
5.2.60.3930.03011.05
5.2.50.3900.03011.17
5.2.40.3300.02010.95
5.2.30.3300.02711.02
5.2.20.3170.02311.01
5.2.10.3070.02310.91
5.2.00.3330.02010.72
5.1.60.2700.02310.01
5.1.50.3230.0239.96
5.1.40.3070.02010.02
5.1.30.3270.02310.48
5.1.20.3130.03010.50
5.1.10.2830.02310.11
5.1.00.2870.02310.08
5.0.50.1830.0238.61
5.0.40.1530.0208.39
5.0.30.1800.0338.29
5.0.20.1600.0138.35
5.0.10.1500.0138.21
5.0.00.1730.0278.13
4.4.90.1830.0176.29
4.4.80.1530.0136.29
4.4.70.1470.0136.29
4.4.60.1470.0136.29
4.4.50.1870.0136.29
4.4.40.1700.0236.29
4.4.30.1530.0176.29
4.4.20.1770.0136.29
4.4.10.1900.0136.29
4.4.00.1430.0276.29
4.3.110.1770.0176.29
4.3.100.1400.0176.29
4.3.90.1430.0176.29
4.3.80.1470.0306.29
4.3.70.1800.0176.29
4.3.60.1600.0136.29
4.3.50.1830.0176.29
4.3.40.1530.0336.29
4.3.30.1000.0206.29
4.3.20.0870.0176.29
4.3.10.0700.0176.29
4.3.00.0930.0136.29

preferences:
142.89 ms | 1398 KiB | 7 Q