3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface classThing { public function getClass(); public function setClass($class); } class Something implements classThing { private $class; public function setClass($class) { $this->class = $class; } public function getClass() { return $this->class; } } $header = array(new Something); if ($header[0] instanceof classThing) { echo $header[0]->getClass(); } else { echo 'not set'; }

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.60.0070.00718.43
8.3.50.0130.00521.89
8.3.40.0110.00418.51
8.3.30.0110.00319.08
8.3.20.0070.00720.18
8.3.10.0060.00320.41
8.3.00.0000.00919.25
8.2.180.0070.01016.38
8.2.170.0030.01422.96
8.2.160.0140.00020.41
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.10
8.2.110.0000.01020.57
8.2.100.0040.00817.68
8.2.90.0030.00517.88
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0030.00617.50
8.2.50.0040.00418.05
8.2.40.0000.00817.75
8.2.30.0040.00818.01
8.2.20.0050.00317.64
8.2.10.0000.00718.00
8.2.00.0040.00417.77
8.1.280.0140.00425.92
8.1.270.0000.00923.64
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00023.96
8.1.230.0000.01119.10
8.1.220.0040.00417.78
8.1.210.0060.00618.77
8.1.200.0080.00417.35
8.1.190.0060.00317.35
8.1.180.0000.01018.10
8.1.170.0040.00417.62
8.1.160.0050.00222.03
8.1.150.0020.00518.89
8.1.140.0040.00417.47
8.1.130.0070.00017.75
8.1.120.0040.00417.51
8.1.110.0080.00017.45
8.1.100.0030.00317.47
8.1.90.0000.00817.50
8.1.80.0040.00417.44
8.1.70.0000.00717.41
8.1.60.0000.00817.50
8.1.50.0040.00417.50
8.1.40.0070.00017.56
8.1.30.0080.00017.62
8.1.20.0060.00317.56
8.1.10.0040.00417.61
8.1.00.0040.00817.49
8.0.300.0000.00819.60
8.0.290.0100.00016.75
8.0.280.0050.00218.47
8.0.270.0030.00317.27
8.0.260.0080.00017.18
8.0.250.0030.00317.01
8.0.240.0030.00316.96
8.0.230.0030.00316.98
8.0.220.0030.00316.96
8.0.210.0060.00016.91
8.0.200.0000.00716.85
8.0.190.0030.00716.96
8.0.180.0050.00316.98
8.0.170.0000.00816.95
8.0.160.0070.00016.89
8.0.150.0000.00716.83
8.0.140.0040.00416.79
8.0.130.0050.00013.40
8.0.120.0000.00816.86
8.0.110.0040.00416.79
8.0.100.0070.00016.92
8.0.90.0070.00016.78
8.0.80.0070.01016.82
8.0.70.0000.00817.01
8.0.60.0000.00716.76
8.0.50.0000.00816.86
8.0.30.0050.01317.23
8.0.20.0070.01417.40
8.0.10.0040.00417.05
8.0.00.0130.00716.84
7.4.330.0020.00215.14
7.4.320.0030.00316.53
7.4.300.0000.00616.52
7.4.290.0030.00316.52
7.4.280.0090.00016.44
7.4.270.0000.00716.64
7.4.260.0030.00316.59
7.4.250.0040.00416.37
7.4.240.0040.00316.53
7.4.230.0000.00816.44
7.4.220.0090.01316.48
7.4.210.0000.01416.55
7.4.200.0040.00416.59
7.4.160.0080.00816.53
7.4.150.0090.00917.40
7.4.140.0140.00317.86
7.4.130.0120.00616.49
7.4.120.0070.01016.59
7.4.110.0030.01316.63
7.4.100.0060.01316.56
7.4.90.0160.00316.59
7.4.80.0110.00619.39
7.4.70.0130.00616.46
7.4.60.0140.00316.49
7.4.50.0040.00416.47
7.4.40.0000.01616.65
7.4.30.0100.01016.47
7.4.00.0070.01014.99
7.3.330.0030.00313.38
7.3.320.0030.00313.17
7.3.310.0030.00316.27
7.3.300.0030.00316.23
7.3.290.0060.00916.35
7.3.280.0050.01316.33
7.3.270.0140.00317.40
7.3.260.0060.01116.38
7.3.250.0080.00916.32
7.3.240.0180.00916.31
7.3.230.0120.00616.39
7.3.210.0130.00316.34
7.3.200.0060.01319.39
7.3.190.0090.01216.39
7.3.180.0060.01016.59
7.3.170.0100.00616.38
7.3.160.0060.00916.50
7.3.10.0140.00015.95
7.3.00.0090.00616.41
7.2.330.0130.01216.68
7.2.320.0090.00916.86
7.2.310.0150.00316.43
7.2.300.0130.00316.72
7.2.290.0150.00616.73
7.2.130.0060.01016.45
7.2.120.0130.00316.57
7.2.110.0130.00316.32
7.2.100.0110.00716.31
7.2.90.0030.01715.98
7.2.80.0070.01016.44
7.2.70.0140.00316.48
7.2.60.0110.00616.69
7.2.50.0100.00716.75
7.2.40.0110.00416.73
7.2.30.0100.01016.45
7.2.20.0090.01016.23
7.2.10.0130.00316.34
7.2.00.0060.01017.67
7.1.250.0140.00315.40
7.1.200.0020.00915.69
7.1.100.0040.00718.00
7.1.70.0050.00517.03
7.1.60.0060.00919.32
7.1.50.0070.01716.90
7.1.00.0030.07322.29
7.0.200.0000.00716.88
7.0.140.0070.07021.95
7.0.60.0070.08719.86
7.0.50.0100.06017.85
7.0.40.0070.04320.23
7.0.30.0500.07320.12
7.0.20.0400.06720.26
7.0.10.0070.04020.07
7.0.00.0100.06320.09
5.6.280.0130.06321.03
5.6.210.0030.04020.65
5.6.200.0030.05718.16
5.6.190.0130.07020.48
5.6.180.0170.07720.64
5.6.170.0330.05020.46
5.6.160.0100.06720.54
5.6.150.0130.07718.14
5.6.140.0030.05318.15
5.6.130.0030.04718.23
5.6.120.0100.08020.80
5.6.110.0100.08021.09
5.6.100.0070.08320.92
5.6.90.0070.04321.00
5.6.80.0070.05720.48
5.5.350.0230.03720.47
5.5.340.0070.05717.98
5.5.330.0130.04720.41
5.5.320.0430.05020.27
5.5.310.0200.08320.31
5.5.300.0070.04017.96
5.5.290.0130.07718.07
5.5.280.0130.03720.90
5.5.270.0070.08720.84
5.5.260.0100.08020.77
5.5.250.0070.07320.69
5.5.240.0200.06320.29
5.4.450.0530.05319.46
5.4.440.0570.03319.32
5.4.430.0330.04019.48
5.4.420.0630.00019.68
5.4.410.0630.00019.30
5.4.400.0630.00019.21
5.4.390.0630.00019.06
5.4.380.0870.00019.11
5.4.370.0600.00019.16
5.4.360.0800.00019.13
5.4.350.0630.00019.03
5.4.340.0600.00018.98
5.4.320.0090.03912.51
5.4.310.0040.04312.50
5.4.300.0110.04412.50
5.4.290.0110.03612.50
5.4.280.0130.03712.40
5.4.270.0040.03912.39
5.4.260.0080.04412.39
5.4.250.0070.04712.40
5.4.240.0100.03512.39
5.4.230.0080.03712.39
5.4.220.0040.04012.39
5.4.210.0040.03912.39
5.4.200.0060.03912.39
5.4.190.0050.03812.39
5.4.180.0050.03712.38
5.4.170.0060.04212.39
5.4.160.0120.03812.39
5.4.150.0040.04012.39
5.4.140.0070.03812.08
5.4.130.0070.03512.06
5.4.120.0070.03512.02
5.4.110.0050.03812.02
5.4.100.0070.03712.02
5.4.90.0080.03612.02
5.4.80.0060.04212.02
5.4.70.0090.03312.01
5.4.60.0080.03512.01
5.4.50.0040.03812.01
5.4.40.0060.03712.00
5.4.30.0080.03412.00
5.4.20.0060.03512.00
5.4.10.0070.04612.00
5.4.00.0050.04611.48
5.3.290.0080.05312.80
5.3.280.0100.03612.71
5.3.270.0080.04212.72
5.3.260.0060.05212.72
5.3.250.0040.04012.72
5.3.240.0100.04112.72
5.3.230.0070.03912.71
5.3.220.0070.03612.68
5.3.210.0030.04212.68
5.3.200.0080.03812.68
5.3.190.0160.07012.68
5.3.180.0090.04112.68
5.3.170.0110.03612.66
5.3.160.0080.04312.67
5.3.150.0070.04212.67
5.3.140.0080.05212.66
5.3.130.0080.04612.66
5.3.120.0090.03712.66
5.3.110.0050.04012.66
5.3.100.0110.03812.12
5.3.90.0100.04112.10
5.3.80.0090.04012.10
5.3.70.0090.03912.10
5.3.60.0050.03912.07
5.3.50.0080.03712.03
5.3.40.0050.04312.04
5.3.30.0100.03611.98
5.3.20.0070.03511.77
5.3.10.0090.03211.73
5.3.00.0080.03411.72
5.2.170.0050.0309.23
5.2.160.0060.0299.23
5.2.150.0040.0329.23
5.2.140.0050.0359.22
5.2.130.0070.0319.19
5.2.120.0090.0299.18
5.2.110.0050.0319.19
5.2.100.0050.0299.19
5.2.90.0040.0299.18
5.2.80.0060.0349.18
5.2.70.0040.0329.18
5.2.60.0030.0319.13
5.2.50.0080.0349.10
5.2.40.0080.0339.08
5.2.30.0100.0489.05
5.2.20.0060.0369.04
5.2.10.0050.0308.94
5.2.00.0050.0428.82
5.1.60.0040.0338.10
5.1.50.0040.0278.09
5.1.40.0050.0278.07
5.1.30.0060.0288.41
5.1.20.0050.0308.44
5.1.10.0040.0268.17
5.1.00.0050.0258.17
5.0.50.0040.0326.64
5.0.40.0030.0206.50
5.0.30.0040.0356.32
5.0.20.0030.0236.28
5.0.10.0060.0186.26
5.0.00.0060.0306.25
4.4.90.0020.0164.78
4.4.80.0060.0124.76
4.4.70.0030.0154.75
4.4.60.0030.0164.75
4.4.50.0030.0214.77
4.4.40.0020.0284.70
4.4.30.0030.0204.76
4.4.20.0040.0154.84
4.4.10.0030.0154.85
4.4.00.0050.0234.76
4.3.110.0040.0164.67
4.3.100.0050.0144.66
4.3.90.0040.0164.64
4.3.80.0030.0254.58
4.3.70.0010.0164.63
4.3.60.0020.0154.62
4.3.50.0030.0154.63
4.3.40.0030.0274.54
4.3.30.0030.0193.28
4.3.20.0030.0163.26
4.3.10.0010.0183.22
4.3.00.0170.01313.59

preferences:
41.64 ms | 401 KiB | 5 Q