3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface classThing { public function getClass(); public function setClass(); } 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.56
8.3.50.0100.00921.95
8.3.40.0070.00718.84
8.3.30.0070.00718.92
8.3.20.0110.00420.16
8.3.10.0000.00820.40
8.3.00.0080.00019.38
8.2.180.0100.00716.38
8.2.170.0100.00722.96
8.2.160.0070.01020.39
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.14
8.2.110.0050.00522.20
8.2.100.0090.00317.66
8.2.90.0050.00319.05
8.2.80.0030.00517.97
8.2.70.0030.00617.38
8.2.60.0000.00819.63
8.2.50.0040.00418.07
8.2.40.0050.00319.89
8.2.30.0070.00417.89
8.2.20.0070.00017.68
8.2.10.0040.00418.11
8.2.00.0040.00417.53
8.1.280.0070.01025.92
8.1.270.0050.00322.06
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.78
8.1.230.0110.00019.16
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0080.00817.10
8.1.190.0000.00917.23
8.1.180.0000.00718.10
8.1.170.0040.00418.46
8.1.160.0000.00722.02
8.1.150.0040.00418.88
8.1.140.0040.00417.46
8.1.130.0050.00317.78
8.1.120.0030.00317.31
8.1.110.0000.00817.39
8.1.100.0000.00717.31
8.1.90.0040.00417.42
8.1.80.0050.00217.38
8.1.70.0000.00717.32
8.1.60.0000.00817.57
8.1.50.0040.00417.37
8.1.40.0000.00817.34
8.1.30.0000.00817.41
8.1.20.0020.00517.66
8.1.10.0000.00717.36
8.1.00.0040.00717.19
8.0.300.0000.00819.15
8.0.290.0050.00216.75
8.0.280.0070.00018.43
8.0.270.0000.00817.09
8.0.260.0060.00017.20
8.0.250.0030.00317.01
8.0.240.0030.00316.97
8.0.230.0000.00717.00
8.0.220.0000.00716.86
8.0.210.0000.00816.92
8.0.200.0000.00716.97
8.0.190.0000.00916.88
8.0.180.0070.00016.91
8.0.170.0040.00416.91
8.0.160.0000.00716.84
8.0.150.0030.00316.70
8.0.140.0040.00416.91
8.0.130.0030.00313.29
8.0.120.0000.00816.89
8.0.110.0040.00416.88
8.0.100.0030.00416.94
8.0.90.0000.00716.97
8.0.80.0080.00816.86
8.0.70.0030.00316.95
8.0.60.0000.00716.86
8.0.50.0050.00316.91
8.0.30.0070.01216.95
8.0.20.0110.00817.40
8.0.10.0080.00016.98
8.0.00.0040.01416.87
7.4.330.0050.00015.03
7.4.320.0000.00616.56
7.4.300.0060.00016.30
7.4.290.0030.00316.46
7.4.280.0040.00416.57
7.4.270.0050.00216.46
7.4.260.0070.00016.52
7.4.250.0030.00316.32
7.4.240.0000.00716.49
7.4.230.0040.00416.25
7.4.220.0070.01016.54
7.4.210.0030.01216.57
7.4.200.0040.00416.52
7.4.160.0060.00916.29
7.4.150.0040.01317.40
7.4.140.0100.00817.86
7.4.130.0070.00916.33
7.4.120.0100.00716.35
7.4.110.0070.01016.36
7.4.100.0120.00616.52
7.4.90.0070.01016.61
7.4.80.0030.01319.39
7.4.70.0110.00716.55
7.4.60.0030.01416.30
7.4.50.0000.00516.33
7.4.40.0090.00616.49
7.4.30.0120.00916.44
7.4.00.0130.00314.93
7.3.330.0030.00313.20
7.3.320.0030.00313.31
7.3.310.0030.00316.06
7.3.300.0030.00316.21
7.3.290.0090.00616.24
7.3.280.0110.00616.24
7.3.270.0140.00317.40
7.3.260.0130.00716.40
7.3.250.0070.01016.24
7.3.240.0190.00416.11
7.3.230.0070.01116.43
7.3.210.0030.01316.26
7.3.200.0180.00019.39
7.3.190.0090.01216.53
7.3.180.0140.00316.40
7.3.170.0030.01416.35
7.3.160.0060.01116.34
7.3.120.0040.01414.50
7.3.110.0070.00714.66
7.3.100.0070.01014.95
7.3.90.0030.00914.93
7.3.80.0040.01114.74
7.3.70.0000.00914.72
7.3.60.0160.00014.84
7.3.50.0060.00614.72
7.3.40.0040.00714.76
7.3.30.0140.00014.73
7.3.20.0060.00316.56
7.3.10.0030.00616.53
7.3.00.0080.00416.64
7.2.330.0100.01316.53
7.2.320.0060.01016.21
7.2.310.0070.01416.24
7.2.300.0100.00616.45
7.2.290.0120.00616.37
7.2.250.0120.00614.59
7.2.240.0070.01115.01
7.2.230.0040.01514.84
7.2.220.0000.00915.15
7.2.210.0060.01215.07
7.2.200.0080.00814.87
7.2.190.0030.00814.78
7.2.180.0140.00014.76
7.2.170.0030.00814.84
7.2.60.0060.00616.73
7.2.00.0130.00619.06
7.1.330.0070.00715.74
7.1.320.0060.00915.49
7.1.310.0090.00615.80
7.1.300.0040.00715.69
7.1.290.0050.00515.83
7.1.280.0100.00715.68
7.1.270.0040.01115.83
7.1.260.0120.00015.65
7.1.200.0030.00515.75
7.1.100.0100.00018.06
7.1.70.0030.00616.70
7.1.60.0070.01619.32
7.1.50.0060.01316.59
7.1.00.0100.06722.50
7.0.200.0000.00916.36
7.0.140.0030.06722.02
7.0.60.0100.07020.01
7.0.50.0200.04317.83
7.0.40.0070.04320.09
7.0.30.0270.04720.18
7.0.20.0300.07020.07
7.0.10.0030.04320.09
7.0.00.0070.04720.30
5.6.280.0030.07020.86
5.6.210.0200.07020.55
5.6.200.0070.08018.34
5.6.190.0070.04320.52
5.6.180.0530.07020.39
5.6.170.0270.05020.51
5.6.160.0000.04720.44
5.6.150.0100.07718.18
5.6.140.0130.07718.18
5.6.130.0000.08718.17
5.6.120.0070.07720.89
5.6.110.0030.08720.99
5.6.100.0030.08020.94
5.6.90.0130.07720.97
5.6.80.0100.07720.34
5.5.350.0100.05020.34
5.5.340.0030.04317.98
5.5.330.0070.04020.27
5.5.320.0530.06320.36
5.5.310.0200.08020.26
5.5.300.0030.05317.99
5.5.290.0070.04317.96
5.5.280.0070.08720.89
5.5.270.0030.05020.96
5.5.260.0070.07020.87
5.5.250.0070.06720.62
5.5.240.0130.08320.36
5.4.450.0700.04719.41
5.4.440.0500.04019.57
5.4.430.0370.04319.27
5.4.420.0630.00019.51
5.4.410.0700.00019.11
5.4.400.0600.00019.39
5.4.390.0630.00019.21
5.4.380.0630.00019.07
5.4.370.0800.00019.13
5.4.360.0800.00019.13
5.4.350.0670.00019.16
5.4.340.0600.00019.21
5.4.320.0070.03612.51
5.4.310.0060.03812.50
5.4.300.0060.04112.50
5.4.290.0050.04612.50
5.4.280.0050.04612.40
5.4.270.0060.04112.40
5.4.260.0050.04212.40
5.4.250.0080.03912.40
5.4.240.0070.03612.40
5.4.230.0050.04112.39
5.4.220.0030.04012.39
5.4.210.0080.03512.39
5.4.200.0050.04112.39
5.4.190.0060.04012.39
5.4.180.0090.03812.38
5.4.170.0090.04312.40
5.4.160.0070.03612.39
5.4.150.0070.04112.39
5.4.140.0080.03512.08
5.4.130.0050.03712.07
5.4.120.0060.03612.02
5.4.110.0040.03812.02
5.4.100.0090.03312.01
5.4.90.0090.03512.01
5.4.80.0060.03812.02
5.4.70.0060.03612.01
5.4.60.0080.04212.01
5.4.50.0080.04512.01
5.4.40.0090.03612.00
5.4.30.0070.03512.00
5.4.20.0080.03512.00
5.4.10.0080.03312.00
5.4.00.0060.03611.49
5.3.290.0080.04012.80
5.3.280.0060.04612.71
5.3.270.0080.04212.72
5.3.260.0100.04012.72
5.3.250.0050.04312.72
5.3.240.0060.04112.72
5.3.230.0060.03912.70
5.3.220.0090.03612.68
5.3.210.0090.03912.68
5.3.200.0060.03812.68
5.3.190.0070.04012.68
5.3.180.0110.03612.67
5.3.170.0040.04412.67
5.3.160.0070.03712.67
5.3.150.0070.03712.68
5.3.140.0070.03712.66
5.3.130.0070.04812.66
5.3.120.0050.04112.65
5.3.110.0050.04312.66
5.3.100.0070.03612.13
5.3.90.0060.03712.11
5.3.80.0060.03712.11
5.3.70.0040.03912.10
5.3.60.0050.04312.08
5.3.50.0100.03612.03
5.3.40.0070.03712.03
5.3.30.0070.03511.98
5.3.20.0070.04211.77
5.3.10.0120.04111.73
5.3.00.0020.05111.73
5.2.170.0040.0369.23
5.2.160.0050.0329.23
5.2.150.0060.0299.23
5.2.140.0050.0329.23
5.2.130.0060.0319.19
5.2.120.0080.0329.19
5.2.110.0060.0379.20
5.2.100.0040.0329.19
5.2.90.0070.0299.19
5.2.80.0080.0289.18
5.2.70.0050.0339.18
5.2.60.0050.0319.14
5.2.50.0040.0359.11
5.2.40.0070.0279.08
5.2.30.0040.0339.06
5.2.20.0030.0319.04
5.2.10.0070.0288.95
5.2.00.0070.0298.82
5.1.60.0090.0388.10
5.1.50.0050.0258.09
5.1.40.0070.0238.07
5.1.30.0050.0318.42
5.1.20.0080.0248.45
5.1.10.0060.0248.18
5.1.00.0010.0298.18
5.0.50.0060.0186.65
5.0.40.0020.0206.51
5.0.30.0020.0336.32
5.0.20.0040.0196.29
5.0.10.0020.0216.27
5.0.00.0040.0346.26
4.4.90.0030.0164.78
4.4.80.0040.0174.75
4.4.70.0020.0204.76
4.4.60.0040.0144.76
4.4.50.0020.0184.77
4.4.40.0040.0254.71
4.4.30.0050.0154.76
4.4.20.0050.0164.85
4.4.10.0040.0174.84
4.4.00.0050.0394.76
4.3.110.0030.0224.66
4.3.100.0080.0244.66
4.3.90.0040.0224.63
4.3.80.0040.0274.58
4.3.70.0020.0184.63
4.3.60.0060.0164.63
4.3.50.0080.0114.63
4.3.40.0060.0244.54
4.3.30.0020.0213.28
4.3.20.0040.0163.26
4.3.10.0020.0173.22
4.3.00.0030.01013.59

preferences:
42.42 ms | 401 KiB | 5 Q