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(); $sweetsThief = Closure::bind($sweetsThief, null, $kitchen); $cake = & $sweetsThief($kitchen); $cake = 'lie'; var_dump('the cake is a ' . $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)
8.3.130.0080.00018.70
8.3.120.0090.00020.73
8.3.110.0040.00420.94
8.3.100.0080.00016.91
8.3.90.0070.01126.77
8.3.80.0040.00416.63
8.3.70.0070.01316.75
8.3.60.0150.00016.50
8.3.50.0140.00521.85
8.3.40.0110.00418.74
8.3.30.0100.00319.29
8.3.20.0040.00420.17
8.3.10.0060.00323.65
8.3.00.0090.00319.38
8.2.250.0130.00718.96
8.2.240.0060.00317.32
8.2.230.0100.00722.58
8.2.220.0110.00424.06
8.2.210.0050.00326.77
8.2.200.0060.00318.54
8.2.190.0090.01216.75
8.2.180.0040.01125.92
8.2.170.0070.01318.96
8.2.160.0130.00022.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00619.54
8.2.110.0060.00321.10
8.2.100.0090.00317.91
8.2.90.0050.00317.81
8.2.80.0040.00419.11
8.2.70.0000.00917.63
8.2.60.0000.00817.50
8.2.50.0040.00418.07
8.2.40.0050.00319.95
8.2.30.0040.00418.08
8.2.20.0040.00417.74
8.2.10.0040.00418.07
8.2.00.0030.00717.80
8.1.300.0130.00316.55
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00728.09
8.1.250.0030.00628.09
8.1.240.0040.00721.81
8.1.230.0080.00320.86
8.1.220.0000.00817.77
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0030.00617.22
8.1.180.0030.00518.10
8.1.170.0080.00018.51
8.1.160.0000.00718.89
8.1.150.0070.00018.75
8.1.140.0000.00717.53
8.1.130.0030.00317.39
8.1.120.0040.00717.50
8.1.110.0000.00817.51
8.1.100.0000.00717.37
8.1.90.0070.00017.37
8.1.80.0040.00417.53
8.1.70.0030.00317.48
8.1.60.0040.00417.46
8.1.50.0000.00817.52
8.1.40.0030.00617.52
8.1.30.0030.00517.58
8.1.20.0030.00617.63
8.1.10.0000.00817.55
8.1.00.0040.00417.54
8.0.300.0040.00420.02
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0000.00718.12
8.0.260.0000.00816.92
8.0.250.0040.00417.09
8.0.240.0040.00417.01
8.0.230.0000.00717.07
8.0.220.0030.00316.93
8.0.210.0040.00416.93
8.0.200.0030.00317.09
8.0.190.0080.00016.96
8.0.180.0020.00517.03
8.0.170.0030.00516.97
8.0.160.0000.00716.96
8.0.150.0030.00316.95
8.0.140.0040.00416.98
8.0.130.0030.00313.46
8.0.120.0020.00516.82
8.0.110.0070.00016.86
8.0.100.0020.00516.82
8.0.90.0020.00516.97
8.0.80.0100.00317.01
8.0.70.0020.00516.85
8.0.60.0020.00616.89
8.0.50.0020.00516.97
8.0.30.0120.00617.09
8.0.20.0110.00617.15
8.0.10.0070.00616.87
8.0.00.0130.00516.93
7.4.330.0070.00118.00
7.4.320.0000.00616.66
7.4.300.0060.00016.60
7.4.290.0000.00716.65
7.4.280.0050.00516.59
7.4.270.0000.00716.53
7.4.260.0030.00316.36
7.4.250.0070.00016.46
7.4.240.0000.00716.70
7.4.230.0010.00616.67
7.4.220.0080.00516.60
7.4.210.0050.00616.59
7.4.200.0030.00316.50
7.4.190.0030.00416.64
7.4.180.0030.00316.38
7.4.160.0050.01016.47
7.4.150.0110.00516.64
7.4.140.0130.00517.10
7.4.130.0120.00716.47
7.4.120.0100.00716.47
7.4.110.0130.00516.50
7.4.100.0100.00916.55
7.4.90.0100.00816.53
7.4.80.0090.00817.33
7.4.70.0080.00816.44
7.4.60.0080.00616.37
7.4.50.0070.00316.37
7.4.40.0030.01318.45
7.4.30.0090.00616.34
7.4.20.0070.00916.43
7.4.10.0070.00916.01
7.4.00.0100.00515.91
7.3.330.0030.00313.21
7.3.320.0050.00013.23
7.3.310.0040.00416.12
7.3.300.0030.00416.10
7.3.290.0050.00716.25
7.3.280.0080.00716.21
7.3.270.0080.00616.47
7.3.260.0060.00816.27
7.3.250.0160.00516.36
7.3.240.0080.01016.38
7.3.230.0140.00416.40
7.3.220.0180.00516.16
7.3.210.0080.01116.33
7.3.200.0080.00717.20
7.3.190.0120.00716.29
7.3.180.0040.00916.14
7.3.170.0070.00816.33
7.3.160.0100.00416.29
7.3.150.0120.00316.26
7.3.140.0050.01016.22
7.3.130.0050.01115.78
7.3.120.0100.00715.57
7.3.110.0080.00915.54
7.3.100.0050.01015.65
7.3.90.0090.00615.68
7.3.80.0080.00715.60
7.3.70.0080.00815.57
7.3.60.0070.00915.66
7.3.50.0080.00515.69
7.3.40.0090.00815.57
7.3.30.0110.00715.59
7.3.20.0100.00616.42
7.3.10.0100.00916.39
7.3.00.0120.00616.37
7.2.340.0130.00516.57
7.2.330.0150.00316.52
7.2.320.0110.00816.58
7.2.310.0150.00316.44
7.2.300.0090.00716.43
7.2.290.0120.00816.43
7.2.280.0120.00616.46
7.2.270.0140.00516.42
7.2.260.0090.01016.22
7.2.250.0090.01016.15
7.2.240.0110.00815.85
7.2.230.0080.00915.81
7.2.220.0140.00515.73
7.2.210.0080.00915.81
7.2.200.0070.01215.86
7.2.190.0090.00815.81
7.2.180.0100.00715.70
7.2.170.0090.00915.81
7.2.160.0090.00815.85
7.2.150.0130.00616.68
7.2.140.0080.01216.70
7.2.130.0100.00816.67
7.2.120.0100.00616.67
7.2.110.0150.00716.70
7.2.100.0120.00716.69
7.2.90.0100.00916.77
7.2.80.0190.00916.60
7.2.70.0130.00716.66
7.2.60.0110.00616.62
7.2.50.0100.00816.62
7.2.40.0100.00716.74
7.2.30.0080.01016.70
7.2.20.0090.00816.64
7.2.10.0120.01016.79
7.2.00.0160.00717.20
7.1.330.0130.00715.55
7.1.320.0190.00615.57
7.1.310.0110.00615.59
7.1.300.0100.00815.56
7.1.290.0100.00715.55
7.1.280.0140.00615.66
7.1.270.0110.00715.56
7.1.260.0110.00815.56
7.1.250.0120.01015.56
7.1.240.0130.00615.62
7.1.230.0140.00515.55
7.1.220.0100.01015.56
7.1.210.0100.01015.55
7.1.200.0110.00815.59
7.1.190.0140.00415.48
7.1.180.0130.00715.45
7.1.170.0110.00815.50
7.1.160.0100.00715.52
7.1.150.0070.01015.48
7.1.140.0080.00815.54
7.1.130.0120.01015.75
7.1.120.0130.00715.71
7.1.110.0110.00915.56
7.1.100.0110.00915.98
7.1.90.0140.00715.63
7.1.80.0160.00415.64
7.1.70.0140.00715.65
7.1.60.0190.00718.37
7.1.50.0150.00818.22
7.1.40.0150.00618.14
7.1.30.0150.00718.10
7.1.20.0130.00718.23
7.1.10.0150.00715.57
7.1.00.0130.00615.51
7.0.330.0120.00815.23
7.0.320.0140.00715.21
7.0.310.0150.00615.18
7.0.300.0140.00615.19
7.0.290.0110.00815.18
7.0.280.0100.00815.21
7.0.270.0160.00915.44
7.0.260.0170.00515.37
7.0.250.0130.00715.31
7.0.240.0160.00715.33
7.0.230.0170.00715.31
7.0.220.0140.00815.30
7.0.210.0180.00715.11
7.0.200.0160.00515.46
7.0.190.0140.00515.39
7.0.180.0120.00815.32
7.0.170.0160.00615.33
7.0.160.0150.00715.20
7.0.150.0100.00915.21
7.0.140.0130.00615.25
7.0.130.0120.00615.36
7.0.120.0150.00515.37
7.0.110.0110.00715.29
7.0.100.0160.00715.23
7.0.90.0110.01015.29
7.0.80.0130.00615.26
7.0.70.0160.00915.23
7.0.60.0130.00715.25
7.0.50.0100.00915.23
7.0.40.0100.00715.15
7.0.30.0110.00815.13
7.0.20.0120.00815.09
7.0.10.0110.01015.18
7.0.00.0580.00815.17
5.6.400.0150.00715.45
5.6.390.0110.01015.42
5.6.380.0110.01115.55
5.6.370.0130.00915.58
5.6.360.0100.00915.29
5.6.350.0130.00615.58
5.6.340.0120.00715.42
5.6.330.0090.01015.63
5.6.320.0120.00715.59
5.6.310.0110.00715.44
5.6.300.0110.02317.19
5.6.290.0100.02417.26
5.6.280.0080.02417.33
5.6.270.0120.01917.28
5.6.260.0090.02317.35
5.6.250.0110.02417.36
5.6.240.0140.02217.33
5.6.230.0130.02017.31
5.6.220.0120.02617.22
5.6.210.0090.02717.39
5.6.200.0090.02917.26
5.6.190.0130.02217.34
5.6.180.0150.02617.27
5.6.170.0130.02317.34
5.6.160.0140.02417.30
5.6.150.0140.02317.28
5.6.140.0130.02317.31
5.6.130.0140.02017.28
5.6.120.0120.02617.23
5.6.110.0110.02217.32
5.6.100.0120.02617.26
5.6.90.0110.02117.24
5.6.80.0090.02317.06
5.6.70.0090.02817.01
5.6.60.0080.02616.99
5.6.50.0090.02117.08
5.6.40.0100.02217.00
5.6.30.0080.02217.04
5.6.20.0090.02417.02
5.6.10.0090.02317.04
5.6.00.0110.02316.99
5.5.380.0120.02116.19
5.5.370.0080.02616.07
5.5.360.0120.01916.07
5.5.350.0110.02016.15
5.5.340.0100.02716.27
5.5.330.0090.02616.27
5.5.320.0120.02316.30
5.5.310.0090.02316.16
5.5.300.0130.02016.28
5.5.290.0120.02816.29
5.5.280.0130.02316.32
5.5.270.0110.02216.25
5.5.260.0090.02816.30
5.5.250.0110.02216.15
5.5.240.0080.03016.05
5.5.230.0080.02415.98
5.5.220.0090.02215.92
5.5.210.0100.01916.09
5.5.200.0100.02215.98
5.5.190.0080.02916.03
5.5.180.0090.02416.01
5.5.170.0120.00815.41
5.5.160.0130.02316.01
5.5.150.0110.02516.08
5.5.140.0110.02315.98
5.5.130.0080.02115.99
5.5.120.0090.02516.01
5.5.110.0080.02216.00
5.5.100.0120.02015.97
5.5.90.0100.02015.93
5.5.80.0080.02616.04
5.5.70.0080.02215.97
5.5.60.0090.02115.98
5.5.50.0100.02616.03
5.5.40.0110.01915.99
5.5.30.0110.02116.01
5.5.20.0100.02316.01
5.5.10.0120.02316.03
5.5.00.0070.02915.97
5.4.450.0110.02214.84
5.4.440.0080.02114.86
5.4.430.0140.02514.91
5.4.420.0110.01914.96
5.4.410.0110.01914.87
5.4.400.0110.01714.63
5.4.390.0080.02014.70
5.4.380.0100.01814.73
5.4.370.0080.01914.76
5.4.360.0080.02214.69
5.4.350.0100.02114.78
5.4.340.0100.02014.70
5.4.330.0090.00612.55
5.4.320.0060.02414.71
5.4.310.0110.02014.78
5.4.300.0110.02214.74
5.4.290.0130.01814.67
5.4.280.0070.02114.83
5.4.270.0090.02014.62
5.4.260.0080.01914.75
5.4.250.0100.02214.74
5.4.240.0080.02314.72
5.4.230.0110.02114.70
5.4.220.0080.02214.67
5.4.210.0110.02714.67
5.4.200.0060.02314.66
5.4.190.0110.01914.62
5.4.180.0110.02414.67
5.4.170.0110.02414.72
5.4.160.0110.02114.71
5.4.150.0080.02514.71
5.4.140.0090.02213.90
5.4.130.0100.02013.91
5.4.120.0110.01813.87
5.4.110.0100.01913.90
5.4.100.0080.02013.86
5.4.90.0100.02213.85
5.4.80.0100.02113.93
5.4.70.0100.02013.92
5.4.60.0110.02613.93
5.4.50.0100.01713.91
5.4.40.0110.01613.83
5.4.30.0060.02213.91
5.4.20.0070.02113.92
5.4.10.0090.01913.90
5.4.00.0110.01713.73
5.3.290.0100.02213.58
5.3.280.0100.01813.46
5.3.270.0100.02013.47
5.3.260.0080.02113.50
5.3.250.0090.01913.50
5.3.240.0110.02213.45
5.3.230.0110.01813.47
5.3.220.0100.01913.39
5.3.210.0090.02213.47
5.3.200.0100.02313.38
5.3.190.0080.02513.46
5.3.180.0070.02213.47
5.3.170.0120.02213.52
5.3.160.0090.01913.48
5.3.150.0110.01713.50
5.3.140.0080.01913.50
5.3.130.0090.01913.39
5.3.120.0090.02013.45
5.3.110.0090.02313.46
5.3.100.0080.01913.33
5.3.90.0070.01913.38
5.3.80.0090.01913.34
5.3.70.0100.01713.34
5.3.60.0090.01713.34
5.3.50.0100.01913.30
5.3.40.0090.02213.30
5.3.30.0110.02113.27
5.3.20.0100.02013.24
5.3.10.0100.02313.26
5.3.00.0100.02113.15

preferences:
40.13 ms | 403 KiB | 5 Q