3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Stack { public $overflow; public static function overflow() { echo 'overflow'; } } $stack = new Stack; $stack::overflow(); $object = new stdClass; $object->stack = $stack = new Stack; $object->stack::overflow();

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.140.0000.01117.36
8.3.130.0050.00316.61
8.3.120.0040.00418.85
8.3.110.0060.00320.94
8.3.100.0100.00716.54
8.3.90.0090.00618.43
8.3.80.0090.00018.43
8.3.70.0170.00018.18
8.3.60.0100.00716.34
8.3.50.0100.01022.12
8.3.40.0110.00418.85
8.3.30.0000.01319.04
8.3.20.0040.00420.29
8.3.10.0030.00521.88
8.3.00.0050.00319.38
8.2.250.0030.00616.71
8.2.240.0090.00018.74
8.2.230.0040.00422.58
8.2.220.0040.01124.06
8.2.210.0100.01026.77
8.2.200.0100.00018.66
8.2.190.0150.00316.58
8.2.180.0030.01318.54
8.2.170.0140.00022.96
8.2.160.0070.00720.29
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0040.01120.76
8.2.110.0100.00021.18
8.2.100.0030.01017.83
8.2.90.0040.00418.22
8.2.80.0000.00820.58
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0040.00418.05
8.2.40.0040.00417.91
8.2.30.0040.00417.88
8.2.20.0050.00317.62
8.2.10.0000.00817.88
8.2.00.0000.00817.87
8.1.300.0070.00717.85
8.1.290.0030.00618.88
8.1.280.0100.01025.92
8.1.270.0070.00023.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.04
8.1.230.0090.00321.04
8.1.220.0040.00417.74
8.1.210.0080.00018.91
8.1.200.0030.00517.25
8.1.190.0000.00717.23
8.1.180.0040.00418.10
8.1.170.0000.00818.55
8.1.160.0000.00819.05
8.1.150.0070.00018.48
8.1.140.0090.00017.43
8.1.130.0030.00317.64
8.1.120.0040.00417.24
8.1.110.0070.00017.43
8.1.100.0040.00417.44
8.1.90.0040.00717.24
8.1.80.0070.00017.28
8.1.70.0000.00717.44
8.1.60.0000.00817.63
8.1.50.0000.00817.47
8.1.40.0000.00817.39
8.1.30.0000.00817.65
8.1.20.0050.00317.52
8.1.10.0000.00717.46
8.1.00.0040.00417.39
8.0.300.0000.00720.07
8.0.290.0000.00716.58
8.0.280.0030.00318.45
8.0.270.0000.00717.13
8.0.260.0050.00317.30
8.0.250.0070.00016.80
8.0.240.0050.00316.92
8.0.230.0000.00616.91
8.0.220.0040.00416.81
8.0.210.0000.00716.73
8.0.200.0030.00316.89
8.0.190.0000.00716.76
8.0.180.0000.00816.82
8.0.170.0030.00616.88
8.0.160.0040.00416.71
8.0.150.0070.00016.73
8.0.140.0030.00316.81
8.0.130.0000.00813.32
8.0.120.0040.00416.80
8.0.110.0040.00416.88
8.0.100.0000.00716.83
8.0.90.0000.00716.88
8.0.80.0080.00816.79
8.0.70.0050.00316.86
8.0.60.0000.00716.62
8.0.50.0080.00016.83
8.0.30.0080.01016.88
8.0.20.0150.00417.40
8.0.10.0040.00416.91
8.0.00.0080.01116.72
7.4.330.0030.00315.04
7.4.320.0060.00016.37
7.4.300.0000.00716.41
7.4.290.0040.00416.51
7.4.280.0080.00016.59
7.4.270.0030.00316.40
7.4.260.0030.00316.48
7.4.250.0070.00016.55
7.4.240.0080.00016.56
7.4.230.0030.00316.63
7.4.220.0150.01516.45
7.4.210.0070.00716.71
7.4.200.0000.00716.41
7.4.160.0100.00616.38
7.4.150.0070.01117.40
7.4.140.0130.00617.86
7.4.130.0120.00616.48
7.4.120.0100.00816.35
7.4.110.0140.00316.48
7.4.100.0180.00616.55
7.4.90.0040.01916.50
7.4.80.0170.00319.39
7.4.70.0060.01216.65
7.4.60.0060.01016.57
7.4.50.0040.00416.44
7.4.40.0030.01216.51
7.4.30.0030.01416.34
7.4.00.0070.00714.96
7.3.330.0050.00013.23
7.3.320.0000.00613.38
7.3.310.0030.00316.41
7.3.300.0000.00616.41
7.3.290.0060.00816.36
7.3.280.0090.01016.35
7.3.270.0030.01417.40
7.3.260.0100.00716.31
7.3.250.0070.01116.46
7.3.240.0140.00316.37
7.3.230.0090.01016.39
7.3.210.0090.01316.61
7.3.200.0070.01019.39
7.3.190.0140.00316.60
7.3.180.0190.00316.38
7.3.170.0120.00916.27
7.3.160.0000.01616.50
7.3.10.0090.00916.56
7.3.00.0120.00816.60
7.2.330.0090.00916.84
7.2.320.0030.02116.73
7.2.310.0090.00916.82
7.2.300.0090.00616.82
7.2.290.0110.01116.55
7.2.130.0120.01016.74
7.2.120.0110.01016.60
7.2.110.0110.00916.55
7.2.100.0090.00916.62
7.2.90.0080.00816.61
7.2.80.0100.00516.84
7.2.70.0130.00816.72
7.2.60.0090.00716.71
7.2.50.0110.00816.64
7.2.40.0080.01116.56
7.2.30.0130.00516.69
7.2.20.0110.01216.60
7.2.10.0100.01116.71
7.2.00.0060.01017.79
7.1.250.0120.00315.57
7.1.200.0080.00615.70
7.1.100.0090.00017.90
7.1.70.0040.00417.22
7.1.60.0070.01019.59
7.1.50.0110.01116.69
7.1.00.0070.07022.41
7.0.200.0030.01016.86
7.0.60.0000.03321.67
7.0.50.0070.05017.83
7.0.40.0070.04320.12
7.0.30.0370.07320.23
7.0.20.0270.08320.24
7.0.10.0000.06320.09
7.0.00.0030.05720.33
5.6.280.0100.06321.08
5.6.210.0030.04020.55
5.6.200.0070.04318.28
5.6.190.0030.04720.48
5.6.180.0230.06320.61
5.6.170.0030.05320.53
5.6.160.0000.09020.57
5.6.150.0000.04018.27
5.6.140.0070.03718.21
5.6.130.0070.03718.18
5.6.120.0130.07021.10
5.6.110.0100.07021.09
5.6.100.0030.08721.04
5.6.90.0100.04021.08
5.6.80.0070.05320.51
5.5.350.0270.07020.45
5.5.340.0070.03717.95
5.5.330.0130.07320.37
5.5.320.0330.08020.34
5.5.310.0230.08020.30
5.5.300.0070.05318.05
5.5.290.0070.08017.98
5.5.280.0030.04320.80
5.5.270.0130.07720.76
5.5.260.0000.05320.65
5.5.250.0130.07720.62
5.5.240.0000.08720.27
5.4.450.4600.04719.55
5.4.440.3770.04719.39
5.4.430.3900.02019.45
5.4.420.3830.03719.52
5.4.410.4830.04019.41
5.4.400.3470.04019.15
5.4.390.3600.03318.92
5.4.380.3600.03319.13
5.4.370.3970.04019.11
5.4.360.3870.03719.13
5.4.350.4130.03719.20
5.4.340.3870.03018.94
5.4.320.4230.06319.18
5.4.310.4100.04019.22
5.4.300.4030.03019.11
5.4.290.3970.03319.13
5.4.280.3970.03019.18
5.4.270.4270.04319.24
5.4.260.3900.03718.97
5.4.250.4330.03319.24
5.4.240.1500.04019.10
5.4.230.0030.07319.10
5.4.220.3830.03719.20
5.4.210.4100.03318.93
5.4.200.4000.03719.22
5.4.190.3530.03319.14
5.4.180.3200.04019.12
5.4.170.4170.03718.94
5.4.160.4300.04019.02
5.4.150.4800.04319.15
5.4.140.0070.04716.60
5.4.130.0130.05016.47
5.4.120.4100.03316.44
5.4.110.3900.03716.30
5.4.100.3600.03716.58
5.4.90.4000.04016.49
5.4.80.4000.03716.52
5.4.70.4300.03316.25
5.4.60.3830.03716.46
5.4.50.3530.04016.19
5.4.40.3830.03016.20
5.4.30.4000.03716.24
5.4.20.4530.03716.20
5.4.10.4600.03316.45
5.4.00.4600.02715.85
5.3.290.3770.04314.71
5.3.280.4800.04314.73
5.3.270.4100.03314.63
5.3.260.4230.03714.64
5.3.250.3800.03714.61
5.3.240.0100.06714.60
5.3.230.2300.05314.61
5.3.220.4130.03014.72
5.3.210.4030.03714.57
5.3.200.4200.03714.73
5.3.190.4030.03314.56
5.3.180.4130.03314.63
5.3.170.4000.03314.48
5.3.160.3670.04014.58
5.3.150.3930.04314.59
5.3.140.4600.04014.44
5.3.130.4000.03714.43
5.3.120.5100.04314.60
5.3.110.4130.03714.55
5.3.100.4600.03314.06
5.3.90.4530.04014.04
5.3.80.4530.03014.00
5.3.70.4530.03714.18
5.3.60.4200.03714.04
5.3.50.3870.03013.99
5.3.40.3900.04013.94
5.3.30.3830.04013.82
5.3.20.3600.03013.77
5.3.10.4030.03313.67
5.3.00.4530.03013.53
5.2.170.3100.02311.09
5.2.160.3300.03311.18
5.2.150.3000.02711.21
5.2.140.3430.03011.14
5.2.130.3170.03011.06
5.2.120.3630.03011.15
5.2.110.3930.02711.17
5.2.100.4130.03010.99
5.2.90.3870.03311.17
5.2.80.3500.02711.06
5.2.70.3670.03010.98
5.2.60.3900.02311.05
5.2.50.3900.02710.98
5.2.40.2470.03310.88
5.2.30.2730.03011.11
5.2.20.2470.02310.99
5.2.10.2430.02710.87
5.2.00.2470.02310.72
5.1.60.2370.0239.96
5.1.50.2400.02310.05
5.1.40.2370.02710.13
5.1.30.2530.02310.39
5.1.20.2470.02310.41
5.1.10.2100.0279.98
5.1.00.1870.0279.98
5.0.50.1230.0178.53
5.0.40.0670.0178.43
5.0.30.1200.0278.29
5.0.20.1230.0138.28
5.0.10.1270.0178.08
5.0.00.1170.0308.23
4.4.90.1870.0105.97
4.4.80.1770.0175.98
4.4.70.1200.0135.99
4.4.60.1230.0105.99
4.4.50.1200.0135.99
4.4.40.1200.0275.99
4.4.30.1170.0175.99
4.4.20.1230.0135.99
4.4.10.1230.0135.99
4.4.00.0870.0275.99
4.3.110.0900.0175.99
4.3.100.0630.0175.99
4.3.90.0970.0135.99
4.3.80.1230.0205.99
4.3.70.1070.0105.99
4.3.60.1430.0135.99
4.3.50.1630.0205.99
4.3.40.1800.0205.99
4.3.30.0700.0175.99
4.3.20.0930.0175.99
4.3.10.0800.0175.99
4.3.00.0730.0135.99

preferences:
73.99 ms | 403 KiB | 5 Q