3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __constructor() { $that = & $this; $that = new b(); } public function change() { $that = & $this; $that = new b(); } } class b { } $class = new a(); var_dump(get_class($class)); $class->change(); var_dump(get_class($class));

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.0090.00618.55
8.3.50.0120.00722.11
8.3.40.0060.01218.72
8.3.30.0030.01019.09
8.3.20.0050.00220.19
8.3.10.0090.00021.81
8.3.00.0050.00320.54
8.2.180.0150.00318.66
8.2.170.0080.00622.96
8.2.160.0110.00719.05
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0090.00626.16
8.2.120.0070.00317.63
8.2.110.0100.00022.06
8.2.100.0040.01217.70
8.2.90.0070.00019.09
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0000.01018.07
8.2.40.0040.00419.88
8.2.30.0050.00317.88
8.2.20.0040.00417.68
8.2.10.0020.00517.60
8.2.00.0000.00717.55
8.1.280.0090.00625.92
8.1.270.0040.00421.95
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.88
8.1.230.0080.00419.10
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0050.00317.41
8.1.180.0070.00018.67
8.1.170.0080.00018.48
8.1.160.0030.00322.07
8.1.150.0000.00718.63
8.1.140.0070.00017.29
8.1.130.0040.00417.75
8.1.120.0000.00717.30
8.1.110.0060.00317.37
8.1.100.0030.00317.39
8.1.90.0040.00417.45
8.1.80.0070.00017.38
8.1.70.0000.00717.33
8.1.60.0040.00417.43
8.1.50.0070.00017.57
8.1.40.0050.00217.56
8.1.30.0040.00417.59
8.1.20.0000.00817.64
8.1.10.0040.00417.61
8.1.00.0040.00417.45
8.0.300.0060.00318.77
8.0.290.0090.00017.05
8.0.280.0030.00318.29
8.0.270.0030.00317.20
8.0.260.0000.00616.66
8.0.250.0030.00316.77
8.0.240.0050.00216.90
8.0.230.0000.00716.88
8.0.220.0000.00816.84
8.0.210.0000.00716.85
8.0.200.0000.00716.75
8.0.190.0040.00416.77
8.0.180.0000.00716.81
8.0.170.0030.00516.85
8.0.160.0040.00416.69
8.0.150.0050.00216.89
8.0.140.0040.00416.66
8.0.130.0030.00313.22
8.0.120.0030.00516.80
8.0.110.0000.00716.81
8.0.100.0070.00016.81
8.0.90.0050.00216.70
8.0.80.0150.00016.80
8.0.70.0000.00716.79
8.0.60.0040.00416.70
8.0.50.0030.00516.82
8.0.30.0080.01116.97
8.0.20.0090.00917.40
8.0.10.0060.00316.83
8.0.00.0150.00816.71
7.4.330.0020.00215.00
7.4.320.0000.00616.36
7.4.300.0060.00016.62
7.4.290.0000.00716.53
7.4.280.0080.00016.50
7.4.270.0030.00316.65
7.4.260.0080.00016.38
7.4.250.0000.00816.47
7.4.240.0030.00416.54
7.4.230.0030.00316.63
7.4.220.0060.00916.61
7.4.210.0080.00616.61
7.4.200.0050.00216.70
7.4.190.0000.00716.48
7.4.160.0000.01616.42
7.4.150.0140.00717.40
7.4.140.0130.00617.86
7.4.130.0100.00916.56
7.4.120.0080.01216.38
7.4.110.0090.00916.48
7.4.100.0120.00616.70
7.4.90.0110.00716.33
7.4.80.0130.01019.39
7.4.70.0070.01316.49
7.4.60.0090.00616.59
7.4.50.0000.00516.34
7.4.40.0040.01222.77
7.4.30.0070.01316.61
7.4.00.0070.00714.87
7.3.330.0030.00313.25
7.3.320.0050.00013.20
7.3.310.0030.00316.27
7.3.300.0070.00016.25
7.3.290.0070.00716.31
7.3.280.0080.00816.29
7.3.270.0060.00917.40
7.3.260.0070.01016.44
7.3.250.0100.00716.24
7.3.240.0090.01216.64
7.3.230.0060.01116.39
7.3.210.0090.01516.55
7.3.200.0070.01019.39
7.3.190.0140.00416.19
7.3.180.0090.00616.23
7.3.170.0100.00716.28
7.3.160.0080.00816.38
7.3.120.0100.00714.96
7.2.330.0190.00016.68
7.2.320.0130.01016.69
7.2.310.0100.00716.51
7.2.300.0070.01016.54
7.2.290.0030.01316.67
7.2.60.0090.00616.80
7.2.00.0070.01019.36
7.1.200.0100.00315.77
7.1.100.0030.01018.02
7.1.70.0030.00917.22
7.1.60.0110.01419.82
7.1.50.0070.01616.96
7.1.00.0000.08022.30
7.0.200.0030.00616.60
7.0.140.0030.07322.21
7.0.60.0130.08319.96
7.0.50.0100.04017.93
7.0.40.0030.04320.30
7.0.30.0330.07320.12
7.0.20.0270.06720.16
7.0.10.0400.07020.23
7.0.00.0030.07020.05
5.6.280.0070.06721.03
5.6.210.0070.07320.77
5.6.200.0170.07318.19
5.6.190.0030.09020.47
5.6.180.2970.04320.50
5.6.170.0330.05720.50
5.6.160.0100.04720.52
5.6.150.0070.07318.18
5.6.140.0070.06718.28
5.6.130.0100.04318.18
5.6.120.0100.07721.13
5.6.110.0100.06721.04
5.6.100.0270.07020.98
5.6.90.0000.09721.13
5.6.80.0100.07720.39
5.6.70.0370.06320.39
5.5.350.0030.08320.45
5.5.340.0030.06717.97
5.5.330.0200.07020.25
5.5.320.0270.08020.32
5.5.310.0230.08020.32
5.5.300.0070.04717.98
5.5.290.0130.06317.95
5.5.280.0130.07720.80
5.5.270.0030.05320.67
5.5.260.0070.08320.84
5.5.250.0100.08320.69
5.5.240.0170.07020.16
5.4.450.0770.06319.61
5.4.440.0800.05719.34
5.4.430.0830.05019.69
5.4.420.0800.05019.46
5.4.410.0830.05319.03
5.4.400.0870.00018.67
5.4.390.0670.00018.76
5.4.380.0300.05018.57
5.4.370.0330.04718.50
5.4.360.0200.06018.80
5.4.350.0300.06018.59
5.4.340.0300.04718.63
5.4.320.0060.03512.51
5.4.310.0090.04512.50
5.4.300.0100.03412.50
5.4.290.0050.04612.50
5.4.280.0050.03912.40
5.4.270.0040.03812.40
5.4.260.0030.05719.02
5.4.250.0200.06718.99
5.4.240.0070.05318.84
5.4.230.0070.05318.84
5.4.220.0100.08018.64
5.4.210.0100.05318.88
5.4.200.0000.06018.92
5.4.190.0170.07018.88
5.4.180.0070.05018.94
5.4.170.0070.05318.91
5.4.160.0100.05018.88
5.4.150.0030.05718.77
5.4.140.0130.04716.48
5.4.130.0170.06016.36
5.4.120.0130.06016.46
5.4.110.0030.05316.49
5.4.100.0200.03716.42
5.4.90.0100.05016.70
5.4.80.0130.04716.46
5.4.70.0100.05716.46
5.4.60.0030.07316.53
5.4.50.0070.05016.54
5.4.40.0130.05316.58
5.4.30.0100.04316.61
5.4.20.0100.05016.37
5.4.10.0130.04716.32
5.4.00.0130.04315.98
5.3.290.0050.04412.80
5.3.280.0170.06714.59
5.3.270.0100.04714.45
5.3.260.0070.05014.82
5.3.250.0000.05714.70
5.3.240.0030.05714.79
5.3.230.0170.06014.56
5.3.220.0170.04014.65
5.3.210.0130.05014.65
5.3.200.0000.05714.76
5.3.190.0000.06014.63
5.3.180.0130.04314.63
5.3.170.0100.05014.74
5.3.160.0170.06314.58
5.3.150.0100.05714.74
5.3.140.0230.05314.78
5.3.130.0100.05014.53
5.3.120.0070.05714.45
5.3.110.0000.06314.52
5.3.100.0070.05014.13
5.3.90.0070.05014.20
5.3.80.0100.04314.10
5.3.70.0170.04014.20
5.3.60.0130.04313.99
5.3.50.0130.04314.04
5.3.40.0170.06014.04
5.3.30.0030.07713.99
5.3.20.0100.04313.78
5.3.10.0130.06713.73
5.3.00.0070.05013.56
5.2.170.0030.04311.13
5.2.160.0100.04311.13
5.2.150.0000.04711.23
5.2.140.0000.06011.13
5.2.130.0030.04311.28
5.2.120.0030.05711.18
5.2.110.0130.03311.29
5.2.100.0000.04711.18
5.2.90.0170.02711.18
5.2.80.0070.04311.05
5.2.70.0070.04311.19
5.2.60.0130.03311.14
5.2.50.0070.04011.25
5.2.40.0100.03311.00
5.2.30.0000.04710.88
5.2.20.0030.04310.96
5.2.10.0070.03710.93
5.2.00.0100.03710.89
5.1.60.0100.02710.16
5.1.50.0030.0539.92
5.1.40.0000.0379.90
5.1.30.0000.04010.42
5.1.20.0070.03310.33
5.1.10.0100.04310.14
5.1.00.0070.03310.16
5.0.50.0130.0308.52
5.0.40.0000.0278.66
5.0.30.0030.0408.28
5.0.20.0030.0278.11
5.0.10.0000.0308.41
5.0.00.0030.0408.15
4.4.90.0070.0276.23
4.4.80.0100.0176.23
4.4.70.0030.0236.23
4.4.60.0000.0276.23
4.4.50.0070.0176.23
4.4.40.0070.0306.23
4.4.30.0030.0236.23
4.4.20.0100.0236.23
4.4.10.0000.0236.23
4.4.00.0000.0336.23
4.3.110.0000.0236.23
4.3.100.0070.0236.23
4.3.90.0030.0206.23
4.3.80.0030.0306.19
4.3.70.0030.0276.19
4.3.60.0000.0206.19
4.3.50.0000.0236.19
4.3.40.0000.0376.19
4.3.30.0070.0206.16
4.3.20.0000.0336.15
4.3.10.0030.0306.13
4.3.00.0200.0205.61

preferences:
37.05 ms | 401 KiB | 5 Q