3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TT{ private $that; public function __construct(){ $this->that = $this; } } class TT_B extends TT{ public function that(){ $this->that = $this; } } $a = new TT_B; $a->that();

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.40.0030.01218.63
8.3.30.0090.00618.96
8.3.20.0050.00320.04
8.3.10.0080.00021.73
8.3.00.0090.00020.96
8.2.170.0070.00722.96
8.2.160.0040.01222.08
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00519.47
8.2.110.0060.00320.27
8.2.100.0100.00317.91
8.2.90.0000.00819.00
8.2.80.0040.00417.97
8.2.70.0030.00517.62
8.2.60.0050.00317.91
8.2.50.0040.00818.07
8.2.40.0040.00418.21
8.2.30.0050.00218.05
8.2.20.0040.00417.52
8.2.10.0000.00817.93
8.2.00.0000.00717.61
8.1.270.0080.00818.90
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.91
8.1.230.0030.00719.16
8.1.220.0090.00017.74
8.1.210.0090.00018.77
8.1.200.0000.00817.23
8.1.190.0000.00817.00
8.1.180.0030.00518.10
8.1.170.0030.00618.71
8.1.160.0030.00521.82
8.1.150.0000.00918.73
8.1.140.0030.00617.39
8.1.130.0030.00317.71
8.1.120.0050.00217.31
8.1.110.0000.00717.30
8.1.100.0070.00017.27
8.1.90.0040.00417.36
8.1.80.0040.00417.28
8.1.70.0000.00717.35
8.1.60.0040.00417.59
8.1.50.0040.00417.42
8.1.40.0040.00417.51
8.1.30.0050.00317.58
8.1.20.0000.00817.64
8.1.10.0080.00017.37
8.1.00.0000.00717.44
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0050.00218.39
8.0.270.0070.00017.13
8.0.260.0070.00317.18
8.0.250.0030.00316.92
8.0.240.0060.00016.88
8.0.230.0040.00416.88
8.0.220.0050.00316.75
8.0.210.0030.00316.84
8.0.200.0000.00616.80
8.0.190.0000.00716.92
8.0.180.0000.00716.91
8.0.170.0030.00516.85
8.0.160.0040.00416.73
8.0.150.0040.00416.82
8.0.140.0040.00416.77
8.0.130.0060.00013.26
8.0.120.0040.00416.85
8.0.110.0000.00816.83
8.0.100.0030.00516.89
8.0.90.0000.00716.87
8.0.80.0060.00916.85
8.0.70.0000.00716.71
8.0.60.0070.00016.68
8.0.50.0040.00416.84
8.0.30.0120.01017.13
8.0.20.0150.01017.40
8.0.10.0040.00416.89
8.0.00.0080.01116.60
7.4.330.0000.00715.03
7.4.320.0000.00616.54
7.4.300.0000.00616.49
7.4.290.0000.00716.43
7.4.280.0040.00416.60
7.4.270.0040.00416.39
7.4.260.0030.00316.45
7.4.250.0000.00716.35
7.4.240.0020.00516.53
7.4.230.0030.00316.51
7.4.220.0060.01316.57
7.4.210.0080.00816.65
7.4.200.0000.00716.40
7.4.160.0150.00016.47
7.4.150.0130.01017.40
7.4.140.0080.01317.86
7.4.130.0130.00616.37
7.4.120.0080.00816.42
7.4.110.0070.01016.47
7.4.100.0140.00416.50
7.4.90.0140.00316.43
7.4.80.0120.00419.39
7.4.70.0090.00916.49
7.4.60.0060.00916.34
7.4.50.0040.00416.41
7.4.40.0160.01016.33
7.4.30.0120.01216.56
7.4.00.0100.00315.05
7.3.330.0000.00513.24
7.3.320.0090.00513.27
7.3.310.0000.00716.29
7.3.300.0030.00316.26
7.3.290.0030.00316.19
7.3.280.0070.00916.29
7.3.270.0160.01017.40
7.3.260.0090.00916.24
7.3.250.0090.00916.25
7.3.240.0140.00816.54
7.3.230.0000.01816.43
7.3.210.0030.01316.55
7.3.200.0130.00919.39
7.3.190.0150.00316.38
7.3.180.0140.00216.38
7.3.170.0150.00616.33
7.3.160.0120.00316.43
7.2.330.0110.01116.32
7.2.320.0000.01616.38
7.2.310.0070.01016.63
7.2.300.0090.00916.63
7.2.290.0130.01016.69
7.2.60.0000.01116.73
7.2.00.0140.00019.44
7.1.200.0070.00715.77
7.1.100.0070.00417.93
7.1.70.0030.00717.28
7.1.60.0090.00919.46
7.1.50.0130.01017.07
7.1.00.0070.07322.29
7.0.200.0040.00814.79
7.0.140.0030.04021.95
7.0.60.0070.07320.01
7.0.50.0070.06017.80
7.0.40.0030.05020.09
7.0.30.0200.05020.25
7.0.20.0270.07320.25
7.0.10.0100.04020.06
7.0.00.0130.08020.23
5.6.280.0000.07021.11
5.6.210.0170.06320.54
5.6.200.0030.04318.14
5.6.190.0100.08020.61
5.6.180.0470.04020.50
5.6.170.0330.07320.60
5.6.160.0130.08020.44
5.6.150.0070.07318.18
5.6.140.0000.04018.11
5.6.130.0030.08018.19
5.6.120.0030.04021.14
5.6.110.0130.03721.00
5.6.100.0100.07721.13
5.6.90.0070.08021.13
5.6.80.0030.08720.40
5.5.350.0200.08720.42
5.5.340.0070.08317.99
5.5.330.0000.05320.41
5.5.320.0000.06320.36
5.5.310.0270.04720.30
5.5.300.0070.07018.00
5.5.290.0000.06017.94
5.5.280.0100.04320.90
5.5.270.0070.04320.78
5.5.260.0070.06720.77
5.5.250.0070.04320.56
5.5.240.0070.06320.27
5.4.450.0770.05319.40
5.4.440.0700.06019.49
5.4.430.0470.05719.16
5.4.420.1670.06719.45
5.4.410.1070.04719.35
5.4.400.1000.06319.16
5.4.390.0200.05318.62
5.4.380.0100.06018.53
5.4.370.0200.06018.79
5.4.360.0100.06018.62
5.4.350.0100.06718.53
5.4.340.0370.03718.57
5.4.320.0200.06718.78
5.4.310.0200.05318.70
5.4.300.0300.06018.80
5.4.290.0170.06018.62
5.4.280.0070.07018.80
5.4.270.0300.05018.77
5.4.260.0200.06018.70
5.4.250.0100.07018.46
5.4.240.0300.05318.76
5.4.230.0200.05718.71
5.4.220.0130.07018.58
5.4.210.0130.06718.74
5.4.200.0300.06016.62
5.4.190.0170.07718.70
5.4.180.0200.07018.77
5.4.170.0070.08718.55
5.4.160.0370.05718.45
5.4.150.0270.06318.48
5.4.140.0230.06716.46
5.4.130.0230.06316.26
5.4.120.0300.06016.30
5.4.110.0230.06716.43
5.4.100.0230.06716.18
5.4.90.0170.07716.30
5.4.80.0170.06316.35
5.4.70.0170.05016.20
5.4.60.0130.05316.39
5.4.50.0170.05016.17
5.4.40.0300.06016.26
5.4.30.0230.05716.30
5.4.20.0300.05016.26
5.4.10.0170.06016.23
5.4.00.0170.05715.77
5.3.290.0300.04314.84
5.3.280.0230.05014.60
5.3.270.0170.06014.64
5.3.260.0130.06014.66
5.3.250.0070.07314.63
5.3.240.0230.07014.71
5.3.230.0300.06314.82
5.3.220.0170.05314.55
5.3.210.0230.06014.68
5.3.200.0200.05714.59
5.3.190.0200.05714.61
5.3.180.0170.05714.64
5.3.170.0270.04714.60
5.3.160.0400.06714.58
5.3.150.0230.05314.73
5.3.140.0170.07014.54
5.3.130.0230.06714.56
5.3.120.0200.05714.67
5.3.110.0330.06014.68
5.3.100.0170.05314.07
5.3.90.0170.06014.08
5.3.80.0170.06014.23
5.3.70.0330.04714.23
5.3.60.0200.06714.18
5.3.50.0230.04713.95
5.3.40.0130.06314.04
5.3.30.0130.07713.97
5.3.20.0270.05013.72
5.3.10.0170.07013.88
5.3.00.0400.05013.71
5.2.170.0270.05011.19
5.2.160.0270.03011.23
5.2.150.0200.05311.28
5.2.140.0070.06711.20
5.2.130.0270.05011.16
5.2.120.0170.04011.15
5.2.110.0170.05011.32
5.2.100.0200.04011.13
5.2.90.0100.05011.21
5.2.80.0200.04011.08
5.2.70.0170.04311.20
5.2.60.0130.04711.11
5.2.50.0170.04311.15
5.2.40.0170.03711.11
5.2.30.0130.05011.03
5.2.20.0170.04011.13
5.2.10.0130.04010.84
5.2.00.0170.04010.88
5.1.60.0130.0339.98
5.1.50.0170.03310.00
5.1.40.0130.03710.01
5.1.30.0200.02710.45
5.1.20.0130.03710.48
5.1.10.0070.04010.07
5.1.00.0130.03710.27
5.0.50.0170.0208.57
5.0.40.0030.0308.39
5.0.30.0070.0438.43
5.0.20.0170.0178.36
5.0.10.0030.0338.17
5.0.00.0100.0408.24
4.4.90.0100.0235.96
4.4.80.0170.0205.91
4.4.70.0030.0275.89
4.4.60.0100.0175.88
4.4.50.0130.0235.91
4.4.40.0070.0475.92
4.4.30.0130.0235.90
4.4.20.0030.0335.95
4.4.10.0100.0276.05
4.4.00.0070.0435.91
4.3.110.0100.0275.81
4.3.100.0030.0335.77
4.3.90.0070.0305.80
4.3.80.0100.0405.76
4.3.70.0100.0275.75
4.3.60.0100.0275.78
4.3.50.0100.0275.80
4.3.40.0100.0405.73
4.3.30.0070.0274.53
4.3.20.0070.0274.58
4.3.10.0100.0234.52
4.3.00.0000.01714.47

preferences:
38.75 ms | 400 KiB | 5 Q