3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function a () { $this = rand(); var_dump('reassigned', $this); } } $a = new A(); var_dump('new', $a); $a->a(); var_dump('modified', $a); var_Dump(new A(), new A(), new A(), new A());

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)
5.4.350.0170.06212.03
5.4.340.0230.07412.02
5.4.320.0200.07312.51
5.4.310.0460.23912.51
5.4.300.0140.04412.52
5.4.290.0040.07012.51
5.4.280.0110.07612.40
5.4.270.0120.06012.40
5.4.260.0180.06612.41
5.4.250.0180.06212.40
5.4.240.0140.05612.40
5.4.230.0120.05412.40
5.4.220.0230.04712.39
5.4.210.0110.04312.40
5.4.200.0100.05112.40
5.4.190.0130.04212.39
5.4.180.0130.04612.39
5.4.170.0160.05012.41
5.4.160.0170.10212.40
5.4.150.0080.09212.39
5.4.140.0220.09812.08
5.4.130.0270.09612.07
5.4.120.0280.13812.02
5.4.110.0160.09112.02
5.4.100.0190.06812.02
5.4.90.0180.12612.02
5.4.80.0110.05112.02
5.4.70.0120.06612.02
5.4.60.0150.06512.02
5.4.50.0150.06612.02
5.4.40.0120.06812.00
5.4.30.0080.05512.00
5.4.20.0080.04912.00
5.4.10.0070.04512.01
5.4.00.0080.04411.49
5.3.290.0080.14412.80
5.3.280.0130.07612.70
5.3.270.0110.05412.72
5.3.260.0270.08412.71
5.3.250.0160.08412.72
5.3.240.0090.07112.72
5.3.230.0120.05912.71
5.3.220.0110.06812.68
5.3.210.0160.06612.68
5.3.200.0100.08312.68
5.3.190.0110.06612.68
5.3.180.0140.08012.67
5.3.170.0270.12012.67
5.3.160.0380.10412.67
5.3.150.0150.06512.68
5.3.140.0140.04512.66
5.3.130.0140.05112.66
5.3.120.0140.09912.66
5.3.110.0120.06612.66
5.3.100.0270.08512.12
5.3.90.0290.09212.10
5.3.80.0250.09112.09
5.3.70.0050.05612.09
5.3.60.0190.09212.08
5.3.50.0190.09112.02
5.3.40.0150.04712.02
5.3.30.0140.06711.98
5.3.20.0200.05211.76
5.3.10.0210.08411.73
5.3.00.0490.17211.72
5.2.170.0100.0469.22
5.2.160.0060.0509.22
5.2.150.0090.0439.22
5.2.140.0050.0489.21
5.2.130.0100.0409.18
5.2.120.0240.1039.18
5.2.110.0080.0459.18
5.2.100.0100.0619.17
5.2.90.0100.0609.18
5.2.80.0130.0769.17
5.2.70.0070.0559.17
5.2.60.0080.0529.13
5.2.50.0120.0469.09
5.2.40.0150.0469.07
5.2.30.0050.0439.05
5.2.20.0080.0499.04
5.2.10.0060.0368.95
5.2.00.0050.0388.80
5.1.60.0060.0258.09
5.1.50.0060.0318.09
5.1.40.0070.0378.06
5.1.30.0110.0388.41
5.1.20.0150.0368.43
5.1.10.0080.0358.16
5.1.00.0080.0378.17
5.0.50.0060.0226.63
5.0.40.0030.0276.50
5.0.30.0050.0396.31
5.0.20.0060.0276.27
5.0.10.0060.0316.25
5.0.00.0040.0356.24
4.4.90.0060.0214.78
4.4.80.0030.0174.75
4.4.70.0050.0234.75
4.4.60.0040.0204.76
4.4.50.0030.0234.77
4.4.40.0050.0374.71
4.4.30.0080.0234.76
4.4.20.0030.0254.84
4.4.10.0040.0214.85
4.4.00.0060.0324.76
4.3.110.0030.0214.67
4.3.100.0060.0204.66
4.3.90.0060.0204.63
4.3.80.0040.0324.59
4.3.70.0040.0254.63
4.3.60.0060.0214.63
4.3.50.0050.0254.63
4.3.40.0060.0294.54
4.3.30.0030.0213.30
4.3.20.0070.0183.28
4.3.10.0060.0193.24
4.3.00.0100.0137.38

preferences:
143.07 ms | 1394 KiB | 7 Q