3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Kitchen { private $yummy = 'cake'; } $sweetsThief = function (Kitchen $kitchen) { return $kitchen->yummy; } $kitchen = new Kitchen(); var_dump($sweetsThief($kitchen));

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)
7.1.00.0730.01714.61
7.0.140.0730.01014.08
7.0.130.0530.00714.70
7.0.120.0700.01714.40
7.0.110.1230.01714.38
7.0.100.0630.00314.27
7.0.90.0700.00714.23
7.0.80.0870.01714.42
7.0.70.0500.00714.22
7.0.60.0770.01014.18
7.0.50.0530.01014.30
7.0.40.0600.01314.49
7.0.30.0700.01014.59
7.0.20.0600.01014.41
7.0.10.0470.01314.52
7.0.00.0870.01014.49
5.6.290.0030.09020.68
5.6.280.0030.07020.98
5.6.270.0070.06720.83
5.6.260.0170.05321.02
5.6.250.0100.08020.98
5.6.240.0300.06720.83
5.6.230.0030.07020.92
5.6.220.0070.06020.72
5.6.210.0130.08321.03
5.6.200.0100.06320.75
5.6.190.0170.05720.99
5.6.180.0200.07021.05
5.6.170.0030.07020.77
5.6.160.0300.06320.77
5.6.150.0030.07020.78
5.6.140.0200.07320.78
5.6.130.0130.06720.81
5.6.120.0070.06320.81
5.6.110.0100.06020.87
5.6.100.0070.08020.95
5.6.90.0100.05720.73
5.6.80.0200.04720.15
5.6.70.0130.06020.25
5.6.60.0130.05720.14
5.6.50.0030.06320.34
5.6.40.0130.06020.39
5.6.30.0100.06020.23
5.6.20.0070.08020.23
5.6.10.0100.05720.13
5.6.00.0100.05720.09
5.5.380.0130.05317.65
5.5.370.0070.08317.47
5.5.360.0130.06017.55
5.5.350.0130.06317.62
5.5.340.0130.07718.11
5.5.330.0100.05717.97
5.5.320.0100.06718.04
5.5.310.0230.06318.06
5.5.300.0130.07718.00
5.5.290.0070.06018.06
5.5.280.0200.06318.00
5.5.270.0100.08717.77
5.5.260.0000.07018.12
5.5.250.0100.06317.86
5.5.240.0100.05717.35
5.5.230.0130.06717.32
5.5.220.0130.05317.41
5.5.210.0130.04717.32
5.5.200.0030.06017.41
5.5.190.0070.06017.13
5.5.180.0230.05717.30
5.5.160.0200.06017.32
5.5.150.0170.04317.13
5.5.140.0200.06017.05
5.5.130.0100.05017.05
5.5.120.0200.07717.30
5.5.110.0100.07317.43
5.5.100.0070.05717.00
5.5.90.0030.08017.38
5.5.80.0100.05016.95
5.5.70.0130.06317.02
5.5.60.0170.07317.22
5.5.50.0070.05317.06
5.5.40.0170.05317.24
5.5.30.0030.05717.23
5.5.20.0130.05017.37
5.5.10.0170.05316.95
5.5.00.0130.07017.35
5.4.450.0030.06719.58
5.4.440.0170.05719.36
5.4.430.0200.05019.31
5.4.420.0170.07019.27
5.4.410.0200.05319.27
5.4.400.0130.07019.25
5.4.390.0130.07019.01
5.4.380.0170.06719.15
5.4.370.0130.05019.15
5.4.360.0170.07318.86
5.4.350.0100.05719.24
5.4.340.0100.05718.94
5.4.320.0130.08019.02
5.4.310.0230.06318.99
5.4.300.0130.07319.00
5.4.290.0130.06718.92
5.4.280.0170.05318.92
5.4.270.0100.05318.91
5.4.260.0070.08319.01
5.4.250.0230.05718.83
5.4.240.0170.05018.98
5.4.230.0100.06318.98
5.4.220.0000.06019.10
5.4.210.0070.06319.23
5.4.200.0050.07319.14
5.4.190.0070.05819.14
5.4.180.0050.06719.07
5.4.170.0080.05218.89
5.4.160.0080.05719.03
5.4.150.0050.07019.07
5.4.140.0100.05516.57
5.4.130.0050.06516.45
5.4.120.0070.05816.55
5.4.110.0170.06716.44
5.4.100.0120.06516.53
5.4.90.0120.07316.66
5.4.80.0070.06516.66
5.4.70.0070.05316.59
5.4.60.0070.05816.54
5.4.50.0080.04816.46
5.4.40.0080.06716.54
5.4.30.0020.05516.39
5.4.20.0080.04316.44
5.4.10.0070.05516.32
5.4.00.0080.05315.99
5.3.290.0230.06314.96
5.3.280.0070.05314.65
5.3.270.0020.06714.59
5.3.260.0050.05814.70
5.3.250.0050.06014.70
5.3.240.0120.06514.76
5.3.230.0100.07314.71
5.3.220.0100.05814.66
5.3.210.0070.07314.55
5.3.200.0070.07314.58
5.3.190.0020.07214.66
5.3.180.0070.05714.71
5.3.170.0080.05814.64
5.3.160.0070.04814.61
5.3.150.0050.05014.74
5.3.140.0080.06214.68
5.3.130.0080.05014.68
5.3.120.0030.06714.61
5.3.110.0100.07214.67
5.3.100.0070.05714.13
5.3.90.0080.04214.26
5.3.80.0000.04714.20
5.3.70.0020.05014.16
5.3.60.0030.04513.98
5.3.50.0030.07314.09
5.3.40.0050.05314.05
5.3.30.0080.05514.09
5.3.20.0070.05313.75
5.3.10.0100.06013.63
5.3.00.0070.06013.70

preferences:
141.93 ms | 1394 KiB | 7 Q