3v4l.org

run code in 300+ PHP versions simultaneously
<?php class tostr extends \stdClass { public function __toString() { return print_r($this,1); } public $a = '123'; protected $b = '456' private $c = '789'; } echo new tostr();

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.6.80.0170.06320.41
5.5.240.0000.08320.23
5.4.400.0270.05018.81
5.4.390.0400.04018.53
5.4.380.0230.05718.75
5.4.370.0230.05318.61
5.4.360.0300.04718.57
5.4.350.0230.06018.54
5.4.340.0300.06318.79
5.4.320.0300.05718.80
5.4.310.0330.04318.53
5.4.300.0370.04718.70
5.4.290.0270.05018.59
5.4.280.0300.05018.59
5.4.270.0230.05318.63
5.4.260.0370.05018.73
5.4.250.0370.05318.44
5.4.240.0270.05718.80
5.4.230.0200.06018.60
5.4.220.0270.05718.71
5.4.210.0170.06318.73
5.4.200.0330.04016.63
5.4.190.0270.04718.73
5.4.180.0230.06318.77
5.4.170.0330.05018.51
5.4.160.0400.04318.74
5.4.150.0270.05018.45
5.4.140.0370.04716.33
5.4.130.0230.05716.33
5.4.120.0400.04716.42
5.4.110.0400.04316.44
5.4.100.0370.04316.45
5.4.90.0370.05016.43
5.4.80.0400.05016.24
5.4.70.0370.05016.41
5.4.60.0330.05016.39
5.4.50.0300.04716.25
5.4.40.0370.04716.42
5.4.30.0330.05016.18
5.4.20.0430.04016.26
5.4.10.0370.04016.26
5.4.00.0270.05315.74
5.3.290.0300.06714.79
5.3.280.0270.05714.58
5.3.270.0230.05714.81
5.3.260.0230.06014.63
5.3.250.0370.06014.64
5.3.240.0300.06714.64
5.3.230.0200.06014.64
5.3.220.0330.05014.61
5.3.210.0400.04014.68
5.3.200.0200.05314.77
5.3.190.0200.05714.77
5.3.180.0300.05314.66
5.3.170.0430.04314.55
5.3.160.0530.07014.66
5.3.150.0270.08014.75
5.3.140.0470.06314.84
5.3.130.0430.04714.59
5.3.120.0300.05714.59
5.3.110.0430.05314.75
5.3.100.0300.07014.08
5.3.90.0270.05014.22
5.3.80.0300.05314.06
5.3.70.0400.04714.02
5.3.60.0270.06314.11
5.3.50.0470.05713.94
5.3.40.0400.05314.06
5.3.30.0330.05313.95
5.3.20.0300.05313.70
5.3.10.0300.04313.64
5.3.00.0300.05013.92
5.2.170.0200.04711.20
5.2.160.0300.03711.19
5.2.150.0370.03011.20
5.2.140.0230.05311.25
5.2.130.0270.05011.16
5.2.120.0300.04011.20
5.2.110.0230.04311.20
5.2.100.0230.04711.20
5.2.90.0230.04711.21
5.2.80.0270.04011.20
5.2.70.0270.04311.22
5.2.60.0300.03711.11
5.2.50.0300.04711.24
5.2.40.0200.05711.02
5.2.30.0330.05311.00
5.2.20.0270.04011.01
5.2.10.0330.03710.93
5.2.00.0230.05010.71
5.1.60.0330.03010.05
5.1.50.0200.03310.11
5.1.40.0270.03310.11
5.1.30.0170.03710.38
5.1.20.0230.04010.57
5.1.10.0330.04010.21
5.1.00.0300.04310.11
5.0.50.0300.0339.09
5.0.40.0200.0279.09
5.0.30.0130.0439.09
5.0.20.0070.0339.09
5.0.10.0200.0339.09
5.0.00.0230.0479.09
4.4.90.0100.0279.09
4.4.80.0070.0279.09
4.4.70.0130.0309.09
4.4.60.0100.0209.09
4.4.50.0070.0209.09
4.4.40.0130.0479.09
4.4.30.0130.0209.09
4.4.20.0070.0239.09
4.4.10.0170.0179.09
4.4.00.0070.0409.09
4.3.110.0170.0279.09
4.3.100.0100.0279.09
4.3.90.0070.0279.09
4.3.80.0130.0309.09
4.3.70.0100.0209.09
4.3.60.0070.0279.09
4.3.50.0070.0239.09
4.3.40.0100.0379.09
4.3.30.0030.0239.09
4.3.20.0030.0279.09
4.3.10.0030.0239.09
4.3.00.0200.02714.42

preferences:
140.56 ms | 1394 KiB | 7 Q