3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test {   public $something = 'hello';   public function __toString()   {     return $this->something;   } } $t = new Test(); var_dump(strlen($t)); var_dump($t->something);

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.4030.04319.00
5.4.310.3900.03719.20
5.4.300.3970.03019.31
5.4.290.3570.03718.87
5.4.280.3900.03319.21
5.4.270.3630.04019.10
5.4.260.4400.04019.07
5.4.250.4570.04319.13
5.4.240.4630.04019.13
5.4.230.4070.04018.94
5.4.220.4600.04019.15
5.4.210.4730.03718.94
5.4.200.4270.04019.25
5.4.190.3900.03719.30
5.4.180.3670.04019.19
5.4.170.3300.03719.14
5.4.160.3770.03719.06
5.4.150.4070.04718.98
5.4.140.4130.04716.35
5.4.130.3500.04016.51
5.4.120.3830.04316.28
5.4.110.4230.03716.52
5.4.100.4070.02316.26
5.4.90.4000.03716.45
5.4.80.3670.03716.34
5.4.70.3800.02316.44
5.4.60.4170.02716.43
5.4.50.3470.04016.34
5.4.40.4300.03716.23
5.4.30.3870.03016.52
5.4.20.4100.03316.32
5.4.10.1270.03716.50
5.4.00.0130.06315.75
5.3.290.3830.04014.66
5.3.280.4730.03314.81
5.3.270.4000.03314.57
5.3.260.3900.03014.76
5.3.250.3830.03014.52
5.3.240.3870.04014.61
5.3.230.3970.03314.51
5.3.220.4070.04014.48
5.3.210.3970.04014.56
5.3.200.4230.03714.57
5.3.190.4070.04014.57
5.3.180.4170.04014.63
5.3.170.3930.03314.77
5.3.160.3700.04714.54
5.3.150.3770.03314.55
5.3.140.4070.04014.54
5.3.130.3930.03314.56
5.3.120.3930.04314.53
5.3.110.3970.04014.54
5.3.100.0100.04014.11
5.3.90.0730.04314.03
5.3.80.3800.03714.17
5.3.70.4470.03714.02
5.3.60.3970.03313.91
5.3.50.4070.03013.95
5.3.40.3870.03713.85
5.3.30.3900.04014.03
5.3.20.3700.03313.59
5.3.10.4000.04713.73
5.3.00.3900.04713.61
5.2.170.3170.02311.36
5.2.160.3170.03711.04
5.2.150.3530.02711.05
5.2.140.2870.03011.09
5.2.130.3230.03011.02
5.2.120.3170.02711.26
5.2.110.3230.03711.00
5.2.100.2870.02711.00
5.2.90.2530.02711.11
5.2.80.2970.03311.16
5.2.70.3230.03010.99
5.2.60.3630.03011.26
5.2.50.0000.03011.24
5.2.40.0000.03010.90
5.2.30.0000.03010.88
5.2.20.0070.02711.17
5.2.10.2170.03010.79
5.2.00.1700.03010.68
5.1.60.0970.02710.13
5.1.50.1730.02310.13
5.1.40.1900.02310.13
5.1.30.1730.02310.43
5.1.20.2400.03010.39
5.1.10.2330.02010.13
5.1.00.2670.02710.13
5.0.50.1670.01310.13
5.0.40.1330.02010.13
5.0.30.1700.02710.13
5.0.20.1400.02010.13
5.0.10.1600.01710.13
5.0.00.1470.03010.13
4.4.90.1230.01310.13
4.4.80.0870.01310.13
4.4.70.0000.01710.13
4.4.60.0070.01010.13
4.4.50.1230.01710.13
4.4.40.0870.02310.13
4.4.30.0870.02010.13
4.4.20.0930.01310.13
4.4.10.1370.01710.13
4.4.00.1470.03010.13
4.3.110.1500.01310.13
4.3.100.1430.02010.13
4.3.90.1400.01310.13
4.3.80.1600.02310.13
4.3.70.1370.01710.13
4.3.60.1430.01710.13
4.3.50.1700.01710.13
4.3.40.1730.02710.13
4.3.30.0930.02010.13
4.3.20.0800.01710.13
4.3.10.0730.01710.13
4.3.00.0870.01710.13

preferences:
134.82 ms | 1394 KiB | 7 Q