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));

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.0140.00718.43
8.3.50.0090.00921.14
8.3.40.0120.00618.42
8.3.30.0040.01118.82
8.3.20.0040.00420.04
8.3.10.0040.00421.83
8.3.00.0050.00320.52
8.2.180.0160.00316.75
8.2.170.0060.00822.96
8.2.160.0040.01119.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0060.01326.16
8.2.120.0070.00317.50
8.2.110.0000.01021.98
8.2.100.0070.00619.35
8.2.90.0000.00719.08
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0040.00418.04
8.2.50.0030.00718.07
8.2.40.0040.00419.88
8.2.30.0040.00417.99
8.2.20.0000.00717.45
8.2.10.0070.00017.61
8.2.00.0030.00517.51
8.1.280.0130.01325.92
8.1.270.0040.00422.13
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0080.00023.86
8.1.230.0110.00018.98
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0030.00517.30
8.1.180.0040.00418.75
8.1.170.0030.00618.45
8.1.160.0030.00322.08
8.1.150.0060.00318.61
8.1.140.0050.00217.36
8.1.130.0070.00317.87
8.1.120.0040.00417.41
8.1.110.0030.00617.37
8.1.100.0050.00217.29
8.1.90.0000.00817.38
8.1.80.0000.00717.28
8.1.70.0030.00317.39
8.1.60.0000.00817.43
8.1.50.0000.00717.45
8.1.40.0040.00417.33
8.1.30.0050.00217.57
8.1.20.0040.00417.59
8.1.10.0030.00517.61
8.1.00.0040.00417.49
8.0.300.0000.00818.77
8.0.290.0040.00417.05
8.0.280.0040.00418.44
8.0.270.0030.00317.18
8.0.260.0070.00016.70
8.0.250.0030.00316.83
8.0.240.0040.00416.84
8.0.230.0000.00616.85
8.0.220.0000.00716.85
8.0.210.0040.00416.80
8.0.200.0000.00616.87
8.0.190.0040.00416.92
8.0.180.0000.00816.82
8.0.170.0050.00316.79
8.0.160.0000.00716.79
8.0.150.0070.00016.76
8.0.140.0000.00716.74
8.0.130.0050.00013.30
8.0.120.0050.00316.77
8.0.110.0030.00516.71
8.0.100.0050.00316.76
8.0.90.0070.00016.81
8.0.80.0090.00816.77
8.0.70.0040.00416.65
8.0.60.0000.00716.66
8.0.50.0070.00016.93
8.0.30.0120.00617.02
8.0.20.0100.00817.40
8.0.10.0040.00416.80
8.0.00.0080.01316.65
7.4.330.0000.00515.00
7.4.320.0000.00616.45
7.4.300.0030.00316.42
7.4.290.0000.00716.53
7.4.280.0060.00316.51
7.4.270.0030.00316.33
7.4.260.0000.00816.54
7.4.250.0040.00416.26
7.4.240.0030.00516.54
7.4.230.0030.00316.55
7.4.220.0090.00616.57
7.4.210.0070.00816.55
7.4.200.0030.00316.34
7.4.190.0000.00716.32
7.4.160.0000.01616.33
7.4.150.0090.00817.40
7.4.140.0080.01217.86
7.4.130.0110.01116.38
7.4.120.0100.00816.46
7.4.110.0140.00316.52
7.4.100.0140.00616.53
7.4.90.0090.00916.35
7.4.80.0070.01119.39
7.4.70.0100.01116.31
7.4.60.0060.01016.31
7.4.50.0040.00416.08
7.4.40.0100.00722.77
7.4.30.0100.00716.43
7.4.00.0030.01314.65
7.3.330.0060.00013.10
7.3.320.0000.00513.05
7.3.310.0070.00016.14
7.3.300.0030.00316.26
7.3.290.0030.01316.20
7.3.280.0100.00616.19
7.3.270.0100.00717.40
7.3.260.0080.00816.45
7.3.250.0120.00516.42
7.3.240.0080.00816.26
7.3.230.0100.01116.50
7.3.210.0150.00316.31
7.3.200.0120.00919.39
7.3.190.0070.01116.36
7.3.180.0130.00916.16
7.3.170.0130.00316.43
7.3.160.0130.00316.31
7.3.120.0110.00414.48
7.3.110.0110.00414.34
7.3.100.0070.00714.70
7.3.90.0000.00714.70
7.3.80.0090.00614.50
7.3.70.0070.00714.49
7.3.60.0030.01114.92
7.3.50.0090.00314.93
7.3.40.0100.00714.80
7.3.30.0030.01014.68
7.3.20.0160.00016.21
7.3.10.0080.00416.61
7.3.00.0030.01016.41
7.2.330.0060.01216.58
7.2.320.0160.00716.48
7.2.310.0120.00616.68
7.2.300.0070.01016.54
7.2.290.0120.00316.65
7.2.240.0030.00614.82
7.2.230.0080.00514.96
7.2.220.0070.01314.82
7.2.210.0130.00314.80
7.2.200.0060.00914.87
7.2.190.0060.00614.87
7.2.180.0070.00414.65
7.2.170.0030.01415.00
7.2.160.0050.00514.57
7.2.150.0100.00716.98
7.2.140.0060.00917.02
7.2.130.0080.00816.69
7.2.120.0000.01316.73
7.2.110.0100.00616.94
7.2.100.0000.01516.65
7.2.90.0060.00616.93
7.2.80.0070.00716.95
7.2.70.0030.01016.82
7.2.60.0120.00316.66
7.2.50.0070.01016.85
7.2.40.0040.01116.91
7.2.30.0030.00916.86
7.2.20.0050.00517.03
7.2.10.0120.00616.88
7.2.00.0070.00518.03
7.1.330.0070.00715.82
7.1.320.0070.00315.67
7.1.310.0070.00315.84
7.1.300.0060.00615.91
7.1.290.0070.00315.46
7.1.280.0060.00615.71
7.1.270.0030.00915.39
7.1.260.0110.00315.77
7.1.250.0060.00915.68
7.1.100.0000.01018.29
7.1.70.0080.00317.02
7.1.60.0030.02119.82
7.1.50.0150.00316.93
7.1.00.0070.07322.39
7.0.200.0090.00616.64
7.0.140.0100.06322.09
7.0.60.0030.08319.94
7.0.50.0100.07717.91
7.0.40.0200.08020.23
7.0.30.0300.07320.07
7.0.20.0400.07320.26
7.0.10.0170.09020.21
7.0.00.0100.06020.20
5.6.280.0070.07020.96
5.6.210.0100.07020.77
5.6.200.0070.05718.20
5.6.190.0030.04320.40
5.6.180.0070.05320.62
5.6.170.0270.05320.55
5.6.160.0130.08720.47
5.6.150.0170.06018.14
5.6.140.0030.08318.15
5.6.130.0100.05318.25
5.6.120.0030.04021.00
5.6.110.0100.07720.89
5.6.100.0100.08321.14
5.6.90.0030.07321.04
5.6.80.0030.05320.40
5.6.70.4100.03320.38
5.5.350.0030.08020.45
5.5.340.0030.04317.95
5.5.330.0100.08020.13
5.5.320.0370.07320.42
5.5.310.0200.04320.31
5.5.300.0070.08317.94
5.5.290.0030.04317.95
5.5.280.0070.08720.66
5.5.270.0030.07720.68
5.5.260.0100.08020.88
5.5.250.0130.07320.55
5.5.240.0070.08020.03
5.4.450.0730.07719.70
5.4.440.0400.06319.63
5.4.430.0500.05319.46
5.4.420.0100.05019.34
5.4.410.0500.05719.46
5.4.400.1100.00018.88
5.4.390.0970.00018.59
5.4.380.0270.05718.74
5.4.370.0230.07018.71
5.4.360.0200.05318.50
5.4.350.0370.05318.57
5.4.340.0170.06318.59
5.4.320.0040.03912.50
5.4.310.0040.04112.50
5.4.300.0050.03612.51
5.4.290.0100.03712.50
5.4.280.0090.03612.40
5.4.270.0070.03812.40
5.4.260.0070.05018.73
5.4.250.0100.05018.73
5.4.240.0130.05018.88
5.4.230.0070.05318.84
5.4.220.0130.05019.08
5.4.210.0230.05318.74
5.4.200.0100.07318.74
5.4.190.0070.05718.72
5.4.180.0000.06018.98
5.4.170.0200.05718.92
5.4.160.0070.07018.72
5.4.150.0100.06718.72
5.4.140.0130.06716.59
5.4.130.0170.04016.48
5.4.120.0170.05716.40
5.4.110.0170.04016.52
5.4.100.0130.05316.41
5.4.90.0070.04716.45
5.4.80.0100.04316.34
5.4.70.0070.05016.39
5.4.60.0170.04316.27
5.4.50.0200.06316.57
5.4.40.0130.06016.57
5.4.30.0130.04716.43
5.4.20.0170.04716.52
5.4.10.0030.05316.47
5.4.00.0200.05716.00
5.3.290.0040.04112.80
5.3.280.0170.06014.60
5.3.270.0070.05314.69
5.3.260.0070.06014.59
5.3.250.0030.05714.82
5.3.240.0000.05714.62
5.3.230.0100.04714.62
5.3.220.0000.05714.70
5.3.210.0070.05014.70
5.3.200.0030.05014.66
5.3.190.0030.05714.65
5.3.180.0070.05714.61
5.3.170.0070.05314.39
5.3.160.0100.06314.74
5.3.150.0230.05714.55
5.3.140.0030.05314.70
5.3.130.0170.06314.64
5.3.120.0100.06014.55
5.3.110.0070.06314.73
5.3.100.0230.04313.94
5.3.90.0100.05014.15
5.3.80.0070.07014.18
5.3.70.0030.05314.09
5.3.60.0200.04014.07
5.3.50.0030.05314.04
5.3.40.0130.04313.86
5.3.30.0170.04014.00
5.3.20.0100.04713.67
5.3.10.0070.04713.73
5.3.00.0070.07013.73
5.2.170.0100.05711.32
5.2.160.0100.03311.22
5.2.150.0070.04011.37
5.2.140.0100.03711.30
5.2.130.0170.04711.11
5.2.120.0000.05711.32
5.2.110.0070.03711.33
5.2.100.0030.04311.09
5.2.90.0030.04011.06
5.2.80.0070.05010.93
5.2.70.0100.05711.18
5.2.60.0100.05311.21
5.2.50.0100.04711.11
5.2.40.0130.04710.97
5.2.30.0130.04710.98
5.2.20.0130.03310.86
5.2.10.0030.04710.95
5.2.00.0030.06010.55
5.1.60.0170.03310.07
5.1.50.0130.0409.96
5.1.40.0030.04310.22
5.1.30.0070.03710.51
5.1.20.0030.04010.57
5.1.10.0030.03710.11
5.1.00.0130.03010.04
5.0.50.0130.0208.38
5.0.40.0070.0238.63
5.0.30.0000.0508.22
5.0.20.0030.0278.03
5.0.10.0030.0278.37
5.0.00.0130.0478.08
4.4.90.0030.0236.37
4.4.80.0100.0236.37
4.4.70.0030.0206.37
4.4.60.0070.0206.37
4.4.50.0070.0276.37
4.4.40.0000.0536.37
4.4.30.0000.0376.37
4.4.20.0030.0206.37
4.4.10.0000.0236.37
4.4.00.0030.0306.37
4.3.110.0030.0236.37
4.3.100.0000.0236.37
4.3.90.0000.0336.37
4.3.80.0070.0276.37
4.3.70.0000.0206.37
4.3.60.0030.0206.37
4.3.50.0000.0336.37
4.3.40.0000.0336.37
4.3.30.0000.0236.37
4.3.20.0030.0206.37
4.3.10.0030.0206.37
4.3.00.0070.0206.39

preferences:
37.87 ms | 401 KiB | 5 Q