3v4l.org

run code in 500+ PHP versions simultaneously
<?php class FooException extends Exception { protected $code = 123; public function getCode() { return $this->code; } } $e = new FooException(); var_dump($e->getCode());

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.3.50.0030.00516.66
5.4.350.0070.04912.03
5.4.340.0080.04712.02
5.4.320.0100.05412.51
5.4.310.0100.04012.51
5.4.300.0100.04712.52
5.4.290.0160.03412.51
5.4.280.0030.04312.41
5.4.270.0130.03912.40
5.4.260.0090.04312.40
5.4.250.0100.03912.41
5.4.240.0060.05012.41
5.4.230.0060.04312.39
5.4.220.0080.04312.39
5.4.210.0060.04912.39
5.4.200.0120.04912.39
5.4.190.0050.04612.39
5.4.180.0130.03812.39
5.4.170.0080.03712.41
5.4.160.0080.04012.40
5.4.150.0080.04412.40
5.4.140.0100.04912.08
5.4.130.0130.04312.07
5.4.120.0130.04312.03
5.4.110.0050.05112.02
5.4.100.0090.04212.03
5.4.90.0050.05112.02
5.4.80.0090.05512.02
5.4.70.0150.04312.02
5.4.60.0100.04912.02
5.4.50.0110.04912.02
5.4.40.0090.04712.01
5.4.30.0060.05612.01
5.4.20.0050.04712.00
5.4.10.0080.05112.00
5.4.00.0090.03711.49
5.3.290.0120.04312.80
5.3.280.0090.04512.71
5.3.270.0050.04612.72
5.3.260.0080.05312.72
5.3.250.0110.04712.72
5.3.240.0110.04112.72
5.3.230.0070.04512.71
5.3.220.0130.04012.68
5.3.210.0070.04012.68
5.3.200.0080.04512.68
5.3.190.0080.04012.68
5.3.180.0080.03612.68
5.3.170.0060.03612.67
5.3.160.0100.04612.67
5.3.150.0100.05112.68
5.3.140.0110.03412.66
5.3.130.0100.05012.66
5.3.120.0080.04012.66
5.3.110.0060.04512.66
5.3.100.0050.04112.13
5.3.90.0150.03712.10
5.3.80.0080.04012.09
5.3.70.0090.04712.09
5.3.60.0100.04512.08
5.3.50.0090.04612.02
5.3.40.0040.05012.02
5.3.30.0090.04911.98
5.3.20.0100.04611.76
5.3.10.0030.04311.73
5.3.00.0090.04911.71
5.2.170.0080.0429.22
5.2.160.0080.0379.22
5.2.150.0040.0419.22
5.2.140.0060.0319.22
5.2.130.0040.0319.18
5.2.120.0050.0349.18
5.2.110.0060.0359.18
5.2.100.0090.0299.18
5.2.90.0050.0339.18
5.2.80.0100.0329.17
5.2.70.0070.0349.18
5.2.60.0080.0339.13
5.2.50.0070.0349.10
5.2.40.0070.0279.07
5.2.30.0050.0309.05
5.2.20.0040.0309.04
5.2.10.0040.0298.95
5.2.00.0030.0318.80
5.1.60.0050.0258.09
5.1.50.0020.0288.09
5.1.40.0060.0238.07
5.1.30.0040.0278.42
5.1.20.0030.0288.45
5.1.10.0050.0278.16
5.1.00.0040.0278.16
5.0.50.0060.0196.64
5.0.40.0060.0196.50
5.0.30.0060.0316.31
5.0.20.0050.0196.28
5.0.10.0010.0236.25
5.0.00.0040.0336.25
4.4.90.0060.0174.78
4.4.80.0040.0214.75
4.4.70.0020.0204.75
4.4.60.0030.0164.75
4.4.50.0060.0154.77
4.4.40.0060.0254.71
4.4.30.0010.0184.75
4.4.20.0040.0164.84
4.4.10.0050.0164.85
4.4.00.0040.0264.76
4.3.110.0030.0184.67
4.3.100.0060.0144.67
4.3.90.0070.0164.64
4.3.80.0030.0264.61
4.3.70.0030.0154.63
4.3.60.0040.0144.63
4.3.50.0030.0164.62
4.3.40.0000.0274.61
4.3.30.0020.0164.61
4.3.20.0020.0164.61
4.3.10.0020.0164.61
4.3.00.0070.0176.91

preferences:
49.5 ms | 979 KiB | 4 Q