3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar extends Foo {} class Baz {} $foo = new Foo; $bar = new Bar; $baz = new Baz; var_dump([ !($bar instanceof $foo), !($baz instanceof $foo), ]);

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.40.0080.00818.47
8.3.30.0040.01019.09
8.3.20.0040.00420.13
8.3.10.0040.00420.53
8.3.00.0080.00017.63
8.2.170.0040.01822.96
8.2.160.0110.00320.22
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.11
8.2.110.0030.00621.97
8.2.100.0060.00618.22
8.2.90.0080.00019.21
8.2.80.0070.00417.97
8.2.70.0000.01017.50
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0040.00419.14
8.2.20.0050.00317.73
8.2.10.0000.00818.00
8.2.00.0000.01017.73
8.1.270.0030.00624.02
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00322.14
8.1.230.0080.00417.76
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.13
8.1.180.0000.01118.10
8.1.170.0050.00318.50
8.1.160.0050.00221.93
8.1.150.0000.00718.93
8.1.140.0030.00617.41
8.1.130.0030.00317.76
8.1.120.0040.00417.41
8.1.110.0050.00317.40
8.1.100.0040.00417.30
8.1.90.0000.00717.44
8.1.80.0020.00517.45
8.1.70.0030.00317.39
8.1.60.0000.00817.57
8.1.50.0050.00317.55
8.1.40.0050.00317.51
8.1.30.0050.00317.67
8.1.20.0040.00417.50
8.1.10.0000.00717.48
8.1.00.0080.00017.57
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.40
8.0.270.0070.00017.25
8.0.260.0030.00318.46
8.0.250.0030.00316.99
8.0.240.0070.00016.99
8.0.230.0070.00016.84
8.0.220.0030.00316.75
8.0.210.0070.00016.93
8.0.200.0070.00016.84
8.0.190.0000.00716.97
8.0.180.0050.00216.95
8.0.170.0030.00316.93
8.0.160.0000.00716.76
8.0.150.0040.00416.85
8.0.140.0080.00016.75
8.0.130.0070.00013.20
8.0.120.0000.00816.85
8.0.110.0040.00416.80
8.0.100.0070.00016.87
8.0.90.0070.00016.95
8.0.80.0030.01316.86
8.0.70.0070.00016.95
8.0.60.0000.00816.74
8.0.50.0060.00316.71
8.0.30.0110.01117.09
8.0.20.0070.01217.40
8.0.10.0000.00716.97
8.0.00.0140.00516.93
7.4.330.0050.00015.13
7.4.320.0000.00616.49
7.4.300.0060.00016.58
7.4.290.0070.00016.61
7.4.280.0000.00716.45
7.4.270.0070.00016.62
7.4.260.0070.00016.57
7.4.250.0000.00716.47
7.4.240.0040.00316.42
7.4.230.0000.00716.43
7.4.220.0060.01216.67
7.4.210.0070.00716.59
7.4.200.0030.00616.52
7.4.160.0160.00016.30
7.4.150.0070.01417.40
7.4.140.0110.00717.86
7.4.130.0060.01116.49
7.4.120.0080.01116.40
7.4.110.0050.01316.46
7.4.100.0140.00316.40
7.4.90.0080.00816.58
7.4.80.0120.00619.04
7.4.70.0130.00316.46
7.4.60.0060.00916.59
7.4.50.0050.00316.58
7.4.40.0000.01916.43
7.4.30.0060.00916.36
7.4.00.0030.01414.84
7.3.330.0050.00013.16
7.3.320.0060.00013.30
7.3.310.0050.00216.14
7.3.300.0040.00416.25
7.3.290.0090.01216.25
7.3.280.0120.00716.31
7.3.270.0210.00317.40
7.3.260.0060.01416.55
7.3.250.0100.01016.56
7.3.240.0090.00616.45
7.3.230.0130.00316.39
7.3.210.0090.00816.65
7.3.200.0080.00819.39
7.3.190.0080.00816.29
7.3.180.0120.00416.61
7.3.170.0060.01216.61
7.3.160.0030.01316.68
7.3.120.0140.00314.72
7.3.110.0060.00614.46
7.3.100.0060.00914.39
7.3.90.0060.00914.80
7.3.80.0060.00914.75
7.3.70.0070.00414.75
7.3.60.0110.00614.78
7.3.50.0090.00614.56
7.3.40.0070.00314.81
7.3.30.0030.01314.62
7.3.20.0130.00616.73
7.3.10.0110.01116.33
7.3.00.0070.01316.49
7.2.330.0070.01116.72
7.2.320.0090.01216.46
7.2.310.0030.01316.70
7.2.300.0030.01716.62
7.2.290.0170.00716.68
7.2.240.0130.00314.91
7.2.230.0070.00715.19
7.2.220.0030.01314.58
7.2.210.0070.01014.77
7.2.200.0000.01415.02
7.2.190.0060.00614.99
7.2.180.0030.01314.99
7.2.170.0070.01114.70
7.2.160.0100.00714.84
7.2.150.0100.01016.88
7.2.140.0130.00616.64
7.2.130.0140.00316.82
7.2.120.0100.00717.02
7.2.110.0090.00616.77
7.2.100.0000.01716.42
7.2.90.0080.00416.79
7.2.80.0070.00816.68
7.2.70.0000.01416.82
7.2.60.0090.00816.78
7.2.50.0130.00316.63
7.2.40.0070.00716.86
7.2.30.0100.01016.92
7.2.20.0090.00916.75
7.2.10.0140.00416.93
7.2.00.0000.01218.04
7.1.330.0070.00715.86
7.1.320.0030.00915.79
7.1.310.0070.00715.76
7.1.300.0090.00615.71
7.1.290.0060.01015.49
7.1.280.0030.00715.71
7.1.270.0110.00715.80
7.1.260.0060.01315.48
7.1.250.0090.00615.75
7.1.200.0110.00015.86
7.1.100.0040.00718.04
7.1.70.0030.00717.01
7.1.60.0100.01319.32
7.1.50.0100.01316.60
7.1.00.0070.07322.44
7.0.200.0060.00316.75
7.0.140.0000.07322.16
7.0.60.0070.07020.07
7.0.50.0070.08017.86
7.0.40.0130.07020.13
7.0.30.0270.07720.07
7.0.20.0170.05320.25
7.0.10.0270.08020.08
7.0.00.0000.04720.07
5.6.210.0100.07320.48
5.6.200.0170.07718.18
5.6.190.0100.04020.65
5.6.180.0270.04320.39
5.6.170.0230.04320.44
5.6.160.0030.07320.43
5.6.150.0030.08718.19
5.6.140.0030.04018.16
5.6.130.0030.08318.28
5.6.120.0030.04320.97
5.6.110.0030.05320.96
5.6.100.0170.05720.96
5.6.90.0130.07721.00
5.6.80.0000.04020.48
5.5.350.0130.08020.38
5.5.340.0000.05017.97
5.5.330.0000.04320.31
5.5.320.0430.07320.34
5.5.310.0130.04320.30
5.5.300.0070.04318.04
5.5.290.0030.05017.98
5.5.280.0070.07320.95
5.5.270.0030.04020.84
5.5.260.0000.04720.97
5.5.250.0030.09020.58
5.5.240.3730.04720.15
5.4.450.0100.03319.49
5.4.440.0730.06019.48
5.4.430.0730.06019.58
5.4.420.0670.00019.39
5.4.410.0630.00019.42
5.4.400.0630.00018.92
5.4.390.0630.00019.25
5.4.380.0370.05318.80
5.4.370.0400.05318.46
5.4.360.0270.05318.77
5.4.350.0300.05718.80
5.4.340.0400.06018.50
5.4.320.0060.03912.50
5.4.310.0050.03812.50
5.4.300.0040.04012.50
5.4.290.0030.04212.49
5.4.280.0050.03812.39
5.4.270.0040.04112.39
5.4.260.0080.05312.39
5.4.250.0040.04012.39
5.4.240.0050.03712.39
5.4.230.0080.03412.38
5.4.220.0090.03512.39
5.4.210.0050.03612.38
5.4.200.0060.03612.38
5.4.190.0060.03512.38
5.4.180.0020.03912.38
5.4.170.0060.03512.39
5.4.160.0070.03612.39
5.4.150.0120.03412.38
5.4.140.0070.04312.07
5.4.130.0070.03912.05
5.4.120.0060.03512.01
5.4.110.0060.03512.01
5.4.100.0060.03512.01
5.4.90.0100.03812.00
5.4.80.0060.03912.01
5.4.70.0020.03912.00
5.4.60.0060.03612.01
5.4.50.0040.03712.00
5.4.40.0050.03611.99
5.4.30.0080.03811.99
5.4.20.0100.03211.99
5.4.10.0070.03311.99
5.4.00.0060.03611.48
5.3.290.0060.04412.80
5.3.280.0070.03712.71
5.3.270.0080.03712.72
5.3.260.0050.03912.72
5.3.250.0050.03712.72
5.3.240.0080.03512.71
5.3.230.0070.03712.70
5.3.220.0030.03912.68
5.3.210.0110.03812.68
5.3.200.0060.03712.68
5.3.190.0070.03812.68
5.3.180.0070.03612.67
5.3.170.0070.03612.67
5.3.160.0050.03812.68
5.3.150.0050.03712.67
5.3.140.0050.03612.66
5.3.130.0040.04012.66
5.3.120.0080.04112.66
5.3.110.0070.03812.66
5.3.100.0080.03912.12
5.3.90.0050.03812.11
5.3.80.0070.04212.09
5.3.70.0080.03712.09
5.3.60.0040.04312.08
5.3.50.0070.04112.02
5.3.40.0080.03312.02
5.3.30.0020.03911.98
5.3.20.0050.03711.77
5.3.10.0060.03611.73
5.3.00.0060.03611.71
5.2.170.0050.0299.22
5.2.160.0040.0299.22
5.2.150.0070.0289.22
5.2.140.0050.0309.22
5.2.130.0070.0289.18
5.2.120.0070.0289.18
5.2.110.0080.0369.18
5.2.100.0030.0419.18
5.2.90.0060.0349.18
5.2.80.0040.0319.18
5.2.70.0070.0279.18
5.2.60.0020.0329.13
5.2.50.0070.0279.09
5.2.40.0060.0279.07
5.2.30.0040.0299.05
5.2.20.0040.0299.04
5.2.10.0050.0278.94
5.2.00.0050.0308.80
5.1.60.0070.0218.09
5.1.50.0040.0268.08
5.1.40.0070.0238.07
5.1.30.0020.0288.42
5.1.20.0030.0278.44
5.1.10.0040.0258.16
5.1.00.0030.0268.16
5.0.50.0030.0216.65
5.0.40.0070.0196.50
5.0.30.0030.0316.32
5.0.20.0030.0206.28
5.0.10.0050.0196.25
5.0.00.0020.0326.25
4.4.90.0010.0174.78
4.4.80.0020.0164.75
4.4.70.0040.0144.76
4.4.60.0020.0154.76
4.4.50.0050.0124.77
4.4.40.0010.0264.71
4.4.30.0060.0124.76
4.4.20.0010.0174.85
4.4.10.0010.0174.85
4.4.00.0030.0244.76
4.3.110.0040.0144.66
4.3.100.0030.0144.66
4.3.90.0010.0164.63
4.3.80.0030.0244.59
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0164.63
4.3.40.0020.0254.54
4.3.30.0020.0163.31
4.3.20.0020.0163.29
4.3.10.0000.0173.23
4.3.00.0000.01315.60

preferences:
49.25 ms | 400 KiB | 5 Q