3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ public magou(){ echo "magou"; } private static function xuxu(){ echo 'xuxu'; } } $test = new test(); $arr = (array)$test; var_dump($arr);

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.350.3400.04019.22
5.4.340.3530.04019.15
5.4.320.3930.04018.97
5.4.310.3600.03718.93
5.4.300.3500.04319.14
5.4.290.3770.03719.22
5.4.280.3570.04319.13
5.4.270.3700.04019.26
5.4.260.3670.04019.22
5.4.250.3930.03319.20
5.4.240.3930.02719.23
5.4.230.4130.03719.04
5.4.220.2970.04019.09
5.4.210.3830.04019.20
5.4.200.3670.04018.96
5.4.190.4530.03018.96
5.4.180.3730.03319.14
5.4.170.4230.04319.15
5.4.160.4170.03719.12
5.4.150.4470.04019.24
5.4.140.3830.03316.41
5.4.130.3670.04016.44
5.4.120.3600.03716.35
5.4.110.3670.02716.44
5.4.100.4070.03716.26
5.4.90.3830.03316.32
5.4.80.4200.03716.49
5.4.70.3570.03716.48
5.4.60.4330.03716.42
5.4.50.3970.04016.48
5.4.40.3130.03016.29
5.4.30.3570.03016.19
5.4.20.3930.04016.43
5.4.10.4500.03316.47
5.4.00.4370.03715.89
5.3.290.3800.03314.80
5.3.280.3900.03714.63
5.3.270.4530.03014.76
5.3.260.3800.04014.76
5.3.250.4570.04714.64
5.3.240.4630.04714.64
5.3.230.3870.03314.66
5.3.220.3570.03714.55
5.3.210.3930.03014.56
5.3.200.3730.03714.61
5.3.190.4430.04014.64
5.3.180.4370.03314.58
5.3.170.4200.03714.55
5.3.160.4400.03714.58
5.3.150.4330.04314.60
5.3.140.4100.02714.63
5.3.130.3770.03314.55
5.3.120.3870.03314.55
5.3.110.4730.04314.55
5.3.100.4630.02314.04
5.3.90.4330.03714.20
5.3.80.4570.03714.03
5.3.70.4030.04314.04
5.3.60.4230.03313.99
5.3.50.4570.04314.09
5.3.40.4570.04013.97
5.3.30.3830.03313.96
5.3.20.4070.03713.75
5.3.10.3730.04013.70
5.3.00.4270.03313.70
5.2.170.3870.02711.20
5.2.160.3870.02711.14
5.2.150.3700.03711.11
5.2.140.3030.02711.03
5.2.130.3330.02311.15
5.2.120.3030.02711.02
5.2.110.3170.03311.10
5.2.100.3300.02011.14
5.2.90.3400.03311.17
5.2.80.3270.03011.06
5.2.70.3400.03011.11
5.2.60.3430.02711.10
5.2.50.3130.03011.01
5.2.40.2370.03311.02
5.2.30.2370.03010.98
5.2.20.2500.01711.00
5.2.10.2570.03311.01
5.2.00.2330.02710.87
5.1.60.2670.02010.01
5.1.50.3070.0279.94
5.1.40.3000.0279.98
5.1.30.3030.02010.22
5.1.20.3230.03010.38
5.1.10.2770.0279.96
5.1.00.2430.02710.02
5.0.50.1600.0208.54
5.0.40.1770.0208.44
5.0.30.1530.0308.21
5.0.20.1430.0208.15
5.0.10.1200.0178.23
5.0.00.1170.0338.17
4.4.90.1370.0175.90
4.4.80.1270.0175.83
4.4.70.1170.0175.81
4.4.60.1200.0135.78
4.4.50.1470.0175.78
4.4.40.1500.0235.85
4.4.30.1630.0135.80
4.4.20.1830.0205.90
4.4.10.1170.0135.88
4.4.00.1670.0235.83
4.3.110.1500.0175.75
4.3.100.1430.0175.78
4.3.90.1330.0205.71
4.3.80.1130.0275.77
4.3.70.1230.0105.80
4.3.60.1170.0175.75
4.3.50.1200.0205.80
4.3.40.1170.0235.71
4.3.30.0600.0135.71
4.3.20.0570.0175.71
4.3.10.0530.0175.71
4.3.00.0600.0135.71

preferences:
146.58 ms | 1394 KiB | 7 Q