3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ private $str = "xuxu"; public function __get(){ return $this->$str; } } $t = new test(); echo $t->$str;

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.340.3300.03719.06
5.4.320.3370.04319.15
5.4.310.3100.04319.24
5.4.300.3200.03318.87
5.4.290.3300.04319.07
5.4.280.3470.03019.19
5.4.270.3370.03719.09
5.4.260.3130.03019.08
5.4.250.3170.03719.13
5.4.240.3200.04019.09
5.4.230.3400.04018.98
5.4.220.2930.04019.21
5.4.210.3230.04719.21
5.4.200.2930.03718.84
5.4.190.3400.03018.97
5.4.180.3430.04319.13
5.4.170.3300.03319.18
5.4.160.2870.04019.17
5.4.150.3170.04019.07
5.4.140.2970.04016.51
5.4.130.2930.02716.45
5.4.120.2970.03316.60
5.4.110.2970.03016.54
5.4.100.2970.03716.40
5.4.90.2900.04016.56
5.4.80.3100.03316.44
5.4.70.3430.04016.25
5.4.60.3100.03716.54
5.4.50.2800.04316.38
5.4.40.3130.03016.54
5.4.30.3270.04016.23
5.4.20.3000.04016.42
5.4.10.3330.02716.53
5.4.00.3100.03315.78
5.3.290.3230.04014.66
5.3.280.3430.04014.64
5.3.270.3400.03314.75
5.3.260.3200.04314.52
5.3.250.3130.03314.82
5.3.240.2970.03014.70
5.3.230.3130.03314.66
5.3.220.3530.03014.65
5.3.210.3170.04014.47
5.3.200.3170.03714.57
5.3.190.3100.04314.64
5.3.180.2800.03014.53
5.3.170.3100.04014.78
5.3.160.3130.03714.47
5.3.150.2870.04014.56
5.3.140.3400.04314.67
5.3.130.3000.03714.53
5.3.120.3200.03714.62
5.3.110.3070.04314.54
5.3.100.3200.03714.05
5.3.90.2970.03714.24
5.3.80.3030.04013.93
5.3.70.3230.03314.09
5.3.60.3570.03313.90
5.3.50.3230.03713.96
5.3.40.3230.03714.06
5.3.30.2970.03713.91
5.3.20.3270.03013.77
5.3.10.3330.03313.55
5.3.00.3800.03013.72
5.2.170.2770.02312.64
5.2.160.2600.03712.64
5.2.150.2700.03012.64
5.2.140.2500.03012.64
5.2.130.2630.03012.64
5.2.120.2430.03012.64
5.2.110.3070.02712.64
5.2.100.3100.03312.64
5.2.90.3100.02712.64
5.2.80.2930.02312.64
5.2.70.3030.02012.64
5.2.60.3270.02712.64
5.2.50.3830.02712.64
5.2.40.2700.02712.64
5.2.30.2530.03012.64
5.2.20.2430.03312.64
5.2.10.3130.03012.64
5.2.00.2570.03012.64
5.1.60.2330.03012.64
5.1.50.2600.02012.64
5.1.40.2600.02312.64
5.1.30.2370.02312.64
5.1.20.2730.02712.64
5.1.10.2670.02312.64
5.1.00.1930.02312.64
5.0.50.1400.02012.64
5.0.40.1170.02012.64
5.0.30.1300.03712.64
5.0.20.1230.02012.64
5.0.10.1330.02012.64
5.0.00.1470.03312.64
4.4.90.1130.01712.64
4.4.80.1470.01712.64
4.4.70.1430.01712.64
4.4.60.1330.01712.64
4.4.50.1370.01312.64
4.4.40.1430.02712.64
4.4.30.1400.02012.64
4.4.20.1430.01312.64
4.4.10.1270.01312.64
4.4.00.1170.02712.64
4.3.110.1200.01312.64
4.3.100.1530.01012.64
4.3.90.1530.01712.64
4.3.80.1430.03312.64
4.3.70.1530.01312.64
4.3.60.1200.01712.64
4.3.50.1530.01712.64
4.3.40.1470.03012.64
4.3.30.0800.02712.64
4.3.20.0800.02012.64
4.3.10.0730.02712.64
4.3.00.0870.02012.64

preferences:
148.52 ms | 1394 KiB | 7 Q