3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __constructor() { $that = & $this; $that = new b(); var_dump('that = '.get_class($that)); } public function change() { $that = & $this; $that = new b(); var_dump('that = '.get_class($that)); } } 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.0040.01218.56
8.3.50.0120.00721.87
8.3.40.0120.00318.59
8.3.30.0070.01119.27
8.3.20.0040.00420.20
8.3.10.0040.00422.09
8.3.00.0040.00420.58
8.2.180.0090.00616.50
8.2.170.0100.01022.96
8.2.160.0130.00719.04
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.01226.16
8.2.120.0030.00717.49
8.2.110.0030.00622.11
8.2.100.0030.00919.41
8.2.90.0050.00319.22
8.2.80.0040.00418.04
8.2.70.0100.00317.63
8.2.60.0080.00318.03
8.2.50.0030.00518.07
8.2.40.0000.00819.88
8.2.30.0030.00517.93
8.2.20.0050.00217.66
8.2.10.0000.00717.58
8.2.00.0040.00417.70
8.1.280.0180.00725.92
8.1.270.0090.00022.02
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.01023.66
8.1.230.0080.00319.03
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.53
8.1.180.0000.00718.70
8.1.170.0000.00718.56
8.1.160.0040.00422.07
8.1.150.0000.00718.47
8.1.140.0040.00417.37
8.1.130.0030.00717.82
8.1.120.0000.00717.43
8.1.110.0030.00517.30
8.1.100.0000.00817.33
8.1.90.0050.00217.42
8.1.80.0000.00717.25
8.1.70.0000.00717.38
8.1.60.0050.00317.56
8.1.50.0050.00217.55
8.1.40.0050.00317.38
8.1.30.0000.00717.54
8.1.20.0050.00317.65
8.1.10.0050.00217.58
8.1.00.0060.00317.54
8.0.300.0040.00418.77
8.0.290.0000.00717.16
8.0.280.0040.00418.45
8.0.270.0000.00717.12
8.0.260.0030.00316.80
8.0.250.0070.00016.93
8.0.240.0040.00316.93
8.0.230.0070.00016.80
8.0.220.0060.00016.79
8.0.210.0040.00316.77
8.0.200.0050.00316.94
8.0.190.0040.00316.88
8.0.180.0040.00316.86
8.0.170.0080.00016.89
8.0.160.0050.00316.89
8.0.150.0050.00316.89
8.0.140.0030.00316.83
8.0.130.0030.00313.38
8.0.120.0050.00216.89
8.0.110.0000.00716.84
8.0.100.0040.00416.80
8.0.90.0040.00416.71
8.0.80.0140.00416.76
8.0.70.0050.00316.71
8.0.60.0050.00216.79
8.0.50.0030.00516.83
8.0.30.0100.00817.10
8.0.20.0130.00517.40
8.0.10.0000.00817.01
8.0.00.0090.00916.68
7.4.330.0020.00215.00
7.4.320.0000.00616.42
7.4.300.0030.00316.54
7.4.290.0000.00716.46
7.4.280.0030.00416.40
7.4.270.0000.00616.49
7.4.260.0070.00016.59
7.4.250.0050.00316.41
7.4.240.0020.00516.61
7.4.230.0000.00716.47
7.4.220.0150.00416.63
7.4.210.0080.00716.57
7.4.200.0040.00416.61
7.4.190.0000.00716.46
7.4.160.0060.01016.46
7.4.150.0080.01217.40
7.4.140.0090.00917.86
7.4.130.0110.00816.55
7.4.120.0100.00816.60
7.4.110.0060.01116.50
7.4.100.0200.00316.52
7.4.90.0140.00316.61
7.4.80.0050.01419.39
7.4.70.0070.01416.38
7.4.60.0090.00616.55
7.4.50.0000.00816.17
7.4.40.0030.01022.77
7.4.30.0100.00716.41
7.4.00.0090.00614.89
7.3.330.0050.00013.36
7.3.320.0020.00213.39
7.3.310.0030.00316.21
7.3.300.0040.00416.31
7.3.290.0130.00316.33
7.3.280.0090.00716.34
7.3.270.0130.00317.40
7.3.260.0220.00416.48
7.3.250.0130.00316.43
7.3.240.0130.00516.31
7.3.230.0210.00016.39
7.3.210.0180.00016.35
7.3.200.0140.00319.39
7.3.190.0040.01316.31
7.3.180.0060.00916.28
7.3.170.0090.00616.39
7.3.160.0130.00316.47
7.3.120.0130.00314.75
7.2.330.0160.00816.78
7.2.320.0100.01316.75
7.2.310.0160.00016.43
7.2.300.0110.00616.70
7.2.290.0030.01316.71
7.2.00.0030.00919.47
7.1.100.0050.00517.99
7.1.70.0060.00617.25
7.1.60.0030.02019.82
7.1.50.0140.01016.64
7.1.00.0100.07022.51
7.0.200.0110.00016.77
7.0.140.0030.07322.09
7.0.60.0200.06320.10
7.0.50.0030.05017.84
7.0.40.0200.03320.30
7.0.30.0370.06720.28
7.0.20.0230.04020.08
7.0.10.0100.08320.16
7.0.00.0130.07320.16
5.6.280.0100.09020.86
5.6.210.0070.08020.45
5.6.200.0130.05718.19
5.6.190.0030.07020.39
5.6.180.0200.06020.47
5.6.170.0230.06020.58
5.6.160.0070.08320.49
5.6.150.0070.06018.18
5.6.140.0100.07318.14
5.6.130.0070.08318.23
5.6.120.0130.06021.16
5.6.110.0070.04020.89
5.6.100.0100.08321.11
5.6.90.0030.08720.98
5.6.80.0170.03720.38
5.5.350.0170.06320.41
5.5.340.0100.07017.96
5.5.330.0130.05720.57
5.5.320.0070.08020.27
5.5.310.0230.08720.34
5.5.300.0130.03318.07
5.5.290.0030.04017.91
5.5.280.0070.04320.85
5.5.270.0030.07020.87
5.5.260.0100.04020.80
5.5.250.0070.04320.69
5.5.240.3930.03320.36
5.4.450.0870.06719.48
5.4.440.0830.04719.47
5.4.430.0900.05319.62
5.4.420.0770.06019.55
5.4.410.0870.05319.06
5.4.400.0800.00018.90
5.4.390.0630.00018.70
5.4.380.0230.05718.80
5.4.370.0330.05018.72
5.4.360.0370.05318.57
5.4.350.0270.06018.58
5.4.340.0300.04718.80
5.4.320.0100.04112.50
5.4.310.0030.04812.50
5.4.300.0050.04612.51
5.4.290.0040.04012.50
5.4.280.0070.04412.40
5.4.270.0080.04312.40
5.4.260.0070.06318.89
5.4.250.0200.04718.92
5.4.240.0070.05319.08
5.4.230.0070.05719.02
5.4.220.0130.07318.75
5.4.210.0100.05019.08
5.4.200.0030.05718.74
5.4.190.0100.05018.76
5.4.180.0100.05718.86
5.4.170.0170.05018.92
5.4.160.0100.04718.64
5.4.150.0100.05318.88
5.4.140.0130.04316.55
5.4.130.0100.04316.41
5.4.120.0030.05316.44
5.4.110.0170.04716.46
5.4.100.0170.05316.44
5.4.90.0100.04716.61
5.4.80.0200.04016.64
5.4.70.0100.06316.68
5.4.60.0030.05316.35
5.4.50.0130.04016.34
5.4.40.0130.05316.38
5.4.30.0070.06016.43
5.4.20.0000.05316.32
5.4.10.0100.04716.41
5.4.00.0070.05015.98
5.3.290.0080.04412.80
5.3.280.0070.05014.69
5.3.270.0030.06014.70
5.3.260.0000.06014.44
5.3.250.0100.04714.70
5.3.240.0170.04314.67
5.3.230.0030.06014.69
5.3.220.0170.06714.79
5.3.210.0130.04314.54
5.3.200.0030.05314.55
5.3.190.0070.07014.65
5.3.180.0070.07314.80
5.3.170.0170.06314.64
5.3.160.0070.05314.57
5.3.150.0130.04314.75
5.3.140.0100.07714.53
5.3.130.0000.05714.56
5.3.120.0100.04714.69
5.3.110.0100.05314.73
5.3.100.0100.04714.20
5.3.90.0100.04713.98
5.3.80.0100.06314.09
5.3.70.0030.05314.10
5.3.60.0070.06314.09
5.3.50.0070.07014.02
5.3.40.0100.04714.04
5.3.30.0100.04713.96
5.3.20.0100.05313.80
5.3.10.0130.04013.71
5.3.00.0130.04013.72
5.2.170.0100.03711.12
5.2.160.0100.03311.33
5.2.150.0070.06011.13
5.2.140.0130.03311.23
5.2.130.0000.04311.27
5.2.120.0170.02711.19
5.2.110.0070.03711.06
5.2.100.0070.03711.06
5.2.90.0070.03711.19
5.2.80.0130.03011.18
5.2.70.0030.05311.08
5.2.60.0070.04011.04
5.2.50.0000.06311.25
5.2.40.0070.04011.07
5.2.30.0130.04010.89
5.2.20.0100.03710.95
5.2.10.0100.03311.04
5.2.00.0030.04310.70
5.1.60.0070.03010.15
5.1.50.0100.02710.00
5.1.40.0030.0479.96
5.1.30.0030.03710.42
5.1.20.0030.03710.31
5.1.10.0070.04010.23
5.1.00.0030.05310.03
5.0.50.0070.0238.51
5.0.40.0100.0378.38
5.0.30.0000.0478.32
5.0.20.0030.0278.20
5.0.10.0000.0308.24
5.0.00.0000.0438.27
4.4.90.0030.0206.24
4.4.80.0100.0136.24
4.4.70.0000.0236.24
4.4.60.0000.0236.24
4.4.50.0030.0206.24
4.4.40.0000.0376.24
4.4.30.0030.0306.24
4.4.20.0000.0236.24
4.4.10.0030.0206.24
4.4.00.0030.0306.24
4.3.110.0030.0236.24
4.3.100.0030.0276.24
4.3.90.0000.0236.24
4.3.80.0070.0306.24
4.3.70.0030.0206.24
4.3.60.0030.0276.24
4.3.50.0030.0206.24
4.3.40.0000.0336.24
4.3.30.0000.0236.24
4.3.20.0030.0206.24
4.3.10.0000.0306.24
4.3.00.0100.0305.61

preferences:
50.34 ms | 401 KiB | 5 Q