3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function test() {     unset($this);     return get_defined_vars();   } } $c = new C(); $x = $c->test(); unset($c, $x); echo "Done\n";

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.340.0090.03912.03
5.4.320.0050.03712.52
5.4.310.0060.04212.52
5.4.300.0080.03412.52
5.4.290.0040.03912.51
5.4.280.0120.03812.41
5.4.270.0070.04812.41
5.4.260.0100.04512.41
5.4.250.0050.04512.41
5.4.240.0100.04212.41
5.4.230.0100.05112.40
5.4.220.0050.05412.40
5.4.210.0130.04512.40
5.4.200.0100.05412.40
5.4.190.0160.05512.40
5.4.180.0070.05312.39
5.4.170.0110.04712.41
5.4.160.0110.04512.40
5.4.150.0100.04512.40
5.4.140.0090.05112.09
5.4.130.0080.04712.07
5.4.120.0110.04512.03
5.4.110.0140.04312.03
5.4.100.0070.04312.03
5.4.90.0080.04712.03
5.4.80.0100.05012.03
5.4.70.0060.04912.03
5.4.60.0070.04212.03
5.4.50.0060.03712.03
5.4.40.0060.03912.02
5.4.30.0130.03912.01
5.4.20.0100.04312.01
5.4.10.0080.04312.01
5.4.00.0060.04811.50
5.3.290.0090.04412.80
5.3.280.0140.05312.71
5.3.270.0080.04012.72
5.3.260.0060.04012.71
5.3.250.0060.04512.72
5.3.240.0100.03912.72
5.3.230.0090.03812.71
5.3.220.0080.04012.68
5.3.210.0080.04112.68
5.3.200.0080.04212.68
5.3.190.0100.04212.68
5.3.180.0070.04312.67
5.3.170.0140.04212.67
5.3.160.0100.04312.67
5.3.150.0060.04112.68
5.3.140.0110.04512.66
5.3.130.0070.04312.66
5.3.120.0080.04812.66
5.3.110.0090.05412.66
5.3.100.0070.04012.12
5.3.90.0120.04412.10
5.3.80.0110.05812.10
5.3.70.0110.04312.09
5.3.60.0110.04412.08
5.3.50.0120.04112.02
5.3.40.0070.04312.02
5.3.30.0130.04711.98
5.3.20.0130.04811.76
5.3.10.0070.04911.73
5.3.00.0070.04811.72
5.2.170.0050.0389.22
5.2.160.0060.0399.22
5.2.150.0060.0369.21
5.2.140.0040.0339.21
5.2.130.0050.0419.18
5.2.120.0070.0329.18
5.2.110.0100.0359.18
5.2.100.0090.0389.18
5.2.90.0060.0429.18
5.2.80.0080.0389.17
5.2.70.0070.0399.18
5.2.60.0080.0399.13
5.2.50.0110.0379.10
5.2.40.0080.0339.07
5.2.30.0050.0419.05
5.2.20.0090.0359.04
5.2.10.0130.0318.94
5.2.00.0050.0388.80
5.1.60.0040.0268.09
5.1.50.0040.0278.09
5.1.40.0040.0278.07
5.1.30.0050.0308.41
5.1.20.0060.0308.44
5.1.10.0050.0318.16
5.1.00.0040.0328.17
5.0.50.0040.0296.64
5.0.40.0050.0276.50
5.0.30.0040.0436.31
5.0.20.0060.0276.28
5.0.10.0050.0266.26
5.0.00.0070.0356.25
4.4.90.0050.0194.78
4.4.80.0020.0174.75
4.4.70.0020.0204.75
4.4.60.0050.0234.75
4.4.50.0070.0214.77
4.4.40.0070.0324.71
4.4.30.0030.0164.76
4.4.20.0040.0174.84
4.4.10.0040.0154.85
4.4.00.0030.0264.75
4.3.110.0030.0174.67
4.3.100.0030.0204.66
4.3.90.0060.0184.63
4.3.80.0030.0304.58
4.3.70.0030.0164.63
4.3.60.0020.0174.63
4.3.50.0030.0174.63
4.3.40.0020.0284.54
4.3.30.0040.0183.30
4.3.20.0050.0153.28
4.3.10.0020.0193.23
4.3.00.0170.0237.25

preferences:
141.78 ms | 1394 KiB | 7 Q