3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function a () { $this = 5; var_dump('reassigned', $this); } } $a = new A(); var_dump('new', $a); $a->a(); var_dump('modified', $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.0130.03712.03
5.4.340.0060.03912.03
5.4.320.0050.04712.51
5.4.310.0070.04812.51
5.4.300.0140.05512.51
5.4.290.0110.05712.51
5.4.280.0090.04712.41
5.4.270.0110.04712.40
5.4.260.0100.04912.41
5.4.250.0130.04912.40
5.4.240.0130.04412.41
5.4.230.0180.08212.40
5.4.220.0090.05212.39
5.4.210.0130.05012.40
5.4.200.0120.07612.40
5.4.190.0250.08912.39
5.4.180.0090.04512.39
5.4.170.0170.06212.41
5.4.160.0120.04612.40
5.4.150.0120.04012.39
5.4.140.0050.04812.08
5.4.130.0110.03612.07
5.4.120.0070.04012.03
5.4.110.0130.06512.03
5.4.100.0070.04012.02
5.4.90.0120.04212.02
5.4.80.0060.04212.03
5.4.70.0080.03612.02
5.4.60.0110.03512.02
5.4.50.0110.03912.02
5.4.40.0080.04112.00
5.4.30.0060.04212.00
5.4.20.0130.03512.00
5.4.10.0090.04812.00
5.4.00.0070.04611.50
5.3.290.0090.05212.80
5.3.280.0120.05212.71
5.3.270.0270.09212.72
5.3.260.0110.13412.72
5.3.250.0150.06212.72
5.3.240.0170.08512.72
5.3.230.0210.07512.71
5.3.220.0130.05812.68
5.3.210.0130.05812.68
5.3.200.0270.05812.68
5.3.190.0110.04912.68
5.3.180.0280.05512.67
5.3.170.0100.04012.67
5.3.160.0250.07312.67
5.3.150.0150.04712.67
5.3.140.0110.06612.66
5.3.130.0090.06412.66
5.3.120.0110.03812.66
5.3.110.0110.04712.66
5.3.100.0090.04412.12
5.3.90.0130.03712.10
5.3.80.0170.05912.09
5.3.70.0110.04112.09
5.3.60.0090.05612.08
5.3.50.0140.05112.02
5.3.40.0200.04012.02
5.3.30.0390.08411.98
5.3.20.0150.06311.76
5.3.10.0240.08011.73
5.3.00.0070.05411.72
5.2.170.0060.0299.21
5.2.160.0170.0659.22
5.2.150.0060.0389.21
5.2.140.0050.0359.21
5.2.130.0050.0319.17
5.2.120.0110.0269.17
5.2.110.0060.0319.17
5.2.100.0060.0319.17
5.2.90.0100.0529.18
5.2.80.0080.0479.17
5.2.70.0210.0599.17
5.2.60.0060.0529.12
5.2.50.0110.0589.10
5.2.40.0190.0679.07
5.2.30.0090.0419.05
5.2.20.0120.0569.04
5.2.10.0100.0468.94
5.2.00.0070.0778.80
5.1.60.0160.0648.09
5.1.50.0140.0358.09
5.1.40.0140.0608.06
5.1.30.0060.0298.41
5.1.20.0120.0288.44
5.1.10.0070.0308.16
5.1.00.0070.0268.16
5.0.50.0060.0236.64
5.0.40.0140.0466.50
5.0.30.0050.0386.31
5.0.20.0090.0246.28
5.0.10.0080.0206.25
5.0.00.0080.0326.24
4.4.90.0070.0134.78
4.4.80.0030.0174.75
4.4.70.0020.0174.75
4.4.60.0020.0184.75
4.4.50.0070.0194.77
4.4.40.0050.0274.71
4.4.30.0070.0224.76
4.4.20.0040.0214.84
4.4.10.0050.0254.85
4.4.00.0040.0324.76
4.3.110.0060.0194.66
4.3.100.0080.0164.66
4.3.90.0030.0184.63
4.3.80.0140.0754.58
4.3.70.0030.0274.63
4.3.60.0110.0474.63
4.3.50.0100.0134.63
4.3.40.0080.0464.54
4.3.30.0030.0173.30
4.3.20.0020.0213.28
4.3.10.0030.0233.23
4.3.00.0100.0307.38

preferences:
144.18 ms | 1394 KiB | 7 Q