3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __constructor() { $that = new b(); //$this = &$that; $that = &$this; } } class b { } $class = new a(); 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.40.0140.00718.61
8.3.30.0040.01118.84
8.3.20.0040.00420.14
8.3.10.0070.00022.05
8.3.00.0000.00720.36
8.2.170.0090.00622.96
8.2.160.0070.00719.04
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0120.00826.16
8.2.120.0080.00020.75
8.2.110.0060.00322.08
8.2.100.0000.01019.31
8.2.90.0060.00319.23
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0040.00818.07
8.2.40.0030.00519.82
8.2.30.0030.00618.05
8.2.20.0040.00417.50
8.2.10.0040.00417.63
8.2.00.0070.00017.73
8.1.270.0030.00521.84
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.96
8.1.230.0090.00318.97
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.30
8.1.180.0000.00820.46
8.1.170.0040.00418.45
8.1.160.0040.00422.12
8.1.150.0040.00418.43
8.1.140.0040.00417.38
8.1.130.0060.00317.68
8.1.120.0040.00417.30
8.1.110.0040.00417.26
8.1.100.0040.00417.35
8.1.90.0000.00717.37
8.1.80.0000.00717.23
8.1.70.0030.00317.34
8.1.60.0060.00317.49
8.1.50.0000.00817.35
8.1.40.0040.00417.40
8.1.30.0040.00417.45
8.1.20.0000.00817.60
8.1.10.0050.00317.60
8.1.00.0000.00717.38
8.0.300.0070.00018.77
8.0.290.0060.00317.18
8.0.280.0070.00018.38
8.0.270.0000.00717.23
8.0.260.0030.00316.72
8.0.250.0030.00416.89
8.0.240.0080.00016.77
8.0.230.0030.00316.86
8.0.220.0030.00516.79
8.0.210.0000.00816.84
8.0.200.0060.00016.74
8.0.190.0040.00416.76
8.0.180.0080.00016.73
8.0.170.0030.00616.77
8.0.160.0000.00716.73
8.0.150.0000.00716.65
8.0.140.0040.00416.77
8.0.130.0050.00013.27
8.0.120.0000.00716.66
8.0.110.0040.00416.77
8.0.100.0000.00716.74
8.0.90.0000.00716.93
8.0.80.0160.00016.79
8.0.70.0040.00416.67
8.0.60.0000.00716.85
8.0.50.0040.00416.83
8.0.30.0080.01017.13
8.0.20.0090.00917.40
8.0.10.0000.00716.82
8.0.00.0170.00616.67
7.4.330.0050.00015.00
7.4.320.0000.00616.54
7.4.300.0000.00716.42
7.4.290.0000.00616.42
7.4.280.0060.00016.27
7.4.270.0070.00016.53
7.4.260.0050.00316.41
7.4.250.0040.00416.50
7.4.240.0030.00516.41
7.4.230.0000.00716.52
7.4.220.0000.01516.39
7.4.210.0090.00716.43
7.4.200.0050.00316.42
7.4.190.0000.00716.54
7.4.160.0100.00716.25
7.4.150.0070.01117.40
7.4.140.0080.01117.86
7.4.130.0040.01416.49
7.4.120.0090.00916.28
7.4.110.0170.00016.43
7.4.100.0120.00616.39
7.4.90.0100.00716.50
7.4.80.0090.00919.39
7.4.70.0030.01916.50
7.4.60.0090.00616.27
7.4.50.0060.00316.19
7.4.40.0040.01222.77
7.4.30.0080.00816.52
7.4.00.0080.00414.88
7.3.330.0050.00013.18
7.3.320.0000.00513.18
7.3.310.0030.00316.05
7.3.300.0000.00616.13
7.3.290.0060.01316.25
7.3.280.0050.01116.27
7.3.270.0140.00417.40
7.3.260.0100.00716.39
7.3.250.0140.00316.44
7.3.240.0060.01016.36
7.3.230.0110.00616.51
7.3.210.0090.01216.20
7.3.200.0060.01519.39
7.3.190.0090.00916.33
7.3.180.0060.00916.05
7.3.170.0100.01016.36
7.3.160.0090.00916.33
7.3.120.0030.01014.43
7.2.330.0110.00716.60
7.2.320.0180.00316.60
7.2.310.0130.01016.59
7.2.300.0100.00716.64
7.2.290.0070.01016.60
7.2.60.0110.00416.61
7.2.00.0100.00319.38
7.1.200.0080.00315.59
7.1.100.0040.00418.23
7.1.70.0040.00416.93
7.1.60.0100.01419.82
7.1.50.0100.01416.94
7.1.00.0000.07722.28
7.0.200.0030.00616.61
7.0.140.0030.07321.97
7.0.60.0100.08319.96
7.0.50.0030.04017.88
7.0.40.0070.04720.05
7.0.30.0300.05020.07
7.0.20.0230.05020.10
7.0.10.0130.07720.07
7.0.00.0030.07720.23
5.6.280.0030.07320.91
5.6.210.0070.08020.67
5.6.200.0000.06018.28
5.6.190.0000.04720.47
5.6.180.0370.03020.45
5.6.170.0430.07020.45
5.6.160.0130.08020.57
5.6.150.0000.04318.19
5.6.140.0070.05018.19
5.6.130.0100.07718.13
5.6.120.0130.07721.02
5.6.110.0100.08021.02
5.6.100.0170.07320.94
5.6.90.0070.08320.97
5.6.80.0170.05320.42
5.5.350.0170.08320.53
5.5.340.0100.07318.09
5.5.330.0100.04720.13
5.5.320.0270.07720.36
5.5.310.0170.04720.34
5.5.300.0100.03317.95
5.5.290.0130.07718.08
5.5.280.0030.08320.90
5.5.270.0130.03320.88
5.5.260.0000.06720.87
5.5.250.0100.06320.66
5.5.240.0000.04020.26
5.4.450.0630.05719.34
5.4.440.0100.06019.45
5.4.430.0070.05719.54
5.4.420.0200.05319.21
5.4.410.0030.06019.04
5.4.400.0070.05318.45
5.4.390.0200.04318.74
5.4.380.0130.05318.84
5.4.370.0330.05318.78
5.4.360.0370.05318.77
5.4.350.0270.05718.56
5.4.340.0270.05018.77
5.4.320.0090.03412.50
5.4.310.0070.04312.50
5.4.300.0060.04412.50
5.4.290.0070.04112.50
5.4.280.0070.04612.39
5.4.270.0060.03512.40
5.4.260.0100.05718.89
5.4.250.0170.05318.72
5.4.240.0170.05318.64
5.4.230.0230.05018.84
5.4.220.0130.04718.99
5.4.210.0100.05718.92
5.4.200.0070.06018.99
5.4.190.0030.05718.85
5.4.180.0030.08018.78
5.4.170.0130.04719.02
5.4.160.0030.05718.73
5.4.150.0100.05318.80
5.4.140.0100.05316.48
5.4.130.0100.07716.58
5.4.120.0030.05716.45
5.4.110.0170.04316.32
5.4.100.0100.04316.42
5.4.90.0130.04016.61
5.4.80.0130.06316.33
5.4.70.0130.05016.46
5.4.60.0130.05316.58
5.4.50.0070.04716.52
5.4.40.0070.05016.50
5.4.30.0030.05716.43
5.4.20.0000.05716.32
5.4.10.0170.06016.39
5.4.00.0030.05016.03
5.3.290.0050.04012.80
5.3.280.0070.05714.50
5.3.270.0070.07314.82
5.3.260.0100.05014.67
5.3.250.0170.04714.51
5.3.240.0030.05314.69
5.3.230.0070.05314.76
5.3.220.0000.05714.53
5.3.210.0130.07714.73
5.3.200.0100.05014.65
5.3.190.0070.07314.74
5.3.180.0030.05314.53
5.3.170.0100.05314.64
5.3.160.0170.06714.61
5.3.150.0100.04714.74
5.3.140.0130.04314.63
5.3.130.0130.05714.63
5.3.120.0030.05714.62
5.3.110.0100.05314.63
5.3.100.0000.05314.12
5.3.90.0030.06014.10
5.3.80.0030.05014.25
5.3.70.0070.05013.91
5.3.60.0000.05714.17
5.3.50.0070.05714.17
5.3.40.0000.05314.17
5.3.30.0070.05013.98
5.3.20.0170.05713.68
5.3.10.0030.05313.63
5.3.00.0000.05713.65
5.2.170.0030.04711.12
5.2.160.0070.04311.23
5.2.150.0070.04011.37
5.2.140.0000.05011.23
5.2.130.0100.03711.32
5.2.120.0070.04311.28
5.2.110.0030.04011.19
5.2.100.0000.05711.16
5.2.90.0000.04711.18
5.2.80.0170.04711.18
5.2.70.0070.04311.15
5.2.60.0070.05311.11
5.2.50.0030.04011.00
5.2.40.0130.03311.07
5.2.30.0070.04011.05
5.2.20.0000.04310.91
5.2.10.0070.03710.86
5.2.00.0030.04310.89
5.1.60.0000.04010.15
5.1.50.0030.0339.84
5.1.40.0100.0439.96
5.1.30.0000.06010.55
5.1.20.0130.03310.25
5.1.10.0130.0309.98
5.1.00.0130.0439.91
5.0.50.0000.0438.69
5.0.40.0100.0238.41
5.0.30.0030.0608.23
5.0.20.0030.0308.02
5.0.10.0030.0408.20
5.0.00.0030.0578.20
4.4.90.0070.0276.36
4.4.80.0030.0306.36
4.4.70.0030.0206.36
4.4.60.0000.0236.36
4.4.50.0100.0176.36
4.4.40.0030.0336.36
4.4.30.0000.0276.36
4.4.20.0000.0236.36
4.4.10.0030.0236.36
4.4.00.0100.0376.36
4.3.110.0030.0236.36
4.3.100.0000.0306.36
4.3.90.0000.0236.36
4.3.80.0030.0376.36
4.3.70.0030.0206.36
4.3.60.0030.0306.36
4.3.50.0070.0306.36
4.3.40.0070.0306.36
4.3.30.0030.0306.36
4.3.20.0070.0176.36
4.3.10.0000.0336.36
4.3.00.0170.0176.77

preferences:
36.71 ms | 400 KiB | 5 Q