3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { } class A { public function M() { echo("this=" . get_class($this) . " hash=" . spl_object_hash($this) . "\n"); $x = "this"; $$x = new B(); echo("this=" . get_class($this) . " hash=" . spl_object_hash($this) . "\n"); } } $a = new A(); $a->M();

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.01216.88
8.3.50.0080.01021.24
8.3.40.0110.00318.79
8.3.30.0110.00418.61
8.3.20.0040.00420.20
8.3.10.0040.00421.82
8.3.00.0000.00820.34
8.2.180.0130.00616.75
8.2.170.0070.01422.96
8.2.160.0110.00419.46
8.2.150.0040.01124.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0060.00317.47
8.2.110.0030.00622.20
8.2.100.0040.00817.78
8.2.90.0040.00419.13
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0050.00519.32
8.2.30.0050.00220.69
8.2.20.0040.00417.74
8.2.10.0050.00218.05
8.2.00.0040.00418.17
8.1.280.0070.00725.92
8.1.270.0130.00623.70
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00722.42
8.1.230.0030.00920.84
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.48
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0040.00418.65
8.1.160.0000.00822.02
8.1.150.0060.00318.84
8.1.140.0000.00817.46
8.1.130.0000.00717.71
8.1.120.0000.00917.49
8.1.110.0070.00017.41
8.1.100.0000.00717.37
8.1.90.0040.00417.48
8.1.80.0000.00917.41
8.1.70.0030.00317.45
8.1.60.0040.00417.59
8.1.50.0050.00217.55
8.1.40.0000.00817.53
8.1.30.0030.00617.66
8.1.20.0000.00717.56
8.1.10.0040.00417.63
8.1.00.0060.00317.49
8.0.300.0090.00019.98
8.0.290.0060.00316.88
8.0.280.0070.00018.42
8.0.270.0070.00017.26
8.0.260.0030.00317.34
8.0.250.0000.00816.92
8.0.240.0030.00316.97
8.0.230.0000.00717.05
8.0.220.0030.00616.96
8.0.210.0030.00616.93
8.0.200.0030.00617.00
8.0.190.0040.00416.92
8.0.180.0030.00316.99
8.0.170.0000.00816.95
8.0.160.0030.00316.95
8.0.150.0040.00416.88
8.0.140.0040.00416.93
8.0.130.0030.00313.38
8.0.120.0030.00516.91
8.0.110.0040.00416.98
8.0.100.0050.00316.99
8.0.90.0030.00616.87
8.0.80.0060.01516.96
8.0.70.0040.00416.86
8.0.60.0030.00616.92
8.0.50.0060.00316.97
8.0.30.0080.01017.13
8.0.20.0090.01117.40
8.0.10.0000.00717.15
8.0.00.0100.00716.78
7.4.330.0000.00515.08
7.4.320.0000.00716.38
7.4.300.0060.00016.52
7.4.290.0000.00816.50
7.4.280.0030.00616.60
7.4.270.0030.00316.56
7.4.260.0030.00316.54
7.4.250.0030.00316.56
7.4.240.0040.00416.60
7.4.230.0030.00316.51
7.4.220.0030.01316.41
7.4.210.0100.00716.53
7.4.200.0000.00716.31
7.4.160.0090.00616.55
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0110.00616.53
7.4.120.0070.01316.50
7.4.110.0100.00716.42
7.4.100.0090.00916.70
7.4.90.0100.01316.43
7.4.80.0170.00019.39
7.4.70.0070.01016.53
7.4.60.0060.01116.64
7.4.50.0040.00416.44
7.4.40.0030.01416.56
7.4.30.0150.00816.46
7.4.00.0060.00614.89
7.3.330.0020.00213.45
7.3.320.0050.00013.29
7.3.310.0070.00016.53
7.3.300.0030.00316.48
7.3.290.0060.01016.41
7.3.280.0060.01016.44
7.3.270.0030.01417.40
7.3.260.0030.01316.36
7.3.250.0070.01316.45
7.3.240.0100.00716.68
7.3.230.0120.00416.64
7.3.210.0120.00616.52
7.3.200.0150.00316.62
7.3.190.0140.00616.41
7.3.180.0120.00916.39
7.3.170.0100.00616.54
7.3.160.0060.01116.48
7.2.330.0070.01416.77
7.2.320.0090.01216.44
7.2.310.0040.01416.82
7.2.300.0090.00916.41
7.2.290.0060.01616.75
7.2.60.0070.01016.94
7.2.00.0060.00619.29
7.1.200.0040.01115.71
7.1.100.0030.01418.09
7.1.70.0000.00817.07
7.1.60.0110.01119.29
7.1.50.0070.01717.06
7.1.00.0030.07722.54
7.0.200.0030.00616.73
7.0.60.0100.08019.79
7.0.50.0100.07717.85
7.0.40.0030.05320.15
7.0.30.0230.04320.06
7.0.20.0370.05320.23
7.0.10.0130.07020.15
7.0.00.0100.08020.33
5.6.280.0070.06020.82
5.6.210.0100.08020.73
5.6.200.0030.04318.20
5.6.190.0000.05020.39
5.6.180.0130.04320.34
5.6.170.0200.04320.71
5.6.160.0100.07720.61
5.6.150.0030.05018.18
5.6.140.0130.07318.18
5.6.130.0100.07718.16
5.6.120.0100.07321.01
5.6.110.0030.09020.97
5.6.100.0070.05321.01
5.6.90.0030.04321.10
5.6.80.0100.07020.38
5.5.350.0230.04020.30
5.5.340.0000.04317.99
5.5.330.0030.05020.21
5.5.320.0300.07720.35
5.5.310.0230.05320.51
5.5.300.0070.03718.08
5.5.290.0130.05717.99
5.5.280.0100.08020.97
5.5.270.0100.03720.75
5.5.260.0130.07720.76
5.5.250.0070.04020.56
5.5.240.0000.08020.24
5.4.450.0970.07319.61
5.4.440.0930.08019.33
5.4.430.0830.06719.61
5.4.420.0930.06719.46
5.4.410.0730.06019.25
5.4.400.0870.05319.15
5.4.390.0900.06319.36
5.4.380.0900.04719.30
5.4.370.0700.05018.82
5.4.360.0730.05318.97
5.4.350.0770.05319.00
5.4.340.0670.06018.84
5.4.320.0630.06319.13
5.4.310.0770.05719.27
5.4.300.0730.06019.14
5.4.290.0900.05719.21
5.4.280.0900.07319.29
5.4.270.1170.05719.05
5.4.260.1030.07019.36
5.4.250.1100.07719.13
5.4.240.0870.05319.29
5.4.230.0770.06318.96
5.4.220.1170.06719.27
5.4.210.0930.07719.36
5.4.200.0870.05719.13
5.4.190.0900.05018.98
5.4.180.0770.07018.86
5.4.170.0970.06719.04
5.4.160.0670.05318.81
5.4.150.0800.06318.98
5.4.140.0770.04316.39
5.4.130.0770.06016.61
5.4.120.0900.04716.49
5.4.110.0770.05016.65
5.4.100.0900.05316.68
5.4.90.0730.05016.50
5.4.80.0800.05316.64
5.4.70.0000.03316.59
5.4.60.0230.03016.52
5.4.50.0230.04016.34
5.4.40.0370.06016.43
5.4.30.0000.05016.33
5.4.20.0070.07016.22
5.4.10.0170.05016.57

preferences:
48.22 ms | 401 KiB | 5 Q