3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { $val = 'Foo'; } $foo = new Foo(); $bar = $foo; $bar->val = 'Bar'; echo $bar->val . "\n"; echo $foo->val;

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.170.0150.03812.38
5.4.160.0130.04112.37
5.4.150.0250.07012.36
5.4.140.0110.04312.05
5.4.130.0150.04112.04
5.4.120.0130.04012.00
5.4.110.0110.04012.00
5.4.100.0160.04912.00
5.4.90.0150.03812.00
5.4.80.0100.04212.00
5.4.70.0170.04412.00
5.4.60.0130.03811.99
5.4.50.0130.04211.99
5.4.40.0130.04011.98
5.4.30.0140.04111.98
5.4.20.0180.04511.97
5.4.10.0130.04111.98
5.4.00.0210.05411.47
5.3.270.0170.05012.72
5.3.260.0160.04312.72
5.3.250.0150.04312.72
5.3.240.0140.04712.72
5.3.230.0200.06312.71
5.3.220.0130.04412.68
5.3.210.0180.04812.68
5.3.200.0140.04612.68
5.3.190.0160.04112.68
5.3.180.0190.04912.67
5.3.170.0140.04312.67
5.3.160.0150.04212.67
5.3.150.0160.04212.67
5.3.140.0120.04512.66
5.3.130.0140.04212.66
5.3.120.0230.06512.66
5.3.110.0140.04412.66
5.3.100.0190.04112.12
5.3.90.0210.05712.08
5.3.80.0140.04312.08
5.3.70.0130.04312.07
5.3.60.0120.04612.06
5.3.50.0160.04312.00
5.3.40.0140.05112.00
5.3.30.0110.04411.96
5.3.20.0160.04111.74
5.3.10.0160.04211.70
5.3.00.0200.04711.69
5.2.170.0080.0379.20
5.2.160.0120.0339.20
5.2.150.0120.0439.19
5.2.140.0090.0369.19
5.2.130.0140.0409.15
5.2.120.0100.0359.15
5.2.110.0120.0349.16
5.2.100.0090.0369.16
5.2.90.0080.0359.15
5.2.80.0130.0329.14
5.2.70.0110.0339.14
5.2.60.0100.0359.10
5.2.50.0200.0569.07
5.2.40.0150.0319.04
5.2.30.0130.0379.02
5.2.20.0100.0349.01
5.2.10.0120.0348.92
5.2.00.0110.0328.78
5.1.60.0190.0408.06
5.1.50.0110.0268.06
5.1.40.0080.0328.05
5.1.30.0090.0318.39
5.1.20.0100.0308.42
5.1.10.0100.0298.14
5.1.00.0090.0308.14
5.0.50.0090.0256.61
5.0.40.0100.0246.47
5.0.30.0090.0386.29
5.0.20.0090.0206.25
5.0.10.0090.0206.23
5.0.00.0130.0416.22
4.4.90.0080.0174.78
4.4.80.0090.0154.75
4.4.70.0090.0254.75
4.4.60.0050.0184.75
4.4.50.0120.0314.77
4.4.40.0070.0284.71
4.4.30.0070.0184.76
4.4.20.0040.0204.84
4.4.10.0080.0174.85
4.4.00.0050.0284.75
4.3.110.0050.0184.67
4.3.100.0070.0184.67
4.3.90.0130.0364.63
4.3.80.0080.0264.58
4.3.70.0050.0194.63
4.3.60.0070.0184.63
4.3.50.0060.0184.63
4.3.40.0060.0264.54
4.3.30.0040.0193.30
4.3.20.0030.0193.28
4.3.10.0040.0183.24
4.3.00.0000.02313.16

preferences:
139.63 ms | 1394 KiB | 7 Q