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)
8.3.60.0040.01816.63
8.3.50.0130.00521.91
8.3.40.0150.00618.84
8.3.30.0140.00019.17
8.3.20.0070.00020.31
8.3.10.0070.00021.78
8.3.00.0060.00319.26
8.2.180.0110.01118.16
8.2.170.0090.00622.96
8.2.160.0070.00722.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0090.00019.95
8.2.110.0040.00419.27
8.2.100.0080.00417.84
8.2.90.0040.00419.17
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0060.00618.07
8.2.30.0050.00218.00
8.2.20.0040.00417.60
8.2.10.0000.00818.11
8.2.00.0030.00517.68
8.1.280.0140.00325.92
8.1.270.0030.00620.52
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00320.99
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0070.00317.34
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0040.00418.59
8.1.160.0000.00721.95
8.1.150.0050.00318.73
8.1.140.0040.00417.23
8.1.130.0000.00717.67
8.1.120.0040.00417.43
8.1.110.0000.00917.30
8.1.100.0030.00317.27
8.1.90.0030.00317.43
8.1.80.0050.00217.28
8.1.70.0030.00317.32
8.1.60.0030.00517.39
8.1.50.0040.00417.34
8.1.40.0040.00417.34
8.1.30.0070.00317.63
8.1.20.0060.00317.47
8.1.10.0080.00017.36
8.1.00.0030.00617.40
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0040.00418.43
8.0.270.0040.00417.16
8.0.260.0040.00417.26
8.0.250.0030.00316.85
8.0.240.0030.00316.99
8.0.230.0070.00016.90
8.0.220.0030.00316.89
8.0.210.0000.00716.82
8.0.200.0000.00916.93
8.0.190.0030.00516.97
8.0.180.0000.00716.92
8.0.170.0030.00616.87
8.0.160.0000.00816.95
8.0.150.0000.00716.88
8.0.140.0070.00016.87
8.0.130.0030.00313.36
8.0.120.0040.00416.74
8.0.110.0040.00416.79
8.0.100.0030.00616.76
8.0.90.0000.00716.91
8.0.80.0030.01416.78
8.0.70.0040.00416.98
8.0.60.0040.00416.89
8.0.50.0000.00816.82
8.0.30.0120.01116.94
8.0.20.0110.00917.40
8.0.10.0040.00416.83
8.0.00.0070.01116.72
7.4.330.0020.00215.03
7.4.320.0030.00316.45
7.4.300.0030.00616.45
7.4.290.0050.00216.35
7.4.280.0030.00616.52
7.4.270.0070.00016.38
7.4.260.0050.00216.40
7.4.250.0030.00316.55
7.4.240.0030.00416.50
7.4.230.0000.00716.61
7.4.220.0030.01416.53
7.4.210.0060.01316.53
7.4.200.0000.00716.59
7.4.160.0060.00916.32
7.4.150.0150.00617.40
7.4.140.0130.00517.86
7.4.130.0080.01216.42
7.4.120.0030.01416.37
7.4.110.0150.00616.48
7.4.100.0150.00316.41
7.4.90.0070.01316.31
7.4.80.0120.00919.39
7.4.70.0130.00316.30
7.4.60.0070.01016.37
7.4.50.0050.00016.31
7.4.40.0040.01216.60
7.4.30.0100.01016.30
7.4.00.0070.00714.76
7.3.330.0050.00013.18
7.3.320.0000.00613.05
7.3.310.0000.00716.20
7.3.300.0060.00016.27
7.3.290.0080.00916.22
7.3.280.0090.01016.17
7.3.270.0160.01317.40
7.3.260.0030.01516.47
7.3.250.0110.00816.34
7.3.240.0140.00316.22
7.3.230.0140.00316.39
7.3.210.0130.00316.24
7.3.200.0140.00319.39
7.3.190.0100.00716.26
7.3.180.0060.00916.48
7.3.170.0060.01216.27
7.3.160.0060.01516.34
7.3.10.0030.01016.77
7.3.00.0080.00416.47
7.2.330.0100.01016.57
7.2.320.0110.01116.42
7.2.310.0110.00716.61
7.2.300.0080.00816.60
7.2.290.0130.00916.48
7.2.130.0060.00916.51
7.2.120.0110.00416.65
7.2.110.0090.00616.49
7.2.100.0060.00916.88
7.2.90.0110.00416.82
7.2.80.0080.00616.79
7.2.70.0060.00716.89
7.2.60.0060.00316.81
7.2.50.0030.01016.87
7.2.40.0060.00316.59
7.2.30.0090.00016.84
7.2.20.0080.00616.80
7.2.10.0040.00416.83
7.2.00.0050.00817.78
7.1.250.0000.00815.49
7.1.200.0070.00315.58
7.1.100.0070.00418.20
7.1.70.0030.00616.95
7.1.60.0000.02219.46
7.1.50.0070.01416.79
7.1.00.0030.07722.43
7.0.200.0940.00314.91
7.0.140.0030.04321.95
7.0.60.0030.04019.92
7.0.50.0000.04317.94
7.0.40.0070.07020.40
7.0.30.0370.06320.23
7.0.20.0200.04720.21
7.0.10.0030.05020.23
7.0.00.0030.04020.15
5.6.280.0030.07320.89
5.6.210.0030.04020.55
5.6.200.0070.06318.19
5.6.190.0070.04020.68
5.6.180.0300.05720.66
5.6.170.0270.07720.69
5.6.160.0070.06320.54
5.6.150.0030.04018.19
5.6.140.0030.05318.19
5.6.130.0170.06718.28
5.6.120.0100.08020.98
5.6.110.0070.08720.99
5.6.100.0170.07321.09
5.6.90.0070.07321.02
5.6.80.0030.08020.51
5.5.350.0300.08320.39
5.5.340.0100.03317.98
5.5.330.0030.05320.21
5.5.320.0070.07720.46
5.5.310.0400.07320.33
5.5.300.0000.09017.99
5.5.290.0100.08318.01
5.5.280.0030.05020.93
5.5.270.0070.06720.94
5.5.260.0100.05020.77
5.5.250.0000.07720.70
5.5.240.0170.04020.16
5.4.450.0670.05319.57
5.4.440.1000.06319.59
5.4.430.0330.07319.40
5.4.420.0930.06319.57
5.4.410.1130.04719.20
5.4.400.0230.05718.75
5.4.390.0230.05718.75
5.4.380.0230.05318.41
5.4.370.0270.05318.72
5.4.360.0230.05318.59
5.4.350.0430.04318.59
5.4.340.0370.07018.61
5.4.320.0230.06018.78
5.4.310.0330.05018.78
5.4.300.0200.06018.50
5.4.290.0370.04718.52
5.4.280.0330.04718.71
5.4.270.0270.05318.79
5.4.260.0370.04318.77
5.4.250.0270.05718.46
5.4.240.0300.05018.62
5.4.230.0270.05718.79
5.4.220.0170.07318.83
5.4.210.0330.06318.60
5.4.200.0200.05716.79
5.4.190.0200.06318.72
5.4.180.0370.04318.74
5.4.170.0330.04718.71
5.4.160.0430.04718.79
5.4.150.0400.05318.45
5.4.140.0330.04716.45
5.4.130.0300.04316.20
5.4.120.0300.05016.44
5.4.110.0330.04316.45
5.4.100.0230.05316.29
5.4.90.0330.05016.30
5.4.80.0370.04316.28
5.4.70.0270.05316.14
5.4.60.0330.04716.23
5.4.50.0370.05016.19
5.4.40.0200.06016.31
5.4.30.0300.04716.39
5.4.20.0300.05016.41
5.4.10.0400.03716.25
5.4.00.0230.05315.96
5.3.290.0270.06014.65
5.3.280.0200.06014.59
5.3.270.0200.06714.59
5.3.260.0400.04714.71
5.3.250.0430.07014.80
5.3.240.0300.08014.73
5.3.230.0300.05014.88
5.3.220.0370.04714.54
5.3.210.0400.04714.76
5.3.200.0200.06014.54
5.3.190.0330.05014.85
5.3.180.0200.06014.75
5.3.170.0270.05714.69
5.3.160.0300.05314.59
5.3.150.0270.05314.77
5.3.140.0270.05314.73
5.3.130.0270.05714.75
5.3.120.0330.05314.75
5.3.110.0170.06314.67
5.3.100.0270.05314.09
5.3.90.0300.05714.20
5.3.80.0200.05714.08
5.3.70.0270.05014.12
5.3.60.0330.04714.14
5.3.50.0200.06014.09
5.3.40.0430.05013.98
5.3.30.0270.05713.95
5.3.20.0300.05313.99
5.3.10.0370.05013.78
5.3.00.0400.04713.64
5.2.170.0200.04711.19
5.2.160.0130.05311.26
5.2.150.0270.04011.17
5.2.140.0200.04711.20
5.2.130.0230.05311.14
5.2.120.0200.05311.16
5.2.110.0300.04311.18
5.2.100.0230.04011.23
5.2.90.0200.04711.21
5.2.80.0230.05011.16
5.2.70.0270.03711.20
5.2.60.0230.04011.18
5.2.50.0200.04311.25
5.2.40.0200.03711.07
5.2.30.0130.05010.99
5.2.20.0200.03711.16
5.2.10.0200.04010.88
5.2.00.0170.04010.92
5.1.60.0230.03010.13
5.1.50.0170.03710.18
5.1.40.0170.03710.09
5.1.30.0130.04310.38
5.1.20.0200.03310.34
5.1.10.0200.03310.09
5.1.00.0130.04310.13
5.0.50.0100.0439.09
5.0.40.0100.0309.09
5.0.30.0070.0479.09
5.0.20.0100.0279.09
5.0.10.0030.0339.09
5.0.00.0170.0409.09
4.4.90.0030.0279.09
4.4.80.0100.0209.09
4.4.70.0030.0279.09
4.4.60.0070.0239.09
4.4.50.0070.0239.09
4.4.40.0130.0309.09
4.4.30.0070.0239.09
4.4.20.0100.0209.09
4.4.10.0130.0179.09
4.4.00.0170.0279.09
4.3.110.0130.0179.09
4.3.100.0100.0209.09
4.3.90.0100.0209.09
4.3.80.0070.0339.09
4.3.70.0070.0209.09
4.3.60.0070.0239.09
4.3.50.0130.0179.09
4.3.40.0030.0379.09
4.3.30.0070.0209.09
4.3.20.0070.0239.09
4.3.10.0030.0239.09
4.3.00.0170.02314.42

preferences:
44.46 ms | 401 KiB | 5 Q