3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A extends stdClass {}; class B extends A {}; $b = new B(); $b->foo = 'bar';

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.5.70.0100.00616.82
8.5.60.0090.00816.74
8.5.50.0100.00718.13
8.5.30.0100.00820.78
8.5.20.0090.00919.57
8.5.10.0090.00820.04
8.5.00.0120.00819.57
8.4.220.0050.00519.49
8.4.210.0150.00619.52
8.4.180.0130.00919.69
8.4.170.0130.01023.89
8.4.160.0130.00823.93
8.4.150.0070.00516.89
8.4.140.0110.01117.45
8.4.130.0120.00917.67
8.4.120.0110.00920.41
8.4.110.0100.01020.80
8.4.100.0130.00917.61
8.4.90.0130.00817.68
8.4.80.0090.00517.70
8.4.70.0060.00219.32
8.4.60.0090.01017.54
8.4.50.0120.01018.50
8.4.40.0080.00018.07
8.4.30.0120.00318.87
8.4.20.0070.01417.94
8.4.10.0040.00423.67
8.3.310.0130.00718.34
8.3.300.0130.00718.12
8.3.290.0100.01018.20
8.3.280.0090.01118.10
8.3.270.0150.00516.42
8.3.260.0120.00716.72
8.3.250.0160.00219.12
8.3.240.0160.00416.62
8.3.230.0150.00516.52
8.3.220.0110.00916.51
8.3.210.0090.00916.66
8.3.200.0110.00816.56
8.3.190.0130.00717.25
8.3.180.0100.00516.74
8.3.170.0170.00318.83
8.3.160.0070.01017.11
8.3.150.0040.01517.00
8.3.140.0000.00816.98
8.3.130.0040.00418.50
8.3.120.0060.00318.65
8.3.110.0090.00020.94
8.3.100.0090.00018.46
8.3.90.0070.00026.77
8.3.80.0040.00716.50
8.3.70.0160.00616.58
8.3.60.0130.00616.63
8.3.50.0060.00920.11
8.3.40.0130.00720.34
8.3.30.0060.01218.69
8.3.20.0060.00324.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.310.0130.00818.04
8.2.300.0120.00917.96
8.2.290.0110.00818.65
8.2.280.0020.00616.40
8.2.270.0120.00618.97
8.2.260.0090.00616.38
8.2.250.0000.00818.27
8.2.240.0110.00718.81
8.2.230.0000.00822.58
8.2.220.0080.00024.06
8.2.210.0000.00826.77
8.2.200.0060.00318.66
8.2.190.0110.00416.58
8.2.180.0090.00625.92
8.2.170.0030.01018.83
8.2.160.0090.00622.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00026.16
8.2.110.0040.00420.35
8.2.100.0040.00420.52
8.1.340.0110.00917.59
8.1.330.0070.01115.91
8.1.320.0120.00616.13
8.1.310.0000.00818.55
8.1.300.0030.00618.05
8.1.290.0030.00630.84
8.1.280.0100.00625.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0100.00328.09
8.1.240.0000.01018.49
8.1.230.0090.00018.48

preferences:
49.55 ms | 864 KiB | 5 Q